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
860
Child row will not delete!
posted

The child row will not delete.  I have the Activation and Selection enabled on the parent of the grid.  These cannot be set on the child.   Here is the parent behaviors:

        <Behaviors>
            <ig:Activation Enabled="true">
            </ig:Activation>
            <ig:Sorting>
            </ig:Sorting>
            <ig:Selection CellClickAction="Row" RowSelectType="Single">
            </ig:Selection>
            <ig:EditingCore>
                <Behaviors>
                    <ig:RowDeleting Enabled="true" />
                    <ig:CellEditing>
                        <ColumnSettings>
                            <ig:EditingColumnSetting ColumnKey="DESCRIPTION" />
                            <ig:EditingColumnSetting ColumnKey="USES_SCORING"
                                EditorID="ddpYesNoSelection" />
                        </ColumnSettings>
                        <EditModeActions EnableOnActive="True" MouseClick="Single" />
                    </ig:CellEditing>
                    <ig:RowAdding Alignment="Top">
                        <ColumnSettings>
                            <ig:RowAddingColumnSetting ColumnKey="DESCRIPTION" />
                            <ig:RowAddingColumnSetting ColumnKey="USES_SCORING"
                                EditorID="ddpYesNoSelection" />
                        </ColumnSettings>
                        <EditModeActions EnableOnActive="True" MouseClick="Single" />
                    </ig:RowAdding>
                </Behaviors>
            </ig:EditingCore>
        </Behaviors>

Here is the child behavoirs:

                <Behaviors>
                    <ig:EditingCore EnableInheritance="True">
                        <Behaviors>
                            <ig:CellEditing>
                                <ColumnSettings>
                                    <ig:EditingColumnSetting ColumnKey="RANK" EditorID="nepSpinControl"
                                        ReadOnly="True" />
                                    <ig:EditingColumnSetting ColumnKey="NAME" />
                                    <ig:EditingColumnSetting ColumnKey="RATING_VALUE" EditorID="nepTypedNumeric" />
                                </ColumnSettings>
                                <EditModeActions EnableOnActive="True" MouseClick="Single" />
                            </ig:CellEditing>
                            <ig:RowAdding Alignment="Top">
                                <ColumnSettings>
                                    <ig:RowAddingColumnSetting ColumnKey="RANK" EditorID="nepSpinControl" />
                                    <ig:RowAddingColumnSetting ColumnKey="NAME" />
                                    <ig:RowAddingColumnSetting ColumnKey="RATING_VALUE"
                                        EditorID="nepTypedNumeric" />
                                </ColumnSettings>
                                <AddNewRowClientEvents ExitingEditMode="whdgRatings_RowAdding_ExitingEditMode"
                                    EnteredEditMode="whdgRatings_RowAdding_EnteredEditMode" />
                                <EditModeActions EnableOnActive="True" MouseClick="Single" />
                            </ig:RowAdding>
                            <ig:RowDeleting Enabled="true" />
                           
                        </Behaviors>
                    </ig:EditingCore>
                    <ig:Sorting>
                    </ig:Sorting>
                </Behaviors>

Here is the function that is called on both parent and child rows from a templated image button on the row.

 

 

 

 

 

function

 

 

 

DeleteRow() {

 

 

 

var grid = $find('whdgRatings');

 

 

 

var gridRows = grid.get_gridView().get_rows();

 

 

 

var selectedRows = grid.get_gridView().get_behaviors().get_selection().get_selectedRows();

alert(selectedRows.get_length());

 

}

Any ideas??