Rank: Member Groups: Member
Joined: 9/1/2010 Posts: 28
|
I have noticed that if you have a button or link or checkbox on your grid and the grid enabled=false
you can still click/check those fields.
But the text boxes are disabled.
Is there another way to disable the button?
thx
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
Those should be automatically disabled on IE but not automatically disabled on other browsers. The reason is those browser does not automatically disable a child element when a parent element is disabled. Unfortunately there is no easy way for you to disable them on those browsers (you can write some JavaScript to disable all elements recursively but I am not sure whether it worth the effort). I would recommend you to either hide the Grid or hide a specific column when you want to disable the Grid. For example, "Delete" column would not be necessary when the Grid is in read-only mode. A checkbox column can be replaced with a static column (you can have both columns in the Grid and then dynamically set the column's Visible property to hide one and show another).
Thanks!
|