Welcome Guest Search | Active Topics | Sign In | Register

Determine if grid is enabled client-side Options
Beedge
Posted: Tuesday, May 7, 2013 4:27:11 PM
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
eo_support
Posted: Tuesday, May 7, 2013 5:33:51 PM
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!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.