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

[Solved] Rad Grid gives error when sorting by column click

1 Answer 99 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Sampath
Top achievements
Rank 1
Sampath asked on 24 Sep 2009, 11:54 AM
Hi,
I have created dynamic grid.
Requirement is,
          Columns should be add dynamically (column count is not fixed one and column order also dynamic)

If I sort with out reorder columns in client side it works successfully
But when I try to sort 2 times after reorder column in client side it gives error. (sorting 1st time it works)
Error is:
"An Error has occurred because a control with id 'ctl00W-----' could not be located or a different cotrol is assigned to the same ID after post back. If the ID is not assigned, explicitly set the id property of controls that raise post back events to avoid this error"

Please help me to solve this error.

Thanks and Regards,
Sampath
         

 

1 Answer, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 24 Sep 2009, 04:34 PM
Hi Sampath,

Based on the provided information it is difficult to pinpoint the reason for the behavior you are experiencing.
The error you are getting most probably is due to some of the controls not being able to restore their ViewState because their ID is missing or has been dynamically changed at an inappropriate point in the page life cycle. 

If the problem persists, I'd suggest that you provide more details on how to reproduce the issue or at best isolate the problem in a small test project and send it to us through a formal support ticket so that we can debug it on our side and get back to you with further information.

Regards,
Pavlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Grid
Asked by
Sampath
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Share this question
or