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

RadGrid when sort column hit error

1 Answer 205 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Way Hang Wee
Top achievements
Rank 1
Way Hang Wee asked on 25 Jun 2010, 10:22 AM
Hi,
I have a page with RadGrid with AllowPaging="true", AllowSorting="true", AutoGenerateColumns="false".
The data in the grid populated correctly without any problem.
When user click on the header of 1 of the column, the data in the grid is sorted according to the column (ascending/descending) without problem.
But after user click on the header of the column, an arrow will appear beside the header of the column, when click on the arrow, will hit error:
Invalid postback or callback argument.  Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page.  For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them.  If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.

Attached is the screenshot of the error:
error01.jpeg - Before click on header of column
error02.jpeg - After click on colum header "Schedule Name" then the data is sorted according to the column and an arrow appear beside "Schedule Name"
error03.jpg - After click on the arrow beside "Schedule Name", hit error

What should i do?
Thanks!

1 Answer, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 25 Jun 2010, 12:25 PM
Hello,

You can check out the following forum thread and see if it helps to avoid this error:
http://www.telerik.com/community/forums/aspnet-ajax/grid/radgrid-sorting-error.aspx

Greetings,
Pavlina
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Grid
Asked by
Way Hang Wee
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Share this question
or