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

RadGrid FilterMenu picking styles from WebResource.axd

13 Answers 115 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Zubair
Top achievements
Rank 1
Zubair asked on 11 Nov 2008, 06:03 AM
hi,

Though I've set EnableEmbeddedSkins="false" on the RadGrid which should theoretically stop all styles coming from WebResource.axd but in my case I still see the Filter Menu referencing the embedded styles. I tried the following but they dont work either. Please tell me what am I missing here. Thanks

<FilterMenu EnableEmbeddedSkins="false" />

and 

<FilterItemStyle CssClass="BLA" />

13 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 11 Nov 2008, 11:30 AM
Hello Zubair,

If you have a <FilterMenu /> tag in your RadGrid declaration, then the filtering menu will be instantiated on Page Init. If you are setting EnableEmbeddedSkins="false" to RadGrid at a later time, the observed issue can occur.

However, if you set explicitly EnableEmbeddedSkins="false" to the filtering menu, it should not register a skin CSS file.

Another reason for the problem is the following: Even if the filtering menu has EnableEmbeddedSkins set to "false", it can have its Skin property set. If you have another RadMenu on the same page with the same skin, then the filtering menu will pick up the styles from the registered CSS file.

Let us know if you need more information.


Sincerely yours,
Dimo
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Zubair
Top achievements
Rank 1
answered on 11 Nov 2008, 11:35 AM
I added the <FilterMenu/> only after I had this problem to set the EnableEmbeddedSkins to false.

"However, if you set explicitly EnableEmbeddedSkins="false" to the filtering menu, it should not register a skin CSS file." that's what I thought.

I'm using the RadGrid in a Sitefinity module and on my page this is the only grid I have. Hope I've explained.
0
Dimo
Telerik team
answered on 11 Nov 2008, 11:42 AM
Hello Zubair,

Are you able to reproduce the problem on a standalone web page (outside Sitefinity) ?

Greetings,
Dimo
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Zubair
Top achievements
Rank 1
answered on 11 Nov 2008, 11:44 AM
Didn't try yet. But just to note, it was properly styled with the classic RadGrid and it's this RadGrid Ajax version that is creating this issue. Any other hint can help.
0
Dimo
Telerik team
answered on 11 Nov 2008, 12:07 PM
Hi Zubair,

The classic RadGrid does not use RadMenu as a filtering menu, so the implementation is completely different there.

Let us know when you test on a standalone page.

Kind regards,
Dimo
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Zubair
Top achievements
Rank 1
answered on 11 Nov 2008, 12:08 PM
I'll do it in a moment.
0
Zubair
Top achievements
Rank 1
answered on 11 Nov 2008, 12:29 PM
I cannot reproduce the same styles for the RadGrid outside Sitefinity for some reasons the grid is not picking up the correct styles even after I add <links> to them in the <head>.

I see some references to the RadMenu styles, guess you were correct that FilterMenu is picking up the styles referenced for the SF Menu. So what's the solution, assuming everything will be fine outside SF ?
0
Zubair
Top achievements
Rank 1
answered on 11 Nov 2008, 12:32 PM
Oh thought this might help, I'm also using Custom Dropdown filters on few columns but the styles for the 'Filter options' are messed up on all columns regardless.
0
Dimo
Telerik team
answered on 14 Nov 2008, 08:03 AM
Hello Zubair,

In order to prevent the FilterMenu from picking CSS styles from other menus on the page, you need to set the FilterMenu's skin property to a different name, than the other menus on the page.

<FilterMenu EnableEmbeddedSkins="False" Skin="MySkinName" />

I am not sure whether this is the case in your scenario, but generally, it is not recommended to use embedded and custom skins with the same name on the same page.

After you change the filter menu's skin setting, you will need to modify your CSS styles.

Let us know if you need more information.


Greetings,
Dimo
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Zubair
Top achievements
Rank 1
answered on 16 Nov 2008, 04:58 AM
hi Dimo,

No it didn't work, in Firebug I still see it referencing webresource.axd file for styles. Please help. Thanks
0
Zubair
Top achievements
Rank 1
answered on 17 Nov 2008, 07:49 AM
hi there, any update to this issue please.
0
Dimo
Telerik team
answered on 17 Nov 2008, 09:43 AM
Hi Zubair,

Being a RadMenu control, the RadGrid's filtering menu needs its base stylesheet for some important non-skin-related stuff. From this point of view, the filtering menu should use some styles from embedded resources, unless you set EnableEmbeddedBaseStylesheet="false". However, there is no reason to do that in the general case.

If you still need advice related to the filtering menu, please open a new support ticket and send us a runnable example of your problem, so that we can see what is not correct.


All the best,
Dimo
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Zubair
Top achievements
Rank 1
answered on 17 Nov 2008, 09:49 AM
Ok then I'll try skinning it and get back.
Tags
Grid
Asked by
Zubair
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Zubair
Top achievements
Rank 1
Share this question
or