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

Header Context Menu & Column Names

1 Answer 29 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Valery
Top achievements
Rank 2
Valery asked on 31 Jul 2010, 06:34 PM
Hello there,

I am trying to make my own implementation of header context menu. However I could only make a RadContextMenu with the RadGrid as its target (which makes it available also for the pager as well). That almost works for me.

However as I am doing everything client-side I tried creating a submenu with a menu item for each column of the grid. Unfortunately I couldn't find a client-side method of the RadGridColumn object nor any other available property to read the content of the HeaderText property of a column. Am I missing something obvious or there is no way to do it client-side?

Thanks,
V.

1 Answer, 1 is accepted

Sort by
0
Nikolay Rusev
Telerik team
answered on 05 Aug 2010, 08:18 AM
Hello Valery,

There is not any public representation of GridColumn on client side. I would suggest you to populate columns information on server.

However you can access serialized data for columns on client as shown bellow:
$find("RadGrid1").get_masterTableView()._data._columnsData //- array of columns data

Greetings,
Nikolay
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Grid
Asked by
Valery
Top achievements
Rank 2
Answers by
Nikolay Rusev
Telerik team
Share this question
or