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

[Solved] RadGrid RadContextMenu Server Side Accessing Issue

2 Answers 107 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Mahesh Babu
Top achievements
Rank 1
Mahesh Babu asked on 27 Jul 2009, 06:32 AM
Hi,

I have a radgrid to display items. I have radcontextmenu( showcolumn,hidecolumn). when the user right click and selects on hidecolumn, the column should be hided. I have to perform this logic at the server side. But, the problem is when the user clicks on hidecolumn, in radmenu_itemclick handler i am getting text of hidecolumn but not on which column he right clicked. so, i am not able to know which column to hide. Is their anyway at the server side to know on which column the user right clicked???

Thanks for your support as always.

Mahesh

2 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 27 Jul 2009, 07:35 AM
Hello Mahesh,

Have you tried out the HeaderContextMenu feature of the grid which when enabled allows to hide/show columns, group/ungroup the clicked column, sort the clicked column by different sort orders. Check out the following demo which illustrtates on this feature:
Header Context Menu

If this does not meet your requirements, then please try explaining a bit more on your scenario. You can also paste your code here to avoid any confusion.

-Princy.
0
Mahesh Babu
Top achievements
Rank 1
answered on 27 Jul 2009, 08:12 AM
I want to perform all this logic at server side because I am not loading all the columns data for the first time. I am loading only required for that particular point of time. so, I need to know the column name at server side.

Is there anyway to do this???

Thanks,
Mahesh
Tags
Grid
Asked by
Mahesh Babu
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Mahesh Babu
Top achievements
Rank 1
Share this question
or