Image button in extreme left of either filter row or Header row of grid.

2 posts, 0 answers
  1. ankool
    ankool avatar
    50 posts
    Member since:
    Apr 2007

    Posted 29 Oct 2008 Link to this post

    Hi,

    I want to place an image button on extreme left of either header row or filter row inside the grid, i.e. at top left of grid.

    Please let me know how to achieve this , if its possible ?


    Thanks 

  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 30 Oct 2008 Link to this post

    Hi,

    You can add the ImageButton to the header of the extreme left column in Grid as shown below.

    CS:
     protected void RadGrid1_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e) 
        { 
            if (e.Item is GridHeaderItem) 
            { 
                GridHeaderItem header = (GridHeaderItem)e.Item; 
                ImageButton imgBtn = new ImageButton(); 
                imgBtn.ID = "ImageButton1"
                imgBtn.ImageUrl = "~/Images/Pic3.gif"
                header["columnUniqueName"].Controls.AddAt(0, imgBtn); 
            } 
        } 


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