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

Rad grid custom column visibilty

0 Answers 34 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Sanjeev
Top achievements
Rank 1
Sanjeev asked on 15 Jan 2013, 11:24 AM
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.


         

No answers yet. Maybe you can help?

Tags
General Discussions
Asked by
Sanjeev
Top achievements
Rank 1
Share this question
or