- Home
- Forum
- ASP.NET Web Forms
- Grid/Editing/Dialog Editing - without DropDownListItem - default Dialog Mode and Template Mode
Grid/Editing/Dialog Editing - without DropDownListItem - default Dialog Mode and Template Mode
Thanks for using Syncfusion products.
We suspect that you have been saying about the DropdownList in the below Online Sample Browser that we have used to switch between Dialog and DialogTemplate EditMode.
http://asp.syncfusion.com/demos/web/grid/dialogonlocaldata.aspx
At initial rendering, you can set EditMode using Grid EditSettings Property. Please refer the following code snippets.
|
<%--For Dialog Edit Mode--%>
<ej:Grid ID="OrdersGrid" runat="server" AllowPaging="True" >
<EditSettings AllowEditing="True" AllowAdding="True" AllowDeleting="True" EditMode="Dialog”></EditSettings> </ej:Grid>
<%--For DialogTemplate Edit Mode--%> <ej:Grid ID="OrdersGrid" runat="server" AllowPaging="True" >
<EditSettings AllowEditing="True" AllowAdding="True" AllowDeleting="True" EditMode="DialogTemplate” DialogEditorTemplateID="template"></EditSettings> </ej:Grid>
<script type="text/template" id="template"> <b>Order Details</b> <table cellspacing="10"> <tr> <td style="text-align: right;">Order ID </td> … </script> |
If you need to switch EditMode after Grid renders, you can use Grid option method. Please refer the following code snippets
|
<%--For Dialog Edit Mode--%> $('#GridID').ejGrid("option", { "editSettings": { editMode: "dialog" } });
<%--For Dialog Edit Mode--%> $('#GridID').ejGrid("option", { "editSettings": { editMode: "dialogtemplate", dialogEditorTemplateID: "#template" } }); |
Note: For DialogTempate EditMode we need to set value for DialogEditorTemplateID also.
If we misunderstood your requirement then please get back to us more information so that we could provide you a response as early as possible.
Please let us know if you need any further assistance.
Regards,
Alan Sangeeth S
HiWithout select DropDownListItem ( without DropDownListItem ) how to set (Edit Mode) default - open Dialog Mode or Template ModeThanksPratheep
Hi
Attachment: Dialog_Editing_f3425229.rar
The DialogEditorTemplateID Grid EditSettings property should contain template name followed by id selector “#”. Please refer the following code snippets.
|
<ej:Grid ID="OrdersGrid" runat="server" AllowPaging="True" >
<EditSettings AllowEditing="True" AllowAdding="True" AllowDeleting="True"EditMode="DialogTemplate” DialogEditorTemplateID="#template"></EditSettings> </ej:Grid> |
In the previous update, we have missed to include the # tag in the code snippets and we are sorry for the inconvenience caused.
We have modified your sample and the same can be downloaded from below link.
Sample: http://www.syncfusion.com/downloads/support/forum/119960/ze/Dialog_Editing43994114
Please refer the following documentation for further reference.
http://help.syncfusion.com/ug/aspnet/Documents/dialogtemplateediting.htm
Please let us know if you need any further assistance.
Regards,
Alan Sangeeth S
Thanks for the update.
Please let us know if you need any further assistance. We will be happy to assist you.
Regards,
Alan Sangeeth S
- 5 Replies
- 2 Participants
-
PR Pratheep
- Aug 19, 2015 01:35 AM UTC
- Aug 21, 2015 05:04 AM UTC