Hi,
I have a RagGrid with many child grids at the same level and im trying to hide the child grid if it is empty but im running into problems identifying the empty grids
I have tried looking at prerender and detailtable databind then looking at the items in the grid where the item count is 0 then hiding based on this but the grids always have an item count of 0 they always hide the grid even when they have data in them
e.g.
GridItem[] nestedViewItems = tableView.GetItems(GridItemType.NestedView);
foreach (GridNestedViewItem nestedViewItem in nestedViewItems)
{
foreach (GridTableView nestedView in nestedViewItem.NestedTableViews)
{
if (nestedView.Items.Count == 0)
{
if (nestedView.Items.Count == 0)
{
nestedView.Visible = false;
}
Any Ideas?
Thanks in advance
I have a RagGrid with many child grids at the same level and im trying to hide the child grid if it is empty but im running into problems identifying the empty grids
I have tried looking at prerender and detailtable databind then looking at the items in the grid where the item count is 0 then hiding based on this but the grids always have an item count of 0 they always hide the grid even when they have data in them
e.g.
GridItem[] nestedViewItems = tableView.GetItems(GridItemType.NestedView);
foreach (GridNestedViewItem nestedViewItem in nestedViewItems)
{
foreach (GridTableView nestedView in nestedViewItem.NestedTableViews)
{
if (nestedView.Items.Count == 0)
{
if (nestedView.Items.Count == 0)
{
nestedView.Visible = false;
}
Any Ideas?
Thanks in advance