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

[Solved] CommandItemTemplate button style

2 Answers 148 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Veshala
Top achievements
Rank 1
Veshala asked on 26 Oct 2009, 08:39 PM
Hi,

I have CommandItemTemplate button in Radgrid as follows.

 <CommandItemTemplate>
                <asp:Button runat="server" ID="btnSave" Text="Save" CommandName="Save"  />
</CommandItemTemplate>

And i have a Radgrid.css with the following code:
.GridCommandRow_TelerikDataGridB
{
    FONT-SIZE: 12px;
    COLOR: #fff;
    FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif;
    BACKGROUND-COLOR: #3aa6b0;
    FLOAT: right;   
    PADDING-RIGHT: 11px;
    PADDING-BOTTOM: 0px; 
}

For some reason my stylesheet setting are not applied to 'Save' button, it is just showing as as regular button style.

I am using 2009 Q2 controls.

Any suggestions ?

Thanks

2 Answers, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 26 Oct 2009, 10:40 PM
Hello Veshala,

Try the following:
<style type="text/css">
    .rgCommandCell input
    {
        font-size: 12px;
        color: #fff;
        font-family: Verdana, Arial, Helvetica, sans-serif;
        background-color: #3aa6b0;
        float: right;
        padding-right: 11px;
        padding-bottom: 0px;
    }
</style>

Let me know whether this approach is suitable for you.

Regards,
Daniel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Veshala
Top achievements
Rank 1
answered on 27 Oct 2009, 01:56 PM
It's worked.

Thanks
Tags
Grid
Asked by
Veshala
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Veshala
Top achievements
Rank 1
Share this question
or