How can I enable/disable toolbar specific items in a GridView within a Tab.
The ChildGridViewContext only provides me with the ability to make the complete toolstrip visible or invisible. ChildGridViewContext.GridViewToolStripVisible
I am doing it in the Summary View's page controller using code like the following. The idea is based on current user's properties enable/disable the toolstrip items:
protected override void BuildCore()
{
base.BuildCore();
ApplyAuthorizationToPageToolBar();
}
private void ApplyAuthorizationToPageToolBar()
{
///Enable/disable toolbar items according to authorization.
if (User.CurrentUserCanCreate(HRIS.Model.UI.GetById(OrganizationMainUIIdValue)))
{PageToolBar.AddNewItemEnabled =
true;}
else{PageToolBar.AddNewItemEnabled = false;}
}
I want to do something similar for the grid in the tab but don't know how.