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

Styling the Filter Button

3 Answers 102 Views
Grid
This is a migrated thread and some comments may be shown as answers.
digitall
Top achievements
Rank 1
digitall asked on 09 Sep 2009, 11:54 PM
I have a large website I support that is using the RadGrid's filtering functionality. Everything works perfectly minus one issue - I have a skin file defined on the site that applies a default style to all buttons. It appears the RadGrid filtering options menu (where you can select Contains, Does Not Contain, etc) is using standard buttons, but unfortunately the style I have is overriding the image icon that is normally there so I just get a blank button. Changing the button style from the skin to manual CSS classes on every page would be a huge undertaking. Is there any way I can access this button and give it a specific skin so it will ignore the CSS class being used everywhere else?

Side question: it looks like the filtering options (Contains, etc) are Enum's but their default ToString() names are utilized so options are like DoesNotContain and such. Why wouldn't these be formatted to have spaces in them (i.e. "Does Not Contain")?

3 Answers, 1 is accepted

Sort by
0
digitall
Top achievements
Rank 1
answered on 10 Sep 2009, 09:55 PM
Anyone?
0
Dimo
Telerik team
answered on 11 Sep 2009, 06:33 AM
Hello Scott,

There are several possible ways to prevent this unwanted behavior:

- set EnableTheming="false" for the RadGrids

- use SkinIDs for the buttons that require the theme's styles, which I see is not acceptable in this case

- define ImagesPath for RadGrid. Setting this property will make the control use image buttons instead of regular buttons, so the theme's styles for buttons will not be applied. The ImagesPath folder must contain all the images that RadGrid uses for icons, with predefined names. They are listed here:

http://www.telerik.com/help/aspnet-ajax/grdskins.html

All the best,
Dimo
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
digitall
Top achievements
Rank 1
answered on 11 Sep 2009, 05:30 PM
Perfect! I used ImagesPath and that was exactly what I was looking for.
Tags
Grid
Asked by
digitall
Top achievements
Rank 1
Answers by
digitall
Top achievements
Rank 1
Dimo
Telerik team
Share this question
or