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

commanditemstyle

5 Answers 158 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Albert Shenker
Top achievements
Rank 1
Veteran
Iron
Albert Shenker asked on 02 Dec 2011, 11:12 PM
Is ther a way to remove the border around the commandItem?

<

 

CommandItemStyle BorderStyle="None"/>

 

doesn's seem to work.

5 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 05 Dec 2011, 04:45 AM
Hello,

Try the following CSS:
CSS:
style type="text/css">
 .RadGrid_Web20 .rgCommandTable
{
 border:none !important;
}
</style>

-Shinu.
0
Albert Shenker
Top achievements
Rank 1
Veteran
Iron
answered on 06 Dec 2011, 02:46 PM
I tried the following:

.RadGrid_Office
2010Blue .rgCommandTable
        {
            border:none !important;
        }

This strategy doesn't appear to work with the new skins as this style declaration made no difference.

I tried an old skin (Windows7) and this strategy did work, however it turned the gridlines off of the entire grid... not just the commandbar.
0
Galin
Telerik team
answered on 09 Dec 2011, 11:46 AM
Hello Albert Shenker,

Could you be more explanatory about this issue, because by default the Office2010Blue skin does not have a border around it. For a reference please check it out this demo.

Additionally I have tested the Shinu's suggested CSS rule for Web20 Skin and it works as is expected, also you can use it without !important:
 div.RadGrid_Web20 .rgCommandTable
{
 border:none;
}


Regards,
Galin
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
0
Albert Shenker
Top achievements
Rank 1
Veteran
Iron
answered on 09 Dec 2011, 03:32 PM
I won't be able to look at the code in questions till next Tue/Wed, however, like I mentioned, the style strategy works to some degree for old skins (ie Web20, Windows7, Office2007, Default, etc.) but not the new ones (Office2010Blue, etc.)

Next week I'll put together some screenshots so you can see what I'm refering to.
0
Albert Shenker
Top achievements
Rank 1
Veteran
Iron
answered on 13 Dec 2011, 06:09 PM
I found the problem... My toolbar was adding borders. i removed these and everything works as expected. Thanks!
Tags
Grid
Asked by
Albert Shenker
Top achievements
Rank 1
Veteran
Iron
Answers by
Shinu
Top achievements
Rank 2
Albert Shenker
Top achievements
Rank 1
Veteran
Iron
Galin
Telerik team
Share this question
or