- Home
- Forum
- ASP.NET MVC
- Toolbar title is not coming as expected
Toolbar title is not coming as expected
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<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
SIGN IN To post a reply.
1 Reply
SS
Seeni Sakthi Kumar Seeni Raj
Syncfusion Team
March 21, 2017 06:52 AM UTC
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.
SIGN IN To post a reply.
- 1 Reply
- 2 Participants
-
DU Dushmantha
- Mar 20, 2017 05:54 PM UTC
- Mar 21, 2017 06:52 AM UTC