EnableViewState="false" and Column Resizing

2 posts, 0 answers
  1. Valery
    Valery avatar
    45 posts
    Member since:
    Nov 2008

    Posted 09 Jun 2010 Link to this post

    Hello,

    I know that ViewState can be compressed and it is a bad option for complex controls like RadGrid but please consider the markup below (having in mind that the EnableViewState option of the containing page/control is set to "false"). If I load the page initially and click the button everything's fine. But if I click it after even the slightest column resize a senseless Javascript exception gets fired with no indication what the problem may be.
    <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server"
        <telerik:RadGrid ID="RadGrid1" runat="server"
            <MasterTableView /> 
            <ClientSettings> 
                <Resizing AllowColumnResize="true" /> 
            </ClientSettings> 
        </telerik:RadGrid> 
    </telerik:RadAjaxPanel> 
    <asp:LinkButton ID="LinkButton1" runat="server" Text="Click Me!" OnClientClick="return Update();" /> 
    <telerik:RadScriptBlock ID="RadScriptBlock1" runat="server"
        <script type="text/jscript"
            function Update() { $find('<%= RadAjaxPanel1.ClientID %>').ajaxRequest('', ''); } 
        </script> 
    </telerik:RadScriptBlock> 
     

    Is this a correct behavior of the control? Is there some kind of workaround for this crash?

    Drilling down to the source of the problem took quite some time... so I guess a more meaningful exception should be thrown....

    Best regards,
    V.
  2. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 14 Jun 2010 Link to this post

    Hello Valery,

    Could you please confirm that the error does not appear if the ViewState on the page is enabled? Also please test the application by disabling the Ajax on the page and let me know if the problem still persists.


    Regards,
    Maria Ilieva
    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top