Hell Friends,
I am usig RadGrid with GridClientSelectColumn mention below:
<telerik:GridClientSelectColumn UniqueName="SelectColumn" />
when loading a page that time i would like to select all row with that column checkbox should be checked, and i am using following code, but it will not work, what was the wrong with that code, reply me.
if (e.Item.ItemType == GridItemType.Item)
{
GridDataItem item = (GridDataItem)e.Item;
CheckBox checkBox = (CheckBox)item["SelectColumn"].Controls[0];
checkBox.Checked = true;
}
I am usig RadGrid with GridClientSelectColumn mention below:
<telerik:GridClientSelectColumn UniqueName="SelectColumn" />
when loading a page that time i would like to select all row with that column checkbox should be checked, and i am using following code, but it will not work, what was the wrong with that code, reply me.
if (e.Item.ItemType == GridItemType.Item)
{
GridDataItem item = (GridDataItem)e.Item;
CheckBox checkBox = (CheckBox)item["SelectColumn"].Controls[0];
checkBox.Checked = true;
}