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

Set custom icon

5 Answers 101 Views
SearchBox
This is a migrated thread and some comments may be shown as answers.
Freddy
Top achievements
Rank 1
Freddy asked on 30 Apr 2013, 01:25 PM
Hi,

Is it possible to set a custom search icon for the RadSearchbox?

Thanks,
Freddy

5 Answers, 1 is accepted

Sort by
0
Bozhidar
Telerik team
answered on 01 May 2013, 03:07 PM
Hello Freddy,

You can change the default image with CSS. Here's how you can do that:
.rsbButtonSearch .rsbIcon{
    background-image:url(image.png) !important;
    background-position:0 !important;
}

 

All the best,
Bozhidar
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
Jean-Marc
Top achievements
Rank 1
answered on 08 Feb 2016, 10:30 AM

Hello,

 

If there are 2 different RadSearchBoxes on the same page, is it possible to customize only one of the search button icons ?

if yes, how?

Thanks in advance,

All the best,

Jm

0
Ivan Danchev
Telerik team
answered on 10 Feb 2016, 02:04 PM
Hello Freddy,

If you have several SearchBox controls on your page and want to change the button's background image of one of them you could set a CssClass to that SeachBox and use the class in the CSS rule's selector:
<telerik:RadSearchBox runat="server" ID="RadSearchBox1" CssClass="CustomizedSearchBox">

.CustomizedSearchBox .rsbButtonSearch .rsbIcon {
    background-image: url(image.png) !important;
    background-position: 0 !important;
}

Regards,
Ivan Danchev
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Jean-Marc
Top achievements
Rank 1
answered on 10 Feb 2016, 02:25 PM

Thank you Ivan,

it works perfectly

All the best

Jm 

 

0
Ivan Danchev
Telerik team
answered on 12 Feb 2016, 03:09 PM
Hello Jim,

We are glad the suggested styles helped you achieve the desired SearchBox appearance.

Regards,
Ivan Danchev
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
SearchBox
Asked by
Freddy
Top achievements
Rank 1
Answers by
Bozhidar
Telerik team
Jean-Marc
Top achievements
Rank 1
Ivan Danchev
Telerik team
Share this question
or