开发者

Dropdownlist inside a Gridview

开发者 https://www.devze.com 2022-12-11 18:07 出处:网络
HI, i am working on dropdownlist inside datagrid if i select one value in any row of dropdowlist then if i am select same value in another row of a dropdown then disp开发者_如何学运维lay message \'al

HI, i am working on dropdownlist inside datagrid if i select one value in any row of dropdowlist then if i am select same value in another row of a dropdown then disp开发者_如何学运维lay message 'already added'.

How to do this using javascript

Ravi.


First, I suggest you reconsider your UI; it seems you are asking your user to choose x of y items, and I would likely not choose a grid with pulldown widgets to implement that functionality.

Regardless, maintain an object to indicate those items selected by the user (selected['purple'] = true) and examine this object (if selected['purple'] === true) to determine whether to display your message.

Good luck!

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号