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

GridButtonColumn question

3 Answers 141 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Pete Haberstroh
Top achievements
Rank 1
Pete Haberstroh asked on 17 Mar 2009, 02:19 PM
Currently my code is:

<telerik:GridButtonColumn CommandArgument="DETPRO" CommandName="Jpro" ButtonType="ImageButton"

UniqueName="ProButton" ImageUrl="~/img/icon_info.gif" HeaderText="Pro" />

what I would like to do is add the icon_info.gif image to a css file and use it from there, how would I do that, or can it not be done ?
please provide a small example.

thanks

3 Answers, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 17 Mar 2009, 03:30 PM
Hello Pete,

Test the following approach:
<telerik:GridButtonColumn Text="TEST" ButtonCssClass="class1" /> 

<style type="text/css"
    .class1 
    { 
        backgroundnone url('img1.gif'no-repeat
    } 
</style> 

Let us know whether this helps.

Regards,
Daniel
the Telerik team


Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Pete Haberstroh
Top achievements
Rank 1
answered on 17 Mar 2009, 04:00 PM
 I tried that and I get this message
attribute 'ButtonCssClass' is not a valid attribute of element gridButtoncolumn

did I miss something ?
0
Daniel
Telerik team
answered on 20 Mar 2009, 04:10 PM
Hello Pete,

Could you please let me know which version of RadControls is used in your scenario?

Best regards,
Daniel
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
Pete Haberstroh
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Pete Haberstroh
Top achievements
Rank 1
Share this question
or