This is a migrated thread and some comments may be shown as answers.

Add ButtonLink in Group Panel

3 Answers 15 Views
This is a migrated thread and some comments may be shown as answers.
Julio
Top achievements
Rank 1
Julio asked on 01 Aug 2011, 08:11 PM
Hello,
I've a RadGrid that allow Group and show the Group Panel on the top of the Grid.
The problem is that I need to add a Button Link inside the panel, like I show you in picture attached.

I tried to do this functionality, on PreRender Event of the Grid, but the problem is that the link doesn't appers, and it's shown after first postback.

Can you help me with this functionality?
Thanks.

Julio.

 

 

protected void OnGridPreRender(object sender, System.EventArgs e)

 

{

   RadGrid1.GroupPanel.Controls.Add(

 

new LiteralControl("<div style='float:right;padding-left:5px;'>"));

 

   RadGrid1.GroupPanel.Controls.Add(new LinkButton { ID = "btnClearAllFilter", Text = "Clear all ilters"});

   RadGrid1.GroupPanel.Controls.Add(

 

new LiteralControl("</div>"));
}

 

3 Answers, 1 is accepted

Sort by
0
Julio
Top achievements
Rank 1
answered on 01 Aug 2011, 10:09 PM
I Solved it!
The problem was that I've a CompositeControl, and the PrerenderEvent was executed before DataBind() and it's cause that not render the Link.

Thank.

Julio.
0
A
Top achievements
Rank 1
answered on 31 Oct 2018, 05:52 PM
Am also having the same requirement. I have tried, RadGrid.GroupPanel. Controls. Add(). But it doesn't add the control. How can i fix it??
0
Rumen
Telerik team
answered on 02 Nov 2018, 09:26 AM
Hello,

Please check the following forum thread on the matter: Add Radcombo in Group Panel. You can add the control to the group header in the ItemCreated and ItemDataBound server event handlers of RadGrid.
Check this code library too: Selecting all items in a group with a checkbox in the group header item and examine the provided sample project groupheadercheckbox-webui.zip.

Best regards,
Rumen
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Grid
Asked by
Julio
Top achievements
Rank 1
Answers by
Julio
Top achievements
Rank 1
A
Top achievements
Rank 1
Rumen
Telerik team
Share this question
or