We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Problem with hiding records in a grouping grid

Hi,

In our application we are using syncfusion Grouping Grid control Version 3.3.
For the report, we are displaying group headers only. Those underlying records should not be expanded even though we click on expand button(+).
But unexpectedly after scrolling the grid, it is displaying the records.
Also sometimes the record row overlaps the next group header, hence the group header displays a blank row.
We used the property RecordAsDisplayElements = true for application performance improvement.
But if we set this property as FALSE after scrolling, it works fine.

Is there any alternate method to achieve this instead of setting RecordAsDisplayElements as FALSE?
Please find the attached screenshots.


Regards,
Rajesh

Grouping2.zip

1 Reply

AD Administrator Syncfusion Team November 30, 2006 12:23 PM UTC

Hi Rajesh,

You would have to derive the Record and override the IsChildVisible() method. Below is a code snippet

public class GroupingRecordRow : Record
{
public GroupingRecordRow(Table parentTable) :base (parentTable)
{}
public override bool IsChildVisible(Element el)
{
this.InvalidateCounterBottomUp();
return false;
}
}

Please refer to the attached sample for implementation.
HideGroupRecord.zip

Here is a KB article that customize the child table/group by using a custom engine?
http://www.syncfusion.com/support/kb/grid/Default.aspx?ToDo=view&questId=363

Best Regards,
Haneef

Loader.
Live Chat Icon For mobile
Up arrow icon