Hello All,
I want to update the Hierarchical Data Grid. I read below article but there is no handling of save button event.
http://es.infragistics.com/products/aspnet/sample/hierarchical-data-grid/batch-updating
How does batch update work, Please help me?
Thanks.
Hello Mypost,
In the linked sample from your post, the WHDG is using AutoCRUD, therefore the save button's function is only to initiate a postback, and all the batched CRUD operations are handled automatically by the grid. A list of the datasources which support AutoCRUD may be seen at:
http://help.infragistics.com/doc/ASPNET/2013.2/CLR4.0/?page=WebDataGrid_Supported_Data_Sources.html
Should Manual CRUD be required in this scenario, an example illustrating how the different CRUD operations of the grid may be handled can be found at:
http://es.infragistics.com/community/blogs/radoslav_minchev/archive/2010/12/18/manual-crud-webhierarchicaldatagrid.aspx
Please feel free to contact me if you have any questions.
Thanks for reply, Please look at my below issue.
Hi,
I am using DropDown editor control in grid, I want to update cell value when change the DropDown value.
when i am changing the dropdown value and update my sql table the getting null value error, because my sql column do not allow me to set null value.
when i am updating the value in my table as per changed in dropdowneditor, getting null error, why is this issue coming?
My code is look like that
<ig:BoundDataField DataFieldName="Caption" Key="Id" Header-Text="Caption"Width="80px" />
<ig:EditingCore BatchUpdating="true"><Behaviors>
<ig:CellEditing Enabled="true" EditModeActions-EnableF2="true"><ColumnSettings> <ig:EditingColumnSetting ColumnKey="Id" EditorID="valProvider" /></ColumnSettings></ig:CellEditing></Behaviors></ig:EditingCore>
<EditorProviders><ig:DropDownProvider ID="statusProvider"><EditorControl ID="statusEditorCntrl" runat="server" DisplayMode="DropDownList" TextField="Caption"ValueField="Id" DataKeyFields="Id" Width="80px" DataSourceID="Source" ></EditorControl></ig:DropDownProvider></EditorProviders>