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
620
CellClickAction behavior
posted

Hi,

The following applies to 15.1.  I set a 'global' CellClickAction="SelectCell" setting and, as expected, all of my XamDataGrid fields then required a double-click to enter edit mode.  I then set a 'local'  CellClickAction="Default" on one of the checkbox fields.  I was expecting that a single-click would be all that is needed to change the value of the checkbox.  However, a double-click was still needed to change the value.  What am I missing?  Shouldn't the 'local' setting override the 'global' setting?  I tried the same test on a CurrencyField, and saw the same issue.

       <igWPF:XamDataGrid DataSource="{Binding DataList}">           
            <igdp:XamDataGrid.FieldSettings>
                <igdp:FieldSettings CellClickAction="SelectCell" />
            </igdp:XamDataGrid.FieldSettings>
           
            <igdp:XamDataGrid.FieldLayouts>
                <igdp:FieldLayout>
                    <igdp:FieldLayout.Settings>
                        <igdp:FieldLayoutSettings AutoGenerateFields="False" SupportDataErrorInfo="RecordsAndCells" />
                    </igdp:FieldLayout.Settings>
                   
                    <igdp:FieldLayout.Fields>
                        <igdp:CheckBoxField Name="IsApproved" >
                            <igdp:CheckBoxField.Settings>
                                <igdp:FieldSettings CellClickAction="Default" />
                            </igdp:CheckBoxField.Settings>
                            <igdp:CheckBoxField.CellBindings>
                                <igdp:CellBinding Property="IsEnabled" Target="Editor" Binding="{Binding Path=DataItem.CanEditIsApproved}"/>
                            </igdp:CheckBoxField.CellBindings>
                        </igdp:CheckBoxField>

                        <igdp:CurrencyField Name="Salary">
                            <igdp:CurrencyField.CellBindings>
                                <igdp:CellBinding Property="IsEnabled" Target="Editor" Binding="{Binding Path=DataItem.CanEditSalary}"/>
                            </igdp:CurrencyField.CellBindings>
                        </igdp:CurrencyField>
                    </igdp:FieldLayout.Fields>
                </igdp:FieldLayout>
            </igdp:XamDataGrid.FieldLayouts>
        </igWPF:XamDataGrid>