Manipulate multidelete and inline add button

Tips submitted by ASP.NET Maker users

Manipulate multidelete and inline add button

Postby keeso » Fri Apr 11, 2014 3:48 pm

Following code is an example how to hide the multidelete and inline add buttons. This code should be placed in the server Page_Render event.
The same could be probably be done with advanced user settings, but in our case we needed this.


foreach (var kvp in tbl_Supplier_list.OtherOptions)
{
foreach (var listOption in kvp.Value.Items.Where(x => x.Name.Equals("inlineadd") || x.Name.Equals("multidelete")))
{
listOption.Visible = false;
// ew_Write("| listOption.Name ");
// ew_Write(listOption.Name);
}

}
keeso
 
Posts: 1
Joined: Fri Mar 28, 2014 10:19 pm

Return to User Submited Tips (ASP.NET Maker)