I am trying to show/hide toolbar items based on value like this :
<EjsToolbar>
<ToolbarItems>
@if (myMode == MyEditMode.None)
{
<ToolbarItem OnClick="AddClick" Text="Add New" PrefixIcon="em-icons e-copy" TooltipText="Paste"></ToolbarItem>
@if (CurrentEntity != null)
{
<ToolbarItem OnClick="EditClick" Text="Edit" PrefixIcon="em-icons e-edit"></ToolbarItem>
<ToolbarItem Type="@ItemType.Separator"></ToolbarItem>
<ToolbarItem OnClick="EditClick" Text="Delete" PrefixIcon="em-icons e-edit"></ToolbarItem>
}
}
</ToolbarItems>
</EjsToolbar>
but unfortunatly it is not working .
Do you have suggestions acheiving this ?