Toolbar is missing when I add grouping

Hi,

When I add the allowgrouping the toolbar is missing, I am using this setting: ActionBegin("ActionBegin").EditSettings(e => { e.AllowAdding(true).AllowEditing(true).AllowDeleting(false).Mode(Syncfusion.EJ2.Grids.EditMode.Normal); }).AllowPaging().CommandClick("commandClick").AllowGrouping().GroupSettings(group => group.Columns(new string[] { "Status" })).PageSettings(page => page.PageCount(2)).Toolbar(new List<string>() { "Add", "Edit", "Delete", "Update", "Cancel" }).Toolbar(new List<string>() { "Search" }).Render()


Thanks,

3 Replies

MS Manivel Sellamuthu Syncfusion Team May 27, 2020 12:30 PM UTC

Hi Daniel, 

Greetings from Syncfusion support. 

From your shared query we could see, that you have defined toolbar items twice is the cause of the issue. So the toolbar items are overridden and toolbar search option in the last definition only rendered in the Grid. Please refer the below code example and screenshot for more information. 

Screenshot:  

 

ActionBegin("ActionBegin").EditSettings(e => { e.AllowAdding(true).AllowEditing(true).AllowDeleting(false).Mode(Syncfusion.EJ2.Grids.EditMode.Normal); }).AllowPaging().CommandClick("commandClick").AllowGrouping().GroupSettings(group => group.Columns(new string[] { "Status" })).PageSettings(page => page.PageCount(2)).Toolbar(new List<string> 
    () { "Add", "Edit", "Delete", "Update", "Cancel", "Search" }).Render() 


Please let us know, if you need further assistance. 

Regards, 
Manivel 



DA Daniel May 28, 2020 12:37 AM UTC

Hi,

Thanks, now work fine.


MS Manivel Sellamuthu Syncfusion Team May 28, 2020 03:50 AM UTC

Hi Daniel, 

Thanks for your update. 

We are happy to hear that your problem has been resolved. 

Please get back to us if you need further assistance. 

Regards, 
Manivel 


Loader.
Up arrow icon