Header Context Menu & Column Names

2 posts, 0 answers
  1. Valery
    Valery avatar
    45 posts
    Member since:
    Nov 2008

    Posted 31 Jul 2010 Link to this post

    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?

  2. Nikolay Rusev
    Nikolay Rusev avatar
    2287 posts

    Posted 05 Aug 2010 Link to this post

    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

    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
Back to Top