Rank: Newbie Groups: Member
Joined: 4/16/2013 Posts: 4
|
How do I determine if the grid is enabled client-side in javascript?
Thanks, Brian
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,195
|
Hi, When the Grid is disabled, the root element is rendered with disabled="true". So you can check that with the following code:
Code: JavaScript
//Get the root DOM element for the Grid. Note
//this is NOT part of EO.Web JavaScript API
var grid = document.getElementById("Grid1");
//Check the element's disabled attribute
alert(grid.disabled);
Thanks!
|