I have the Telerik grid with custom rows to appear and disappear using:
for (int i = 0; i < RadGridMain.MasterTableView.Items.Count; i++)
{
if (masterCL.Contains(int.Parse(RadGridMain.MasterTableView.DataKeyValues[i]["MasterChecklistID"].ToString())))
{
RadGridMain.MasterTableView.Items[i].Visible = false;
RadGridMain.MasterTableView.Items[i].Enabled = false;
RadGridMain0.MasterTableView.Items[i].Visible = true;
flag = false;
}
else
{
RadGridMain.MasterTableView.Items[i].Visible = true;
RadGridMain0.MasterTableView.Items[i].Visible = false;
}
}
Some of the columns in RadGridMain will invisble based on the method above. However, when I click on the Add new record to add new item. The invisible columns are visible again... how can I make it still invisible when clicking on Add new record button?
Thanks