Hello Telerik,
Here is the problem for today:
I have a telerik grid which is setup like this:
Data source is ObjectDataSource.
The ~/UserControls/Controls_Container.ascx contains 3 controls:
DetailsView, ASP.net gridview and Telerik grid.
Everything works ok until i add this:
<telerik:RadAjaxManager ID="MasterAjaxManager" runat="server">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="RadGrid1">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="RadGrid1" />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManager>
If you click "edit" and then sort 3 times you will get:
Validation of view state MAC failed. If this app is hosted by web farm.....
Tried to add mashine key to config, tried to add ajaxmanagerproxy to each control, then to just controls container, tried this post:
http://www.telerik.com/community/forums/thread/b311D-bbtahh.aspx,
and already spent more then 10 hours trying figure out what to do and my boss is getting nervous.
If i do this it works:
EnableViewStateMac="false"
EnableEventValidation="false"
ViewStateEncryptionMode="false"
ValidateRequest="false"
It even works if controls are ajaxified and grid is not. Does anybody have a solution for this or should I just remove ajax?
Thank you,
Mario
Here is the problem for today:
I have a telerik grid which is setup like this:
<telerik:RadGrid ID="RadGrid1" Width="1100px" runat="server" AllowPaging="True" AllowSorting="True" | |
AutoGenerateColumns="False" AutoGenerateEditColumn="True" DataSourceID="ODS" | |
GridLines="None" Skin="Hay" OnItemCommand="RadGrid1_ItemCommand" OnItemCreated="RadGrid1_ItemCreated"> | |
<MasterTableView DataSourceID="ODS" DataKeyNames="ID,CUST_ID,ACCOUNT_ID"> | |
<RowIndicatorColumn Visible="False"> | |
<HeaderStyle Width="20px" /> | |
</RowIndicatorColumn> | |
<ExpandCollapseColumn Resizable="False" Visible="False"> | |
<HeaderStyle Width="20px" /> | |
</ExpandCollapseColumn> | |
<Columns> | |
<telerik:GridBoundColumn DataField="ID" DataType="System.Int32" | |
ReadOnly="True" SortExpression="ID" UniqueName="ID"> | |
</telerik:GridBoundColumn> | |
<telerik:GridBoundColumn DataField="CUST_ID" DataType="System.Int32" HeaderText="CUST_ID" | |
SortExpression="CUST_ID" UniqueName="CUST_ID"> | |
</telerik:GridBoundColumn> | |
<telerik:GridBoundColumn DataField="DATE" DataType="System.DateTime" HeaderText="DATE" | |
SortExpression="DATE" UniqueName="DATE"> | |
</telerik:GridBoundColumn> | |
<telerik:GridBoundColumn DataField="AMOUNT" DataType="System.Decimal" HeaderText="AMOUNT" | |
SortExpression="AMOUNT" UniqueName="AMOUNT"> | |
</telerik:GridBoundColumn> | |
</Columns> | |
<EditFormSettings EditFormType="WebUserControl" UserControlName="~/UserControls/Controls_Container.ascx" > | |
</EditFormSettings> | |
</MasterTableView> | |
</telerik:RadGrid> |
Data source is ObjectDataSource.
The ~/UserControls/Controls_Container.ascx contains 3 controls:
DetailsView, ASP.net gridview and Telerik grid.
Everything works ok until i add this:
<telerik:RadAjaxManager ID="MasterAjaxManager" runat="server">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="RadGrid1">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="RadGrid1" />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManager>
If you click "edit" and then sort 3 times you will get:
Validation of view state MAC failed. If this app is hosted by web farm.....
Tried to add mashine key to config, tried to add ajaxmanagerproxy to each control, then to just controls container, tried this post:
http://www.telerik.com/community/forums/thread/b311D-bbtahh.aspx,
and already spent more then 10 hours trying figure out what to do and my boss is getting nervous.
If i do this it works:
EnableViewStateMac="false"
EnableEventValidation="false"
ViewStateEncryptionMode="false"
ValidateRequest="false"
It even works if controls are ajaxified and grid is not. Does anybody have a solution for this or should I just remove ajax?
Thank you,
Mario