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

onsortcommand is not trigger for grids with dynamic columns

1 Answer 22 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Deepak Vasudevan
Top achievements
Rank 2
Deepak Vasudevan asked on 14 May 2012, 07:05 PM
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?

1 Answer, 1 is accepted

Sort by
0
Radoslav
Telerik team
answered on 17 May 2012, 08:25 AM
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.

Greetings,
Radoslav
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.
Tags
Grid
Asked by
Deepak Vasudevan
Top achievements
Rank 2
Answers by
Radoslav
Telerik team
Share this question
or