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

Insert a control to a StackedHeader dynamically


I am working at a Grid and I can expand my rows like in this example: http://asp.syncfusion.com/demos/ui/gridgrouping/Hierarchy/SelfReferentialGrid/cs/treegrid.aspx.

But I need also Plus-Button in the StackedHeaders. In the Headers, this is not a Problem. But in the StackedHeaders I cant handle this with an ItemTemplate like in the Rows or in the normal Headers.

Is there a way to add Webcontrols to StackedHeaders?

Thank you.

6 Replies

SS Satheeskumar S Syncfusion Team April 15, 2014 09:23 AM UTC

Hi Weber,

Thanks for your interest in Syncfusion Products.

We regret to let you know that your requirement  “To add Controls in Stacked Header” is not feasible as per our current implementation of grid.

Please let us know if you need any further assistance.


Satheeskumar S

WE Weber April 15, 2014 01:32 PM UTC

thank you for your response. My goal is it, to implement a column drill down. With a control in a stacked header i can implement this. Fotunatelly it doesnt work.

Further ideas from me are:
1. Is it possible to catch click events that occured on the stacked headers? And of course I need the row index and column index from the clicked stacked header in the handler. Than I will add a background image that looks like button.

2. Is it possible to add controls to specific cells? I have tried this but the control is only added to the last row. In this scenario I can remove the normal headers and the stacked heders....and I will build my own headers with normal cells and a control in it.

Thank you in advance.

Perhaps you have some more ideas to implement a column drill down!?

WE Weber April 15, 2014 01:40 PM UTC

EDIT: In the upload is a example from a column drill down which i need. It is hierarchical.

Attachment: upload_cbf2bc50.zip

ES Eswari S Syncfusion Team April 22, 2014 10:57 AM UTC

Hi Weber,


Thanks for your update.


Could you please let us know the requirement of adding (+/-)  button in stacked header  ? Whether your requirement is to hide any column/ row in any order or some other specific requirement, so that we can analyze based on that and provide you better solution.


Please let us know if you have any queries.



Eswari S

WE Weber April 23, 2014 04:30 AM UTC

Yes, it is for hiding and expanding the columns. It should be a column drill down. For example: you got year in header. And after you clicking on the + button you have a drill down and now are all months in the header.

SS Satheeskumar S Syncfusion Team April 29, 2014 12:15 PM UTC

Hi Weber,

Thanks for your update.

We suspect that your requirement is related to our OLAP Grid and Silverlight Pivot Grid. So could you please refer the below links to confirm whether this is your requirement.

OLAP Grid -



Silverlight Pivot Grid –



Please let us know if you need any further assistance.



Satheeskumar S

Live Chat Icon For mobile
Up arrow icon