Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
685
Web Data grid edit issue ( dataSerialization faliure , invalid response)
posted

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>

<ig:BoundDataField DataFieldName="Code" Key="Code" Width="11%">

<Header Text="<%$resources:corecom,ComCode %>"/>

</ig:BoundDataField>

<ig:BoundDataField DataFieldName="ShipCity" Key="ShipCity" Width="15%">

<Header Text="<%$resources:corecom,ShipCity %>"/>

</ig:BoundDataField>

<ig:BoundDataField DataFieldName="ShipState" Key="ShipState" Width="10%">

<Header Text="<%$resources:corecom,ShipState %>"/>

</ig:BoundDataField>

<ig:BoundDataField DataFieldName="Phone" Key="Phone" Width="13%">

<Header Text="<%$resources:corecom,Phone %>"/>

</ig:BoundDataField>

<ig:BoundDataField DataFieldName="Fax" Key="Fax" Width="13%">

<Header Text="<%$resources:corecom,Fax %>"/>

</ig:BoundDataField>

<ig:TemplateDataField Key="Delete" Width="3%">

<ItemTemplate>

<asp:ImageButton ID="btnDelete" runat="server" OnClientClick="return DeleteRow();" OnClick="btnDelete_Click" AlternateText="Delete" ImageUrl="~/images/StandardIcons/Delete.png" CssClass="GridButtonStyle" width="25px"/>

</ItemTemplate>

</ig:TemplateDataField>

</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>

<Behaviors>

<ig:RowDeleting Enabled="true"/>

<ig:CellEditing Enabled="true">

<EditModeActions EnableF2="true" EnableOnActive="true" MouseClick="Double"/>

<ColumnSettings>

<ig:EditingColumnSetting ColumnKey="Name" ReadOnly="true"/>

<ig:EditingColumnSetting ColumnKey="ShipCity" ReadOnly="true"/>

<ig:EditingColumnSetting ColumnKey="ShipState" ReadOnly="true"/>

</ColumnSettings>

</ig:CellEditing>

</Behaviors>

</ig:EditingCore>

</Behaviors>

<EditorProviders>

<ig:WebTextEditProvider ID="WebTextEditProvider1"/>

</EditorProviders>

</ig:WebDataGrid>

 

Parents Reply Children
No Data