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

RadGrid with EnableHeaderContextMenu not working

1 Answer 87 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Kuya
Top achievements
Rank 1
Kuya asked on 28 Oct 2020, 03:15 AM

This is just an observation.

When using RadGrid, together with EnableHeaderContextMenu = true, and by some reason its not working, check make sure that ClientIDMode="Static" is not set. When removed, it works. 

I understand this might be because of the pointers to the grid id, but just throwing this out to anyone having the same troubles we had. 

1 Answer, 1 is accepted

Sort by
0
Vessy
Telerik team
answered on 28 Oct 2020, 06:55 PM

Hi Kuya,

Thank you for sharing your observation. It is recommended by Microsoft to use ClientIDMode set to Static only for static controls.The controls from the UI for ASP.NET AJAX suite on the other hand are controls with complex hierarchies of child controls and templates so setting their ClientIDMode property to Static  breaks their functionality. This is why RadGrid and all RadControls support only ClientIDMode="AutoID".

You can read more details on this matter here:
https://docs.telerik.com/devtools/aspnet-ajax/general-information/troubleshooting/general-troubleshooting#setting-clientidmode-property-to-static-breaks-the-telerik-controls-functionality

Regards,
Vessy
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
Grid
Asked by
Kuya
Top achievements
Rank 1
Answers by
Vessy
Telerik team
Share this question
or