Hi,
i'm working on a functionality where i'm customisng the rad grid columns through the checkbox as there is a demo of this in the telrik control.
i'm handlling the visiblity here, so i have to some operation on columns visibilty so i wrote some code on grid layoutUpdated but i think this is not a good approach to handle this, could you please tell me any other event where i can handle this.
currentlt i wrote some code like :
void ReceivedGridView_LayoutUpdated(object sender, EventArgs e)
{
bool columnsVisible = false;
for (int i = 0; i < ReceivedGridView.Columns.Count && !columnsVisible; i++)
{
if (ReceivedGridView.Columns[i].IsVisible)
columnsVisible = true;
}
ViewModel.ExcelButtonEnabled = columnsVisible;
}
so please suggest some other event where i can make operation . actually my requirement is something like when all the columns are hidden i would like to a button in my application, so for this i need to track the columns visisbilty.
Thanks in advance
Sanjeev T.
i'm working on a functionality where i'm customisng the rad grid columns through the checkbox as there is a demo of this in the telrik control.
i'm handlling the visiblity here, so i have to some operation on columns visibilty so i wrote some code on grid layoutUpdated but i think this is not a good approach to handle this, could you please tell me any other event where i can handle this.
currentlt i wrote some code like :
void ReceivedGridView_LayoutUpdated(object sender, EventArgs e)
{
bool columnsVisible = false;
for (int i = 0; i < ReceivedGridView.Columns.Count && !columnsVisible; i++)
{
if (ReceivedGridView.Columns[i].IsVisible)
columnsVisible = true;
}
ViewModel.ExcelButtonEnabled = columnsVisible;
}
so please suggest some other event where i can make operation . actually my requirement is something like when all the columns are hidden i would like to a button in my application, so for this i need to track the columns visisbilty.
Thanks in advance
Sanjeev T.