- Home
- Forum
- ASP.NET Core - EJ 2
- Grid dialog edit template
Grid dialog edit template
3 Replies
DR
Dhivya Rajendran
Syncfusion Team
March 29, 2018 08:39 AM UTC
Hi Alex,
Thanks for contacting Syncfusion support,
Query1: Is it possible to use custom dialog template for grid editing?
Yes, we have create a sample for your reference. In the below sample we have customized the cell by using edit property of column in Grid. You can customize the each cell by using edit property. Kindly please refer the below sample and code snippet for more information.
| <div> <ejs-grid id="Grid" dataSource="ViewBag.dataSource" load="load" toolbar="@(new List<string>() { "Add", "Edit", "Delete", "Update", "Cancel" })" allowPaging="true"> <e-grid-editSettings allowAdding="true" allowDeleting="true" allowEditing="true" mode="Dialog"></e-grid-editSettings> <e-grid-columns> <e-grid-column field="OrderDate" headerText="Order Date" type= 'date' format= 'yMd' width="170"></e-grid-column> </e-grid-columns> </ejs-grid> </div> <script> function load() { this.columns[3].edit = { // custom datepicker for orderDate column using edit property create: function () { elem = document.createElement('input'); return elem; }, read: function () { return datePickerObj.value; }, destroy: function () { datePickerObj.destroy(); }, write: function (args) { datePickerObj = new ej.calendars.DatePicker({ value: new Date(args.rowData[args.column.field]), floatLabelType: 'Never' }); datePickerObj.appendTo(elem); } } } </script> |
Documentation: https://ej2.syncfusion.com/16.1.24/documentation/grid/edit.html?lang=es5#cell-edit-template
Regards,
R.Dhivya
R.Dhivya
AL
Alex
March 29, 2018 02:46 PM UTC
Thanks for quick reply, but i mean dialog template for customizing layout. How can i set dialog size and customize layout using bootstrap grid system?
SK
Sundararaman Krishnamoorthy
Syncfusion Team
April 2, 2018 12:56 PM UTC
Hi Alex,
Refer the below link for customizing the dialog template for editing. Here the dialog is customized in the actionComplete event.
Currently we don’t have support for this layout editing. For this kind of requirement we have feature called “Dialog template support for grid” . By this we can customize layout in editing.
Regards,
Sundararaman. K
SIGN IN To post a reply.
- 3 Replies
- 3 Participants
-
AL Alex
- Mar 28, 2018 09:47 AM UTC
- Apr 2, 2018 12:56 PM UTC