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
45
New row added in the child band is not reflecting immediately.
posted

Hello,

I have Manual CRUD for Parent and Child bands and separate adding/updating/deleting events for parent and child bands. I am not using "Enable Inheritance = True" on parent because I have different dropdowneditors in parent and child bands. Please look at the markup below.

Issue: Everything works fine, but when I add a new row in the child band, the new row is not shown immediately after the postback. However, if I refresh the page and expand the parent row again, I see the new row added to the child band. 

I am binding the grid in page_load and also in page_prerender events. Please help.

<igtbl:WebHierarchicalDataGridID="grdActivityStructure"DataKeyFields="activity_category_dataset_id"
DataMember="Categories"runat="server"EnableViewState="false"EnableDataViewState="false"
AutoGenerateColumns="false"AutoGenerateBands="false"InitialExpandDepth="0"
EnableAjax="false"InitialDataBindDepth="3"OnRowAdding="grdCategory_RowAdding"
OnRowsDeleting="grdCategory_RowDeleting"Height="464px"OnRowUpdating="grdCategory_RowUpdating"
Width="100%">
<Columns>
<igtbl:BoundDataFieldCssClass="LightYellow"DataFieldName="process_id"Key="process_id"
Header-Text="ProcessCode"/>
<igtbl:BoundDataFieldCssClass="LightYellow"DataFieldName="global_stream_id"Key="global_stream_id"
Header-Text="StreamCode-StreamName"/>
<igtbl:BoundDataFieldCssClass="LightYellow"DataFieldName="activity_cat_code"Key="activity_cat_code"
Header-Text="ActivityCode"/>
<igtbl:BoundDataFieldCssClass="LightYellow"DataFieldName="activity_cat_name"Key="activity_cat_name"
Header-Text="ActivityName"/>
<igtbl:BoundDataFieldDataFieldName="import_dataset_id"Key="import_dataset_id"Hidden="true"/>
<igtbl:BoundDataFieldDataFieldName="activity_category_dataset_id"Key="activity_category_dataset_id"
Hidden="true"/>
</Columns>
<Behaviors>
<igtbl:ActivationEnabled="true">
</igtbl:Activation>
<igtbl:SelectionRowSelectType="Single"CellClickAction="Row">
</igtbl:Selection>
<igtbl:EditingCoreAutoCRUD="false">
<Behaviors>
<igtbl:RowAddingAddNewRowCssClass="test"Alignment="Top"Enabled="true"EditModeActions-EnableF2="true"
EditModeActions-MouseClick="Double"EditModeActions-EnableOnKeyPress="true"EditModeActions-EnableOnActive="true">
<ColumnSettings>
<igtbl:RowAddingColumnSettingColumnKey="process_id"EditorID="grdProcess_DropDownProvider"/>
<igtbl:RowAddingColumnSettingColumnKey="global_stream_id"EditorID="grdStream_DropDownProvider"/>
</ColumnSettings>
</igtbl:RowAdding>

<igtbl:RowEditingEnabled="true"DoneButtonHtml="<spanonclick='Done_onClick();'>Done</span>"
EditModeActions-MouseClick="Single"EditModeActions-EnableOnActive="true"EnableDialog="true">
<ColumnSettings>
<igtbl:EditingColumnSettingColumnKey="process_id"ReadOnly="true"/>
<igtbl:EditingColumnSettingColumnKey="global_stream_id"EditorID="grdStream_DropDownProvider"/>
</ColumnSettings>
</igtbl:RowEditing>
<igtbl:RowDeletingEnabled="true"ShowDeleteButton="true"/>
</Behaviors>
</igtbl:EditingCore>
</Behaviors>
<Bands>
<igtbl:BandKey="AnalysisLevels"DataMember="Activities"AutoGenerateColumns="false"
DataKeyFields="activity_dataset_id"OnRowAdding="grdActivity_RowAdding"OnRowsDeleting="grdActivity_RowDeleting"
OnRowUpdating="grdActivity_RowUpdating">
<Columns>
<igtbl:BoundDataFieldDataFieldName="activity_dataset_id"Key="activity_dataset_id"
Hidden="true"/>
<igtbl:BoundDataFieldDataFieldName="activity_category_dataset_id"Key="activity_category_dataset_id"
Hidden="true"/>
<igtbl:BoundDataFieldCssClass="LightSteelBlue"DataFieldName="activity_code"Key="activity_code"
Header-Text="Sub-ActivityCode"/>
<igtbl:BoundDataFieldCssClass="LightSteelBlue"DataFieldName="activity_name"Key="activity_name"
Header-Text="Sub-ActivityName"/>
<igtbl:BoundDataFieldCssClass="LightSteelBlue"DataFieldName="analysis_level_id"
Key="analysis_level_id"Header-Text="Analysis">
<HeaderCssClass="AnalysisHeader"/>
</igtbl:BoundDataField>
<igtbl:BoundDataFieldCssClass="LightSteelBlue"DataFieldName="analysis_driver_id"
Key="analysis_driver_id"Header-Text="DriverUsed">
<HeaderCssClass="DriversHeader"/>
</igtbl:BoundDataField>
</Columns>
<Behaviors>
<igtbl:EditingCoreAutoCRUD="false">
<Behaviors>
<igtbl:RowAddingAlignment="Top"Enabled="true"EditModeActions-EnableF2="true"EditModeActions-MouseClick="Double"
EditModeActions-EnableOnKeyPress="true"EditModeActions-EnableOnActive="true">
<ColumnSettings>
<igtbl:RowAddingColumnSettingColumnKey="analysis_level_id"EditorID="grdAnalysisLevel_DropDownProvider"/>
<igtbl:RowAddingColumnSettingColumnKey="analysis_driver_id"EditorID="grdAnalysisDriver_DropDownProvider"/>
</ColumnSettings>
</igtbl:RowAdding>
<igtbl:RowEditingEnabled="true"DoneButtonHtml="<spanonclick='Done_onClick()'>Done</span>"
EditModeActions-MouseClick="Single"EditModeActions-EnableOnActive="true"EnableDialog="true">
<ColumnSettings>
<igtbl:EditingColumnSettingColumnKey="analysis_level_id"EditorID="grdAnalysisLevel_DropDownProvider"/>
<igtbl:EditingColumnSettingColumnKey="analysis_driver_id"EditorID="grdAnalysisDriver_DropDownProvider"/>
</ColumnSettings>
</igtbl:RowEditing>
<igtbl:RowDeletingEnabled="true"ShowDeleteButton="true"/>
</Behaviors>
</igtbl:EditingCore>
</Behaviors>
</igtbl:Band>
</Bands>

<EditorProviders>
<igtbl:TextEditorProviderID="WebTextEditProvider"/>
<igtbl:DropDownProviderID="grdProcess_DropDownProvider"EditorControl-DropDownContainerHeight="60px">
<EditorControlEnableAnimations="False"DropDownOrientation="BottomLeft"ClientEvents-DropDownOpening="resizeDropdown"
DisplayMode="DropDownList"EnableDropDownAsChild="False"DataKeyFields="process_id"
Height="60px"TextField="process_code"ValueField="process_id">
</EditorControl>
</igtbl:DropDownProvider>
<igtbl:DropDownProviderID="grdStream_DropDownProvider"EditorControl-DropDownContainerHeight="200px">
<EditorControlEditorID="streamID"EnableAnimations="False"ClientEvents-DropDownOpening="resizeDropdown"
DisplayMode="DropDownList"EnableDropDownAsChild="False"Height="60px"DataKeyFields="global_stream_id"
TextField="stream_code"ValueField="global_stream_id">
</EditorControl>
</igtbl:DropDownProvider>
<igtbl:DropDownProviderID="grdAnalysisLevel_DropDownProvider"EditorControl-DropDownContainerHeight="120px">
<EditorControlEnableAnimations="False"DisplayMode="DropDownList"ClientEvents-DropDownOpening="resizeDropdown"
EnableDropDownAsChild="False"DropDownOrientation="BottomLeft"DataKeyFields="analysis_level_id"
TextField="analysis_level_name"ValueField="analysis_level_id">
</EditorControl>
</igtbl:DropDownProvider>
<igtbl:DropDownProviderID="grdAnalysisDriver_DropDownProvider"EditorControl-DropDownContainerHeight="200px">
<EditorControlEnableAnimations="False"Height="60px"DisplayMode="DropDownList"
ClientEvents-DropDownOpening="resizeDropdown"EnableDropDownAsChild="False"DataKeyFields="analysis_driver_id"
TextField="driver_name"ValueField="analysis_driver_id">
</EditorControl>
</igtbl:DropDownProvider>
</EditorProviders>
</igtbl:WebHierarchicalDataGrid>

Parents
No Data
Reply Children
No Data