Hi
I am using web datagrid 10.3 .
I have to do edit some field in Webdatagrid and edited filed i have to save on save button click.
when i am editing any row then its throw Dataserialization failure, invalid response.
below is my grid
<ig:WebDataGrid ID="grdCompanies" runat="server" Width="100%" AutoGenerateColumns="False" EnableAjaxViewState="false" EnableDataViewState="false" DataKeyFields="Id" AjaxIndicator-ImageUrl="../../images/indicator_bar.gif" AjaxIndicator-AltText="" OnRowsDeleting="grdCompanies_RowDeleting" EnableTheming="True" StyleSetName ="Default" BorderStyle="None" onrowupdated="grdCompanies_RowUpdated" onrowupdating="grdCompanies_RowUpdating"
><Columns>
<ig:BoundDataField DataFieldName="Id" Key="Id" Width="0" Hidden="true">
<Header Text=""/>
</ig:BoundDataField>
<ig:TemplateDataField Key="Edit" Width="3%">
<ItemTemplate>
<asp:ImageButton ID="btnEdit" runat="server" OnClick="btnEdit_Click" ImageUrl="~/images/StandardIcons/Edit.png" CssClass="GridButtonStyle" width="25px"/>
</ItemTemplate>
</ig:TemplateDataField>
<ig:BoundDataField DataFieldName="Name" Key="Name" Width="32%">
<Header Text="<%$resources:corecom,ComName %>"/>
<ig:BoundDataField DataFieldName="Code" Key="Code" Width="11%">
<Header Text="<%$resources:corecom,ComCode %>"/>
<ig:BoundDataField DataFieldName="ShipCity" Key="ShipCity" Width="15%">
<Header Text="<%$resources:corecom,ShipCity %>"/>
<ig:BoundDataField DataFieldName="ShipState" Key="ShipState" Width="10%">
<Header Text="<%$resources:corecom,ShipState %>"/>
<ig:BoundDataField DataFieldName="Phone" Key="Phone" Width="13%">
<Header Text="<%$resources:corecom,Phone %>"/>
<ig:BoundDataField DataFieldName="Fax" Key="Fax" Width="13%">
<Header Text="<%$resources:corecom,Fax %>"/>
<ig:TemplateDataField Key="Delete" Width="3%">
<asp:ImageButton ID="btnDelete" runat="server" OnClientClick="return DeleteRow();" OnClick="btnDelete_Click" AlternateText="Delete" ImageUrl="~/images/StandardIcons/Delete.png" CssClass="GridButtonStyle" width="25px"/>
</Columns>
<EditorProviders>
<ig:TextBoxProvider ID="TextBoxProvider"/>
</EditorProviders>
<AjaxIndicator AltText="Async post" ImageUrl="../../images/indicator_bar.gif"/>
<Behaviors>
<ig:Activation Enabled ="true"/>
<ig:ColumnResizing Enabled="true">
<ColumnSettings>
<ig:ColumnResizeSetting EnableResize="true"/>
</ColumnSettings>
</ig:ColumnResizing>
<ig:Sorting>
</ig:Sorting>
<ig:Selection RowSelectType="Single" CellClickAction="Row">
</ig:Selection>
<ig:Filtering Alignment="Top" Visibility="Visible" Enabled="true" AnimationEnabled="true">
<ColumnFilters>
</ColumnFilters>
</ig:Filtering>
<ig:EditingCore>
<ig:RowDeleting Enabled="true"/>
<ig:CellEditing Enabled="true">
<EditModeActions EnableF2="true" EnableOnActive="true" MouseClick="Double"/>
<ig:EditingColumnSetting ColumnKey="Name" ReadOnly="true"/>
<ig:EditingColumnSetting ColumnKey="ShipCity" ReadOnly="true"/>
<ig:EditingColumnSetting ColumnKey="ShipState" ReadOnly="true"/>
</ig:CellEditing>
</Behaviors>
</ig:EditingCore>
<ig:WebTextEditProvider ID="WebTextEditProvider1"/>
</ig:WebDataGrid>
Hello,
I followed the steps you suggested and was unable to reproduce the behavior you're describing. I created a grid with editing using the markup you supplied, and then edited a cell. The WebDataGrid operated as expected without errors.
I have attached the sample project I used to test this. Please test this project on your PC; whether or not it works correctly may help indicate the nature of this problem.
If the project does not work correctly, this indicates either a problem possibly specific to your environment, or a difference in the DLL versions we are using. My test was performed using version 10.3.20103.2187 in NetAdvantage for ASP.NET 2010 Volume 3.
If the project does show the product feature working correctly, this indicates a possible problem in the code of your application. It will help if you can provide a small, isolated sample application that demonstrates the behavior you are seeing.
Or, if this sample project is not an accurate demonstration of what you're trying to do, please feel free to modify it and send it back, or send a small sample project of your own if you have one.
Please let me know if I may be if further assistance with this matter.
Sincerely,Mike P.Developer Support EngineerInfragistics, Inc.www.infragistics.com
I am following up to see if the information and sample provided has resolved this matter.
Please let me know if I may be of further assistance with this matter.
I haven't heard from you in a few days and just wanted to check to see if there was anything else I can do for you. If I don't hear from you in 3 days I will go ahead and coinsider this matter resolved. Once a case is closed you will still be able to open it again within 30 days.
Please let me know if you have any other questions concerning this matter.Sincerely,Mike P.Developer Support EngineerInfragistics, Inc.www.infragistics.com