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.

Toolbar title is not coming as expected

Thread ID:

Created:

Updated:

Platform:

Replies:

129469 Mar 20,2017 01:54 PM Mar 21,2017 02:52 AM ASP.NET MVC 1
loading
Tags: Grid
Dushmantha
Asked On March 20, 2017 01:55 PM

Hi Team,

Below is my Grid code and in which when  I move the mouse pointer on to the toolbar action button, then title coming as  "TemplateID" value, not "Text" value.

 @(Html.EJ().Grid("UserGrid")
                          .Datasource(ds => ds.URL(@Url.Action("GetAllUserForGrid", "UserManagement")).Adaptor(AdaptorType.UrlAdaptor))
                          .AllowPaging()
                          .ToolbarSettings(toolbar =>
                          {                              
                               toolbar.ShowToolbar().CustomToolbarItems(new List
                                  {
                                      new CustomToolbarItem {TemplateID = "#AddTemplate", Text = "Add"},
                                      new CustomToolbarItem {TemplateID = "#EditTemplate", Text = "Update"},
                                      new CustomToolbarItem {TemplateID = "#DeleteTemplate", Text = "Delete"},
                                      new CustomToolbarItem {TemplateID = "#refreshTemplate", Text = "Refresh"},
                                      new CustomToolbarItem {TemplateID = "#pwdChangedTemplate"}
                                  });                              
                          })
                          .EditSettings(edit => { edit.AllowEditOnDblClick(false); })
                          .ClientSideEvents(evt =>
                          {
                              evt.ActionFailure("toolbarClickEvent.failureMessage");
                              evt.ToolbarClick("toolbarClickEvent.onClickToolbar");
                              evt.ActionBegin("gridActionEvent.onBegin");
                              evt.ActionComplete("gridActionEvent.onComplete");
                          })
                          .Columns(col =>
                          {
                              col.Field(p => p.Id).Visible(false).IsPrimaryKey(true).Add();
                              //col.Field(p => p.ProfileUrl).HeaderText("User Image").TextAlign(TextAlign.Left).AllowSorting(true).Template("#profile_coloumnTemplate").Add();
                              col.Field(p => p.FirstName).HeaderText("First Name").TextAlign(TextAlign.Left).Add();
                              col.Field(p => p.LastName).HeaderText("Last Name").TextAlign(TextAlign.Left).Add();
                              col.Field(p => p.Email).HeaderText("Email").TextAlign(TextAlign.Left).Add();
                              col.Field(p => p.AddressLine01).HeaderText("Address Line 01").TextAlign(TextAlign.Left).AllowSorting(false).Add();
                              col.Field(p => p.AddressLine02).HeaderText("Address Line 02").TextAlign(TextAlign.Left).AllowSorting(false).Add();
                              col.Field(p => p.City).HeaderText("City").TextAlign(TextAlign.Left).AllowSorting(false).Add();
                              col.Field(p => p.MobileNumber).HeaderText("Mobile Number").TextAlign(TextAlign.Left).Add();
                              col.Field(p => p.HomePhoneNumber).HeaderText("Home Phone Number").TextAlign(TextAlign.Left).AllowSorting().Add();
                             // col.Field(p => p.BirthOfDateDisplayName).HeaderText("Birth of Date").TextAlign(TextAlign.Left).Format("{0:MM/dd/yyyy}").AllowSorting(false).Add();
                              col.Field(p => p.IsActive).HeaderText("Is Active").Template("#IsActiveTemplate").TextAlign(TextAlign.Left).Add();
                          }))

I am using 15.0 Version.

Thanks
Dushmantha

Seeni Sakthi Kumar Seeni Raj [Syncfusion]
Replied On March 21, 2017 02:52 AM

Hi Dushmantha,  
 
Thanks for contacting Syncfusion Support.  
 
We have already discussed about this problem in the following KB. Refer this KB and overcome the reported problems.  
 
 
Regards,  
Seeni Sakthi Kumar S. 


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.

;