Toggle Button in RAD Grid

2 posts, 0 answers
  1. ajmal
    ajmal avatar
    57 posts
    Member since:
    Oct 2006

    Posted 15 Jul 2010 Link to this post

    Hello,

    I need to put a toggle button in either GRID header OR footer area, how this can acheive. Is there any way to put a button in grid footer area.
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 15 Jul 2010 Link to this post

    Hello,

    It is possible to access the GridFooterItem in code behind and add the control to the cell. Create the control in ItemCreated event and attach to footer item.

    C#:
    protected void RadGrid1_ItemCreated(object sender, Telerik.Web.UI.GridItemEventArgs e)
    {
        if (e.Item is GridFooterItem)
        {
            GridFooterItem footerItem = (GridFooterItem)e.Item;
            Label lbl = new Label();
            lbl.Text = "Hai";
            footerItem["CustomerID"].Controls.Add(lbl);
        }
    }


    -Shinu.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top