GGC control - URGENT

Hi,

I was using this control to group in case we have elements. Sometimes none of the elements are not grouped under any heading, it still has a bar.. Is there a way to remove the bar altogether. And when the user selects some other option, the bar should come up.

For eg.
Name Age
Abc 21
Cde 21
Def 22
If we group by name there is nothing common and hence the bar should get removed.

If we group by Age the group headers should have 21 and 22 as 2 groups


3 Replies

JJ Jisha Joy Syncfusion Team February 20, 2009 10:01 AM UTC

Hi Anuvrat,

We appreciate your interest in Syncfusion Products.

I am not able to understand your query clearly. If your intension is to hide +/- cell if there is only one record in a group, then please see the follwing KB article.


http://www.syncfusion.com/support/kb/grid/Default.aspx?ToDo=view&questId=251

Please let me know if does not meet your requirement.

Regards,
Jisha



AD Administrator Syncfusion Team February 20, 2009 03:50 PM UTC

Hi,

Thanks for the prompt response. The thing I was trying was if there is only one element is it possible to remove the bar altogether? And if we are grouping by something else it should have that bar.



NA Nisha Arockiya A Syncfusion Team February 23, 2009 01:00 PM UTC

Hi Anuvrat,

Thsnks for the Update.

GroupBar.GroupBarItems propertyReturns the collection of GroupBarItems in the control.

As removing GroupBar invalidated the purpose of grouping it is not possible. Instead you can remove the +/- button for the parent with only one child as explained in the previous response.

Please let me know if this helps.

Regards,
Nisha.





Loader.
Up arrow icon