onsortcommand is not trigger for grids with dynamic columns

2 posts, 0 answers
  1. Deepak Vasudevan
    Deepak Vasudevan avatar
    82 posts
    Member since:
    May 2010

    Posted 14 May 2012 Link to this post

    I have a radgrid where columns are dynamically created in Page_Init. A few of the columns are sort-able. There is also an onSortCommand event handler for select columns. 

    when I click the header of those columns the page posts back but I observe the following:

    1. the onSortCommand event handler is not being called.
    2. the Header Texts are vanishing.

    Any pointers?
  2. Radoslav
    Radoslav avatar
    1564 posts

    Posted 17 May 2012 Link to this post

    Hi Deepak,

    Based on the provided information it is hard to say what is causing the described issue on your end.  Could you please post your markup code with the related code behind file? Thus we will be able to gather more details about your scenario and provide you with more to-the-point answer. Looking forward for your reply.

    the Telerik team
    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.
Back to Top