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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Problem with hiding records in a grouping grid

Thread ID:

Created:

Updated:

Platform:

Replies:

52550 Nov 30,2006 09:17 AM UTC Nov 30,2006 12:23 PM UTC WinForms 1
loading
Tags: GridControl
Rajesh John
Asked On November 30, 2006 09:17 AM UTC

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

Administrator [Syncfusion]
Replied On 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

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;