Problem with Group header Item Sorting

2 posts, 0 answers
  1. Vijayaraj
    Vijayaraj avatar
    25 posts
    Member since:
    Mar 2011

    Posted 14 Sep 2011 Link to this post

    When I do sorting on the grouped item in group header get this 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.

    I bind data and create columns to the grid from code behind on pageload. Am i missing something?
    Thanks in advance for your support.

  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 15 Sep 2011 Link to this post

    Hello Vijayaraj,

    Basically the problem you are facing is caused of abnormal change of the ViewState during postbacks. Event validation checks the incoming values in a POST to ensure the values are recognized. In other words, saved hash values in the __EVENTVALIDATION are different from these send through POST method.

    One of the possible, solution is to disable Event Validation.
    Change this line:   
    <@Page ... enableEventValidation="true"  />   
    <@Page ... validateRequest="false" enableEventValidation="false" />

  3. DevCraft R3 2016 release webinar banner
Back to Top