This question is locked. New answers and comments are not allowed.
I have two grids on one page (within a TabStrip()). Is it possible for each to use a separate stylesheet? In other words, I want one Grid to be blue and one to be green. I feel I know the answer, but I am strongly hoping there is a solution that doesn't involve iFrames.
Thanks!
Daniel
Thanks!
Daniel
4 Answers, 1 is accepted
0
Mylène
Top achievements
Rank 1
answered on 21 Apr 2011, 10:22 AM
Hi,
Any new about this ? I'm in the same case and would like to know if there is any issues.
Thanks
Any new about this ? I'm in the same case and would like to know if there is any issues.
Thanks
0
Hello,
The requested behavior is possible to achieve. You need to place the two Grids in containers with some different CSS classes...
...and modify the MVC extension skins like this, so that the CSS classes above take part in each selector, for example:
telerik.skin-name-1.css
telerik.skin-name-2.css
Actually, you can leave the skin that you are using more unchanged, while adding a custom CSS class only to the one that you need for one of the Grids.
It is up to you to decide whether this approach is easier for you than using iframes.
Best wishes,
Dimo
the Telerik team
The requested behavior is possible to achieve. You need to place the two Grids in containers with some different CSS classes...
<div class="skin1"> <%= Html.Telerik().Grid().Name("Grid1") %></div><div class="skin2"> <%= Html.Telerik().Grid().Name("Grid2") %></div>...and modify the MVC extension skins like this, so that the CSS classes above take part in each selector, for example:
telerik.skin-name-1.css
.skin1 .t-widget{ /* styles remain unchanged */}telerik.skin-name-2.css
.skin2 .t-widget{ /* styles remain unchanged*/}Actually, you can leave the skin that you are using more unchanged, while adding a custom CSS class only to the one that you need for one of the Grids.
It is up to you to decide whether this approach is easier for you than using iframes.
Best wishes,
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
0
Mieke
Top achievements
Rank 1
answered on 03 May 2011, 03:10 PM
Thanks.
It works very well for styling the grid. But how do I style the popup window if I edit a record?
Kind regards,
Mieke
It works very well for styling the grid. But how do I style the popup window if I edit a record?
Kind regards,
Mieke
0
Hi Mieke,
The Grid popup is actually a Window component, so the styling and required CSS classes are the same.
All the best,
Dimo
the Telerik team
The Grid popup is actually a Window component, so the styling and required CSS classes are the same.
All the best,
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
