I have the parent of the hierarchial data grid updating automatically on edit and deletions, but he child doesn't seem to work the same. The only way I can update the dhild is by updating the parent (when I update the parent it posts back and updates the child but I can't get the child to postback). I wouldn't think that it would behave differently, but it seems to or maybe (hopefully) I am just missing something simple.
Below is my grid alone. Thank you for any assistance you can provide.
<ig:WebHierarchicalDataGrid ID="gridlog" runat="server" Height="96%" Width="100%"
DataSourceID="dslog" AutoGenerateBands="False" AutoGenerateColumns="False" DataKeyFields="SegID"
DataMember="SqlDataSourceLog_DefaultView" Key="SqlDataSourceLog_DefaultView"
StyleSetName="Pear">
<Bands>
<ig:Band AutoGenerateColumns="False" DataKeyFields="SegID, WorkID" DataMember="SqlDataSourceWork_DefaultView"
Key="SqlDataSourceWork_DefaultView">
<Columns>
<ig:BoundDataField DataFieldName="WorkID" Key="WorkID" Hidden="true" />
<ig:BoundDataField DataFieldName="JobID" Key="JobID" Hidden="true" />
<ig:BoundDataField DataFieldName="SegID" Key="SegID" Hidden="true" />
<ig:BoundDataField DataFieldName="EmpID" Key="EmpID" Header-Text="Work Completed By">
<Header Text="Work Completed By"></Header>
</ig:BoundDataField>
<ig:BoundDataField DataFieldName="WorkDateReceived" Key="WorkDateReceived" Header-Text="Date Received">
<Header Text="Date Received"></Header>
<ig:BoundDataField DataFieldName="TimeSpent" Key="TimeSpent" Header-Text="Time Spent">
<Header Text="Time Spent"></Header>
<ig:BoundDataField DataFieldName="isSpellChecked" Key="isSpellChecked" Header-Text="Spell Checked?">
<Header Text="Spell Checked?"></Header>
<ig:BoundDataField DataFieldName="isProofRead" Key="isProofRead" Header-Text="Proof Read?">
<Header Text="Proof Read?"></Header>
</Columns>
<Behaviors>
<ig:EditingCore>
<ig:CellEditing Enabled="true" >
<ColumnSettings>
<ig:EditingColumnSetting ColumnKey="EmpID" EditorID="gridlog_DropDownAssignedTo" />
<ig:EditingColumnSetting ColumnKey="isSpellChecked" EditorID="gridlog_DropDownYesNo" />
<ig:EditingColumnSetting ColumnKey="isProofRead" EditorID="gridlog_DropDownYesNo" />
</ColumnSettings>
<CellEditingClientEvents ExitedEditMode="gridlog_child_Editing_RowUpdated" />
<EditModeActions MouseClick="Single" />
</ig:CellEditing>
<ig:RowAdding Enabled="true">
<ig:RowAddingColumnSetting ColumnKey="EmpID" EditorID="gridlog_DropDownAssignedTo" />
<ig:RowAddingColumnSetting ColumnKey="isSpellChecked" EditorID="gridlog_DropDownYesNo" />
<ig:RowAddingColumnSetting ColumnKey="isProofRead" EditorID="gridlog_DropDownYesNo" />
</ig:RowAdding>
<ig:RowDeleting Enabled="true" />
</Behaviors>
</ig:EditingCore>
</ig:Band>
</Bands>
<ig:EditingCore EnableInheritance="true">
<ig:CellEditing Enabled="true" EnableInheritance="true">
<ig:EditingColumnSetting ColumnKey="AssignedTo" EditorID="gridlog_DropDownAssignedTo" />
<ig:EditingColumnSetting ColumnKey="SegStatus" EditorID="gridlog_DropDownSegStatus" />
<ig:EditingColumnSetting ColumnKey="isScheduled" ReadOnly="true" />
<ig:EditingColumnSetting ColumnKey="Jobid" ReadOnly="true" />
<ig:EditingColumnSetting ColumnKey="SegNumber" ReadOnly="true" />
<ig:EditingColumnSetting ColumnKey="SegDescr" ReadOnly="True" />
<ig:EditingColumnSetting ColumnKey="TimeSubmit" ReadOnly="True" />
<ig:EditingColumnSetting ColumnKey="DateDue" ReadOnly="True" />
<ig:EditingColumnSetting ColumnKey="TimeDue" ReadOnly="True" />
<EditModeActions MouseClick="Single"></EditModeActions>
<ig:RowAdding EnableInheritance="True" Enabled="False">
<ig:RowDeleting EnableInheritance="True" Enabled="False" />
<ig:Selection CellClickAction="Row" RowSelectType="Single">
</ig:Selection>
<ig:Activation>
</ig:Activation>
<EditorProviders>
<ig:DropDownProvider ID="gridlog_DropDownAssignedTo">
<EditorControl ID="EditorControl1" DropDownContainerMaxHeight="200px" Width="200px"
EnableAnimations="False" EnableDropDownAsChild="False" runat="server" DataSourceID="dsEmp"
TextField="employeename" ValueField="employeeid">
<DropDownItemBinding TextField="employeename" ValueField="employeeid"></DropDownItemBinding>
</EditorControl>
</ig:DropDownProvider>
<ig:DropDownProvider ID="gridlog_DropDownEmpWork">
<EditorControl ID="EditorControl2" DropDownContainerMaxHeight="200px" Width="160px"
<ig:DropDownProvider ID="gridlog_DropDownSegStatus">
<EditorControl ID="EditorControl3" EnableAnimations="False" EnableDropDownAsChild="False"
runat="server" DropDownContainerMaxHeight="150px" DataSourceID="dsSegStatus"
TextField="optionitem" ValueField="optionitem">
<DropDownItemBinding TextField="optionitem" ValueField="optionitem" ToolTipField="descr">
</DropDownItemBinding>
<ig:DatePickerProvider ID="gridlog_DatePickerWorkDateReceived">
</ig:DatePickerProvider>
<ig:DropDownProvider ID="gridlog_DropDownYesNo">
<EditorControl DropDownContainerMaxHeight="200px" EnableAnimations="False" EnableDropDownAsChild="False"
runat="server">
<Items>
<ig:DropDownItem Selected="False" Text="yes" Value="true">
</ig:DropDownItem>
<ig:DropDownItem Selected="False" Text="no" Value="false">
</Items>
</EditorProviders>
<ig:BoundDataField DataFieldName="Jobid" Key="Jobid" Header-Text="Job" Width="35px">
<Header Text="Job"></Header>
<ig:BoundDataField DataFieldName="isScheduled" Key="isScheduled" Header-Tooltip="Scheduled?"
Header-Text="S" Width="30px">
<Header Text="S" Tooltip="Scheduled?"></Header>
<ig:BoundDataField DataFieldName="SegNumber" Key="SegNumber" Header-Text="Seg#" Width="30px">
<Header Text="Seg#"></Header>
<ig:BoundDataField DataFieldName="SegDescr" Key="SegDescr" Header-Text="Description">
<Header Text="Description"></Header>
<ig:BoundDataField DataFieldName="TimeSubmit" Key="TimeSubmit" Header-Text="Time In"
Width="50px">
<Header Text="Time In"></Header>
<ig:BoundDataField DataFieldName="DateDue" Key="DateDue" Width="50px" Header-Text="Date Due"
DataFormatString="{0:d}">
<Header Text="Date Due"></Header>
<ig:BoundDataField DataFieldName="TimeDue" Key="TimeDue" Header-Text="Time Due" Width="50px">
<Header Text="Time Due"></Header>
<ig:BoundDataField DataFieldName="JobTicketStatus" Key="JobTicketStatus" Hidden="true" />
<ig:BoundDataField DataFieldName="Instructions" Key="Instructions" Hidden="true" />
<ig:BoundDataField DataFieldName="SegStatus" Key="SegStatus" Width="100px" Header-Text="Segment Status">
<Header Text="Segment Status"></Header>
<ig:BoundDataField DataFieldName="SegStatusDescr" Key="SegStatusDescr" />
<ig:BoundDataField DataFieldName="AssignedTo" Key="AssignedTo" Width="150px" Header-Text="Assigned To">
<Header Text="Assigned To"></Header>
</ig:WebHierarchicalDataGrid>
Hello mclingan,
I am just following up to see, if you were able to cause postback on child band updating based on the suggestion I have provided above.
Update me if you have any further questions with this matter.
Based on the mark up provided, I understand there is a duplicate behavior on the child band since you have set EnableInheritance property of editing behavior to "true" on parent band as below:
<ig:EditingCore EnableInheritance="true"><Behaviors><ig:CellEditing Enabled="true" EnableInheritance="true">
Review the link below for more details:
<http://help.infragistics.com/NetAdvantage/ASPNET/2011.2/CLR4.0/?page=Infragistics4.Web.v11.2~Infragistics.Web.UI.GridControls.EditingCore~EnableInheritance.html>
As such, I would recommend you to either set “EnableInheritance” property to "false" on parent band. If you want this property to be set true remove behaviors from child band since it is inherited from parent band.
I hope this helps.