Current filter:
                                You should refresh the page.
                                  • Hello,

                                    I have a grid with several columns, one of them is of the boolean type. I would like to show it with a normal checkbox in a grid column - this is very easy to achieve. The grid edit options is "form". Is there a way to change the type for this field to dxSwitch but only on the form. After going back to the grid, I want it to be a checkbox.

                                    I used this approach:
                                      onEditorPreparing(e) {
                                        if (e.parentType === 'dataRow' && e.dataField === 'active') {
                                          e.editorName = 'dxSwitch';

                                    but it changes both displays, on the grid and on the form.

                                    Kind regards,

                                1 Solution

                                Creation Date Importance Sort by

                                Hello Marcin,

                                To achieve your goal, set the column's formItem option instead:

                                <dxi-column dataField="active"> <dxo-form-item editorType="dxSwitch"> </dxo-form-item> </dxi-column>
                                • Customer91813 09.12.2019

                                  Thank you !

                                • Alisher (DevExpress Support) 11.06.2019

                                  Hi Marcin,

                                  Do you mind if I mark this ticket public so everyone can see it and use the approach I recommended?

                                • Customer91813 11.06.2019

                                  No, I don't mind - make it public.

                                • Alisher (DevExpress Support) 11.06.2019

                                  Fantastic! Thank you for your cooperation!