Hi All
I am using master detail grid and it is working fine . In detail table I have telerik:GridTableView with CommandItemSettings-AddNewRecordText enabled , I want to show/hide this option dynamically in item data bound , I am able to hide it when I use below code but my condition could only be checked when (e.Item is GridDataItem) , I tried to get commanditems using GridItem cmdItem = tableView.GetItems(GridItemType.CommandItem)[0] but only Null values returned , can anybody suggest how go about the same
if (e.Item is GridCommandItem)
{
Button addButton = e.Item.FindControl("AddNewRecordButton") as Button;
addButton.Visible = false;
LinkButton lnkButton = (LinkButton)e.Item.FindControl("InitInsertButton");
lnkButton.Visible = false;
}
Thanks
Srujan.N