This is a migrated thread and some comments may be shown as answers.

extracting the value of a property of RadGrid in a javascript

1 Answer 94 Views
Grid
This is a migrated thread and some comments may be shown as answers.
CSW
Top achievements
Rank 1
CSW asked on 07 Feb 2012, 02:35 PM
Hi,

I would like to know, how we can extract the properties of a grid from the javascript radgrid object 
for example i need to know in the client side whether "selecting-allowrowselect" of the grid is being rendered as true or false,

<

clientsettings selecting-allowrowselect="true">.

 

 

//Assigns the Global Grid object on grid created

 

 

 

 

 

 

function OnGridCreated(sender, eventArgs) {

 

 

 

grid = sender;

}

 

so how to access the above property [clientsettings selecting-allowrowselect] in the "grid" object?

Regards,
CSW Support

 

1 Answer, 1 is accepted

Sort by
0
Tsvetoslav
Telerik team
answered on 08 Feb 2012, 01:54 PM
Hi there,

You can get that through the following statement: 

var rowSelectionEnabled = $find('<%=RadGrid1.ClientID %>').ClientSettings.Selecting.AllowRowSelect;

Hope it helps. 

Regards,
Tsvetoslav
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
Grid
Asked by
CSW
Top achievements
Rank 1
Answers by
Tsvetoslav
Telerik team
Share this question
or