Does anybody know how to hide all grid items in MastertableView and DetailTableVies after clicking on "Add new item" button?
I wont to Display only the insert form and hide all ofter GridView elements:
// How to hide all items in MasterTableView and all DetailsTables?
// this doesn't work:
foreach(GridDataItem item inGrdTickets.Items)
item.Visible = false;
Thank you for your help.
2 Answers, 1 is accepted
answered on 22 Sep 2014, 11:39 AM
For achieving the desired result you can handle the server-side OnPreRender event of the grid and if the MasterTableView's IsItemInserted property is true, traverse through each item and set its Visible property to false: