Resize Column causing : Sys.WebForms.PageRequestManagerServerErrorException: Cannot find a column with UniqueName

2 posts, 0 answers
  1. Mark
    Mark avatar
    2 posts
    Member since:
    Feb 2013

    Posted 12 Jul 2017 Link to this post

    This problem only started after an upgrade to Version 2013.3.1324.45, previous version had no issues for 5+ years

    I have a page with two grids where we move records between the two.  If a user manually resizes any column in either grid I get the error below and it does not fire my code behind function.  everything works fine if you don't resize. 

    GRID 1

      <telerik:radgrid runat="server" ID="UnAssignedStudentGrid"  
                        GridLines="None" Skin="Default" Height="300" Width="300" AllowMultiRowSelection="True" AllowSorting="False"
                        NeedDataSource="gvSearchResults_NeedDataSource" OnPreRender="gvSearchResults_PreRender">
                        <itemstyle backcolor="#fbfbfb" />
                        <alternatingitemstyle backcolor="#f7f7f7"/>
                        <ClientSettings>
                            <Selecting AllowRowSelect="True" />
                            <Scrolling AllowScroll="True" UseStaticHeaders="True" />
                            <Resizing AllowColumnResize="True" />
                        </ClientSettings>
                    </telerik:radgrid>

    GRID 2

     <telerik:radgrid runat="server" ID="AssignedStudentGrid"  
                        GridLines="None" Skin="Default" Height="300" Width="300" AllowMultiRowSelection="True" AllowSorting="False"
                        NeedDataSource="gvSearchResults_NeedDataSource" OnPreRender="gvSearchResults_PreRender">
                        <itemstyle backcolor="#fbfbfb" />
                        <alternatingitemstyle backcolor="#f7f7f7"/>
                        <ClientSettings>
                            <Selecting AllowRowSelect="True" />
                            <Scrolling AllowScroll="True" UseStaticHeaders="True" />
                            <Resizing AllowColumnResize="True" />
                        </ClientSettings>
                    </telerik:radgrid>

    Add/Remove Buttons

     <td style="vertical-align: middle;" align="center">
                    <asp:Button runat="server" ID="btnAdd" style="width: 30px; height: 30px; font-size: 10px; font-weight: bold; text-align: left;" Text=">>" OnClick="btnAdd_Click" OnClientClick="return disableButtonAndPostback(this,'');" />
                    <br /><br /><br />
                    <asp:Button runat="server" ID="btnRemove" style="width: 30px; height: 30px; font-size: 10px; font-weight: bold; text-align: left;" Text="<<" OnClick="btnRemove_Click" OnClientClick="return disableButtonAndPostback(this,'');" />
                </td>

     

     

    Error: 

    Uncaught Error: Sys.WebForms.PageRequestManagerServerErrorException: Cannot find a column with UniqueName 'LastName'
        at Function.Error$create [as create] (ScriptResource.axd?d=7WioxZREwXZsC3Sq5E6JW_HL_KwG15-f1UStXZ2tayYLOnsQN7i3vcodPHScg4wUGTm0lg-hkWJweK…:237)
        at Sys$WebForms$PageRequestManager$_createPageRequestManagerServerError [as _createPageRequestManagerServerError] (ScriptResource.axd?d=zR4pyxVmekBi9sdTxStBjr4h3ahfFHlVKntH7rN5dT3I5SiXOX6zyzMaDAwp-0fr_MI5LwGBAqwF7X…:656)
        at Sys$WebForms$PageRequestManager$_parseDelta [as _parseDelta] (ScriptResource.axd?d=zR4pyxVmekBi9sdTxStBjr4h3ahfFHlVKntH7rN5dT3I5SiXOX6zyzMaDAwp-0fr_MI5LwGBAqwF7X…:1534)
        at Sys$WebForms$PageRequestManager$_onFormSubmitCompleted [as _onFormSubmitCompleted] (ScriptResource.axd?d=zR4pyxVmekBi9sdTxStBjr4h3ahfFHlVKntH7rN5dT3I5SiXOX6zyzMaDAwp-0fr_MI5LwGBAqwF7X…:1314)
        at Array.<anonymous> (ScriptResource.axd?d=7WioxZREwXZsC3Sq5E6JW_HL_KwG15-f1UStXZ2tayYLOnsQN7i3vcodPHScg4wUGTm0lg-hkWJweK…:47)
        at ScriptResource.axd?d=7WioxZREwXZsC3Sq5E6JW_HL_KwG15-f1UStXZ2tayYLOnsQN7i3vcodPHScg4wUGTm0lg-hkWJweK…:3484
        at Sys$Net$WebRequest$completed [as completed] (ScriptResource.axd?d=7WioxZREwXZsC3Sq5E6JW_HL_KwG15-f1UStXZ2tayYLOnsQN7i3vcodPHScg4wUGTm0lg-hkWJweK…:6376)
        at XMLHttpRequest.Sys$Net$XMLHttpExecutor._onReadyStateChange (ScriptResource.axd?d=7WioxZREwXZsC3Sq5E6JW_HL_KwG15-f1UStXZ2tayYLOnsQN7i3vcodPHScg4wUGTm0lg-hkWJweK…:5996)
    Error$create @ ScriptResource.axd?d=7WioxZREwXZsC3Sq5E6JW_HL_KwG15-f1UStXZ2tayYLOnsQN7i3vcodPHScg4wUGTm0lg-hkWJweK…:237
    Sys$WebForms$PageRequestManager$_createPageRequestManagerServerError @ ScriptResource.axd?d=zR4pyxVmekBi9sdTxStBjr4h3ahfFHlVKntH7rN5dT3I5SiXOX6zyzMaDAwp-0fr_MI5LwGBAqwF7X…:656
    Sys$WebForms$PageRequestManager$_parseDelta @ ScriptResource.axd?d=zR4pyxVmekBi9sdTxStBjr4h3ahfFHlVKntH7rN5dT3I5SiXOX6zyzMaDAwp-0fr_MI5LwGBAqwF7X…:1534
    Sys$WebForms$PageRequestManager$_onFormSubmitCompleted @ ScriptResource.axd?d=zR4pyxVmekBi9sdTxStBjr4h3ahfFHlVKntH7rN5dT3I5SiXOX6zyzMaDAwp-0fr_MI5LwGBAqwF7X…:1314
    (anonymous) @ ScriptResource.axd?d=7WioxZREwXZsC3Sq5E6JW_HL_KwG15-f1UStXZ2tayYLOnsQN7i3vcodPHScg4wUGTm0lg-hkWJweK…:47
    (anonymous) @ ScriptResource.axd?d=7WioxZREwXZsC3Sq5E6JW_HL_KwG15-f1UStXZ2tayYLOnsQN7i3vcodPHScg4wUGTm0lg-hkWJweK…:3484
    Sys$Net$WebRequest$completed @ ScriptResource.axd?d=7WioxZREwXZsC3Sq5E6JW_HL_KwG15-f1UStXZ2tayYLOnsQN7i3vcodPHScg4wUGTm0lg-hkWJweK…:6376
    Sys$Net$XMLHttpExecutor._onReadyStateChange @ ScriptResource.axd?d=7WioxZREwXZsC3Sq5E6JW_HL_KwG15-f1UStXZ2tayYLOnsQN7i3vcodPHScg4wUGTm0lg-hkWJweK…:5996
    XMLHttpRequest.send (async)
    Sys$Net$XMLHttpExecutor$executeRequest @ ScriptResource.axd?d=7WioxZREwXZsC3Sq5E6JW_HL_KwG15-f1UStXZ2tayYLOnsQN7i3vcodPHScg4wUGTm0lg-hkWJweK…:6076
    Sys$Net$_WebRequestManager$executeRequest @ ScriptResource.axd?d=7WioxZREwXZsC3Sq5E6JW_HL_KwG15-f1UStXZ2tayYLOnsQN7i3vcodPHScg4wUGTm0lg-hkWJweK…:6302
    Sys$Net$WebRequest$invoke @ ScriptResource.axd?d=7WioxZREwXZsC3Sq5E6JW_HL_KwG15-f1UStXZ2tayYLOnsQN7i3vcodPHScg4wUGTm0lg-hkWJweK…:6481
    Sys$WebForms$PageRequestManager$_onFormSubmit @ ScriptResource.axd?d=zR4pyxVmekBi9sdTxStBjr4h3ahfFHlVKntH7rN5dT3I5SiXOX6zyzMaDAwp-0fr_MI5LwGBAqwF7X…:1292
    Sys$WebForms$PageRequestManager$_doPostBack @ ScriptResource.axd?d=zR4pyxVmekBi9sdTxStBjr4h3ahfFHlVKntH7rN5dT3I5SiXOX6zyzMaDAwp-0fr_MI5LwGBAqwF7X…:824
    (anonymous) @ ScriptResource.axd?d=7WioxZREwXZsC3Sq5E6JW_HL_KwG15-f1UStXZ2tayYLOnsQN7i3vcodPHScg4wUGTm0lg-hkWJweK…:47
    disableButtonAndPostbackWithArgument @ sfafStandardScript1.js:464
    disableButtonAndPostback @ sfafStandardScript1.js:445
    onclick @ EditStudentsInClassroom.aspx?ids=53yb&p=1&sy=2016%2F2017&syid=73&gp=Baseline&gpid=1&su=&xxyz=10d0d5…:1154

  2. Mark
    Mark avatar
    2 posts
    Member since:
    Feb 2013

    Posted 12 Jul 2017 Link to this post

    I may have just solved this issue by setting the EnableViewState to false 

    I found the information about the view state here: 

    View State

Back to Top