dx-data-grid

hide columns on inserting in data grid devextreme

喜你入骨 提交于 2020-01-17 06:35:13
问题 Is there any way to hide a column on inserting data grid? I have a grid that one cells have multi command buttons. But when I want to insert or update for those buttons it renders an empty textbox. How can I remove the textbox in inserting and updating? I have tried this but I don't know how can I hide it: columns:[... { allowHiding:true, cellTemplate: function (container, options) { $('<button type="button" class="btn btn-default"/>').addClass('dx-button btnLinkGrid') .text('Commission') .on

How to create dxi-column with dataType dynamically in dxdatagrid?

瘦欲@ 提交于 2019-12-23 19:10:28
问题 We are developing an angular application. I have to display records in a dxdatagrid having Each time the schema will be different.Data coming from different table. want to add/edit records want to display controls corresponding to each data type Any one please help to achieve the same. 回答1: You can use the attribute [columns] on your dx-data-grid . Example: on your component const columns = [{ dataField: 'id', caption: 'Id', width: 100, dataType: number }, { dataField: 'Name', caption: 'Name'