We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

InlineFormTemplate - grid edit inlineform-titlebar

Thread ID:

Created:

Updated:

Platform:

Replies:

120687 Oct 3,2015 11:35 PM Oct 8,2015 12:01 AM ASP.NET Web Forms 5
loading
Tags: Grid
Pratheep
Asked On October 3, 2015 11:35 PM

HI


It's possible  grid edit(InlineFormTemplate)  inlineform-titlebar title 

Thanks
Pratheep

Gowthami V [Syncfusion]
Replied On October 5, 2015 04:29 AM

Hi Pratheep,

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">
        ej.Grid.locale["en-US"] = {
. . . .
. . . .
//Changing title while editing

EditFormTitle: "Details ",
//Changing title while adding


AddFormTitle: "Add ",
. . . .
. . . .

};
        </script>


Regards,
Gowthami V.

Pratheep
Replied On October 5, 2015 01:43 PM

Hi

Thanks for replay 

<script type="text/javascript">
    ej.Grid.locale["en-US"] = {
        EditFormTitle: "Showing records of " + [{ Field: "str_company_name" }],
        AddFormTitle: "Add new record ",

};
 </script>

here title showing (with code) - Showing records of [object Object]c-00000044

but title need to show (without code)  - Showing records of aetna(Pvt)Ltd.

Thanks
Pratheep




Gowthami V [Syncfusion]
Replied On October 6, 2015 05:47 AM

Hi Pratheep,

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" >
               <EditSettings AllowAdding="true" AllowEditing="true" EditMode="InlineFormTemplate" InlineFormTemplateID="#template"/>
. . . .
. . . .

  <ClientSideEvents ActionComplete="complete"></ClientSideEvents>
        </ej:Grid>

<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);
      }
  </script>



Note: Remove the code that suggested in the previous update and use the above code to achieve your requirement.

Regards,
Gowthami V.

Pratheep
Replied On October 7, 2015 05:24 PM

Hi

Thanks,it's working fine 

Pratheep

Gowthami V [Syncfusion]
Replied On October 8, 2015 12:01 AM

Hi Pratheep,
 
We are happy that the provided code working fine at your end.
 
Thanks & Regards,
Gowthami V.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;