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

3 posts, 1 answers
  1. Jon-Jon Kershaw
    Jon-Jon Kershaw avatar
    49 posts
    Member since:
    Dec 2008

    Posted 05 May 2009 Link to this post

    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. Answer
    Serrin
    Serrin avatar
    286 posts
    Member since:
    Sep 2008

    Posted 05 May 2009 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Jon-Jon Kershaw
    Jon-Jon Kershaw avatar
    49 posts
    Member since:
    Dec 2008

    Posted 07 May 2009 Link to this post

    custom command item is the key.  Thanks.
Back to Top