RadGrid with EnableHeaderContextMenu not working

2 posts, 0 answers
  1. Kuya
    Kuya avatar
    12 posts
    Member since:
    Sep 2016

    Posted 27 Oct Link to this post

    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. 

  2. Vessy
    Vessy avatar
    2300 posts

    Posted 28 Oct Link to this post

    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:

    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/.

Back to Top