在关闭按钮网格上 [英] on off button grid

查看:92
本文介绍了在关闭按钮网格上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我想将图像按钮水平放置,单击按钮时它会得到一个选定的图像,而其他按钮会得到其未选定的图像(可能是灰色的).因此,此功能与单选按钮功能几乎没有相似之处.

那里有控制吗?如果没有,我该如何实现呢?

谢谢,

Vijay

Hi,

I would like to have image buttons which are placed horizontally, when a button clicked it gets a selected image and other buttons gets their unselected images (probably grayed ones). So this functionality is little similar to radio button functionality.

Is there any control there? If not how I can go about achieving this?

Thanks,

Vijay

推荐答案

您可以通过处理ImageButtons click事件并将相关图像分配给所有按钮,在背后的代码中进行此操作.
如果您打算创建Gallery类型的控件,可能值得研究一些灯箱脚本.
You can do this in the codebehind by handling the ImageButtons click event and assigning the releveant images to all of the buttons.

If you''re planning to create a Gallery type control, it may be worth looking into some of the lightbox scripts.


这篇关于在关闭按钮网格上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆