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

.TopLevelGroupOptions.ShowCaption

Hello,

when I set .TopLevelGroupOptions.ShowCaption=true, the CaptionText always in the top.
Therefore I've a problem, is it possible to show the CaptionText in bottom?

Best regards,
Frank

3 Replies

AK Adhikesevan Kothandaraman Syncfusion Team September 22, 2015 04:52 AM UTC

Hi Frank,

 

Thanks for contacting Syncfusion Support.

 

There is no default support for showing the Caption at the end of the Grid. But it can be achieved by having the simple workaround. To show the caption text at the end of the grid, need to customize the GroupFooter section (which will be displayed at the end of the table).  Please refer to the following code example,

 

Code Example:

//Display the GroupFooter cell

this.gridGroupingControl1.TopLevelGroupOptions.ShowGroupFooter = true;

 

//Set the caption text to be displayed

String CaptionText = this.gridGroupingControl1.TableDescriptor.Name + ":" + this.gridGroupingControl1.Table.Records.Count + " Items";

this.gridGroupingControl1.Appearance.GroupFooterSectionCell.CellValue = CaptionText;

 

//Disable the editing

this.gridGroupingControl1.Appearance.GroupFooterSectionCell.CellType = GridCellTypeName.Static;

//Set the height of the GroupCaption

this.gridGroupingControl1.TableOptions.GroupFooterSectionHeight = 20;

 

Sample:

http://www.syncfusion.com/downloads/support/forum/120301/ze/CS1915058535

 

Regards,

Adhi



FP Frank Piplak September 22, 2015 09:57 AM UTC

Hello Adhi,

works, thank you.

Best regards,
Frank


AK Adhikesevan Kothandaraman Syncfusion Team September 23, 2015 05:57 AM UTC

Hi Frank,

Thanks for your update.

We are glad to know that the solution works.  Please contact us for any further assistance.

Regards,

Adhi

Loader.
Live Chat Icon For mobile
Up arrow icon