- Home
- Forum
- ASP.NET Web Forms
- InlineFormTemplate - grid edit inlineform-titlebar
InlineFormTemplate - grid edit inlineform-titlebar
Thanks for contacting Syncfusion support.
As per your query we can change the title of the template using Locale property as follows,
|
<ej:Grid ID="Grid1" runat="server" AllowPaging="True" Locale="en-US" AllowGrouping="true" > <EditSettings AllowAdding="true" AllowEditing="true" EditMode="InlineFormTemplate" InlineFormTemplateID="#template"/> . . . . . . . . </ej:Grid> <script type="text/javascript"> EditFormTitle: "Details ",
AddFormTitle: "Add ", }; |
Regards,
Gowthami V.
By default we have set the field name for the inline form title as primarykey column field. So that only while using Locale we could not change the field name of the title.
For the above scenario Locale will not work as mentioned previous response.
We have considered this requirement “EditFormTitle: Need to provide support for changing the title with non primarykey field value in Locale” as a usability issue and a support incident has been created under your account to track the status of this issue. Please log on to our support website to check for further updates.
https://www.syncfusion.com/account/login?ReturnUrl=/support/directtrac/incidents
We can customize the field name of the title externally using below code example,
|
<ej:Grid ID="Grid1" runat="server" AllowPaging="True" AllowGrouping="true" > <ClientSideEvents ActionComplete="complete"></ClientSideEvents> <script type="text/javascript"> function complete(args) { if (args.requestType == "beginedit") //Setting title for the inline form $('#<%= Grid1.ClientID %>_inlineFormTitle').text("Showing details of " + this.getCurrentViewData()[args.rowIndex].str_company_name); |
Note: Remove the code that suggested in the previous update and use the above code to achieve your requirement.
Regards,
Gowthami V.
We are happy that the provided code working fine at your end.
Thanks & Regards,
Gowthami V.
- 5 Replies
- 2 Participants
-
PR Pratheep
- Oct 4, 2015 03:35 AM UTC
- Oct 8, 2015 04:01 AM UTC