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

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

1 Answer 35 Views
Grid
This is a migrated thread and some comments may be shown as answers.
ankool
Top achievements
Rank 1
ankool asked on 29 Oct 2008, 06:49 PM
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 

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 30 Oct 2008, 05:02 AM
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.
Tags
Grid
Asked by
ankool
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or