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

EnableViewState="false" and Column Resizing

1 Answer 41 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Valery
Top achievements
Rank 2
Valery asked on 09 Jun 2010, 08:21 PM
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.

1 Answer, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 14 Jun 2010, 02:20 PM
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.
Tags
Grid
Asked by
Valery
Top achievements
Rank 2
Answers by
Maria Ilieva
Telerik team
Share this question
or