Current filter:
                                You should refresh the page.
                                  • I've a DataSource that communicates with my backend application, just for situate, on my database I've a table that has a field with a percetual value (0 -> 1). When the value is 50% the real value is 0.5.

                                    I'm using the DxDataGrid with edition mode "cell" to my crud, all is working fine, but I want the user to type "40%" on cell editor and the real value saved be "0.4". Is that possible?

                                1 Solution

                                Creation Date Importance Sort by

                                I've found the solution:

                                [JavaScript]
                                onEditorPreparing($event: any) { if ($event.row.rowType !== 'data') { return; } if ($event.dataField == "myfield") { $event.editorOptions.format = "percent"; } }
                                • Artem (DevExpress Support) 08.09.2019

                                  Thank you for the update. Your approach is correct. Feel free to contact us in case of further difficulties.