Prevent show "Add new record" button in Navigation Bar

How to hide "Add new record button" in Navigation Bar and let there only be arrows (ref. GridGroupingControl, of course)

Thanks,
Bogdan Constantin

3 Replies

AA Arulraj A Syncfusion Team August 28, 2018 06:42 AM UTC

Hi Bogdan, 
 
Thanks for using Syncfusion product. 
 
To prevent the add new record button in navigation bar, you could use the RecordNavigationBar.AllowAddNew property and RecordNavigationBar.InitBars method to update the changes in navigation bar. Please refer the following code example and the sample, 
 
Code example 
this.gridGroupingControl1.ShowNavigationBar = true; 
this.gridGroupingControl1.RecordNavigationBar.AllowAddNew = false; 
this.gridGroupingControl1.RecordNavigationBar.InitBars(); 
 
Screenshot 
 
 
 
Arulraj A 



CB CONSTANTIN BOGDAN August 28, 2018 06:44 AM UTC

Excellent!

Thanks you very much.


AA Arulraj A Syncfusion Team August 29, 2018 04:24 AM UTC

Hi Bogdan, 

Thanks for the update. 

We are glad to know that the problem has been resolved at your end. Please let us know if you need any further details on this, we are happy to help you. 
 
Regards,   
Arulraj A   


Loader.
Up arrow icon