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

Filter textbox and default skin

1 Answer 83 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Pako
Top achievements
Rank 1
Pako asked on 09 Mar 2011, 02:38 PM

Hi,

I wonder, how can I achieve one thing: I have defined skin (in asp.net meaning of that word) in default.skin, to set appropriate skin to all telerik textboxes:

<telerik:RadTextBox runat="server" Skin="Vista" EnableEmbeddedSkins="true" />
This works fine for every textbox - appropriate skin is set to control. The only problem I'm having is, that filter textbox on RadGrid doesn't seem to respect this element. It's still rendered as it's defined in skin (for RadGrid I'm using custom skin).

Now, I would like filter textbox to use settings from default.skin file.

I've had no problem with RadComboBox used as filter control in my custom column class, skin was automatically applied. Why same thing isn't happening to textbox? And how could I achieve my goal?

Thanks in advance

Pako

1 Answer, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 11 Mar 2011, 04:10 PM
Hello Pako,

The filtering menu of RadGrid for ASP.NET AJAX is a RadMenu. You have to either supply a custom skin for the RadMenu as well (with the same name as the RadGrid skin), or you can set an embedded skin for the filtering menu in code-behind like this:

RadGrid1.FilterMenu.EnableEmbeddedSkins = true;
RadGrid1.FilterMenu.Skin = "...." ;

Additionally, you can review this online example:
http://demos.telerik.com/aspnet-ajax/grid/examples/styles/customskin/defaultcs.aspx

Let us know if you need more information.

All the best,
Pavlina
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
Grid
Asked by
Pako
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Share this question
or