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

Header Context Menu - Column Selection !

2 Answers 68 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Prince M. Premnath
Top achievements
Rank 2
Prince M. Premnath asked on 27 Apr 2010, 12:15 PM
Hello All ,

 Am having lots of columns , but i displays only few among those , rest will be given to the user to select , so My header Context menu Column Selection Check box list must show all the columns from the data source , no matter its shown on the grid . and the user can make his option from the menu apart from the default columns that shown in the grid ,

Is this possible ? any sort of help will be highly appreciated .
Thanks and Reagrds
-Prince

2 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 27 Apr 2010, 12:33 PM
Hi Prince,

Set the Display property of column instead of Visible property in order to show the column name in contextmenu even if the column is hidden.


Regards,
Princy.
0
Prince M. Premnath
Top achievements
Rank 2
answered on 27 Apr 2010, 01:36 PM
Thanks for your prompt reply princy , your suggestion really helped me out , am facing yet another problem.
After removing a column by unckecking the column for the header context menu , if i made any client filter the then again the columns pops up ?? how just to maintain the client state ? .

if i could catch the event triggered by the CheckBox Checking / Unchecking  will it help me out ? can you say me whats the event handler for Checking/Unckecking the column selection Checkbox ??

thanks in advance

-Prince

Tags
Grid
Asked by
Prince M. Premnath
Top achievements
Rank 2
Answers by
Princy
Top achievements
Rank 2
Prince M. Premnath
Top achievements
Rank 2
Share this question
or