Add ButtonLink in Group Panel

4 posts, 0 answers
  1. Julio
    Julio avatar
    5 posts
    Member since:
    Jul 2011

    Posted 01 Aug 2011 Link to this post

    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>"));
    }

     

  2. Julio
    Julio avatar
    5 posts
    Member since:
    Jul 2011

    Posted 01 Aug 2011 Link to this post

    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.
  3. A
    A avatar
    2 posts
    Member since:
    Oct 2018

    Posted 31 Oct 2018 Link to this post

    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??
  4. Rumen
    Admin
    Rumen avatar
    13945 posts

    Posted 02 Nov 2018 Link to this post

    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.
Back to Top