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

Move the refresh button next to the add new button in header of radgrid

2 Answers 298 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jon-Jon Kershaw
Top achievements
Rank 2
Jon-Jon Kershaw asked on 05 May 2009, 02:52 PM
that title pretty much sums it up.  I've been trying to find out how to move the refresh button right next to the add new button on the left side of the header on the radgrid.

2 Answers, 1 is accepted

Sort by
1
Accepted
Serrin
Top achievements
Rank 1
answered on 05 May 2009, 08:41 PM
Hey Jon-Jon,

I tried looking into this and hacking the css but had limited success- the one thing I could get to work:

    .RadGrid_Default .rgCommandRow td  
    {  
        border:1px solid;  
        border-color:#999 #f2f2f2;  
        border-top:0;  
        padding:0;  
        width:300px;  
    } 

Kind of worked in IE7 but had no effect in IE8 or FF3.  The issue at hand seems to be that the command item column is generated to cover the full column span (in my case 11 columns), which could explain the resistance to dropping the width.

Another option is to build your own command item column:

http://demos.telerik.com/aspnet-ajax/grid/examples/programming/commanditem/defaultcs.aspx

You can easily pluck the pictures from the Skins directory and look at the skin file you are using to find out how to get the look and feel right, then just make a custom row with everything you need.
0
Jon-Jon Kershaw
Top achievements
Rank 2
answered on 07 May 2009, 07:41 PM
custom command item is the key.  Thanks.
Tags
Grid
Asked by
Jon-Jon Kershaw
Top achievements
Rank 2
Answers by
Serrin
Top achievements
Rank 1
Jon-Jon Kershaw
Top achievements
Rank 2
Share this question
or