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

How to get telerik grid hide columns information(Uncheck Columns)

1 Answer 51 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
dilip
Top achievements
Rank 1
dilip asked on 20 May 2013, 02:31 PM
Hi,

I am using Telerik Grid in my project.I set the "EnableHeaderContextMenu="true" " to Hide/Show the Grid Columns.My requirement is how to get the Hide Columns information from Javascript. Please find the attachment for your reference ,i hide the 2 of clolumns from list ,my requirement is how to get "ORDERID" and "SHIPNAME" columns?


Thanks for advance ..

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 23 May 2013, 01:49 PM
Hi Dilip,

You can use the following events to handle the toggling of the column display:
<ClientSettings>
    <ClientEvents OnColumnShowing="columnFunction" OnColumnShown="columnFunction"
        OnColumnHiding="columnFunction" OnColumnHidden="columnFunction" />
</ClientSettings>
JavaScript:
function columnFunction(sender, args) {
    var columnName = args.get_gridColumn().get_uniqueName();
}

Hope this helps. Please give it a try and let me know if it works for you.

Regards,
Eyup
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
General Discussions
Asked by
dilip
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or