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.
.Datasource(ds => ds.URL(@Url.Action("GetAllUserForGrid", "UserManagement")).Adaptor(AdaptorType.UrlAdaptor))
toolbar.ShowToolbar().CustomToolbarItems(new List<object>
{
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