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

RadGrid and <style>

1 Answer 15 Views
Grid
This is a migrated thread and some comments may be shown as answers.
improwise
Top achievements
Rank 1
Iron
Iron
improwise asked on 23 Aug 2010, 12:23 AM
In one page we have a RadGrid but with no <style> in the HTML code, but if we copy that RadGrid to another page, we get a lot of .RadGrid and .RadGrid_Default in the HTML code, why is this? Originally, we hade the <style> in the first page as well, but we had problems with RadGrid icons (the default one, like "+") not showing up, even though they were indeed on the page, and removing the <style> seemed to fix that problem, was that a misstake? Is it so that unless you specify a skin, those are the settings used, labeled as "Default" in the Skin-selector? Please note that we have not done any fancy CSS styling at all, just slapped the RadGrids on our pages and used the default "grayish" theme/skin.


I think I remember reading something about that the included <style> was something form a previous version of the ASP.NET Ajax controls, but this could be a fragment of my imagination. Where is a good place to start reading up on how the Telerik controls work with styles?

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 23 Aug 2010, 09:06 AM
Hello Patrik,

Unless specified otherwise, all RadControls (except RadAjaxLoadingPanel) register and apply a CSS file for their "Default" skin and render the corresponding CSS classes (e.g. RadGrid_Default) in their HTML output.

Please refer to the following documentation resources and let us know if you need more information. In this case, it will be good if you provide some code snippets, so we can better understand what you are trying to do.

http://www.telerik.com/help/aspnet-ajax/controlling-appearance-overview.html
(plus all the style-related articles in the same section - see the left navigation tree)

http://www.telerik.com/help/aspnet-ajax/grd-understanding-html-css.html

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

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


Sincerely yours,
Dimo
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items
Tags
Grid
Asked by
improwise
Top achievements
Rank 1
Iron
Iron
Answers by
Dimo
Telerik team
Share this question
or