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

[Solved] HTML EXPORT WITHOUT CSS

3 Answers 138 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Alessandro
Top achievements
Rank 1
Alessandro asked on 08 Mar 2013, 10:13 AM
Hello,

We are doing an html export of a page that has a Radgrid placed inside. We have some problem with telerik skin and with scripts. 
The grid html export  is made by the overriden render function of the page, we do that in this way because we need other parts of the page on a html and pdf export.

How can I export with embeded styles?


thanks in advance,
Emanuele
MgfProject s.r.l.

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 08 Mar 2013, 10:27 AM
Hi,

As far as I know, RadGrid does not export any external styles. That means that your skins will not appear in the generated file. Still, the inline styles are preserved and should be used instead. One suggestion is that you can try the approach as explained in the code library.

Thanks,
Shinu
0
Alessandro
Top achievements
Rank 1
answered on 08 Mar 2013, 11:31 AM
Hello Shinu,


I took a look to your link but I don't think that is what I need. I cannot use the grid's export because I need all the page html.
in the html export I want the "Vista" telerik skin, we're not using anyone custom skin or css on the grid. I'm looking for a trick that allow me to have my html file of the page with the grid's css referenced with an url that point to a web server.

Is there any way to do this ?
I tried to write the css references in the html file that I saved from the Render Asp.net Method but without success.
the css reference that I wrote to are :

  <link type="text/css" rel="stylesheet" ... 

http://...Skins/Vista
http://...Skins/Grid.css\Grid.Vista.css 
http://...Skins/Vista\Ajax.Vista.css 


Emanuele

0
Alessandro
Top achievements
Rank 1
answered on 11 Mar 2013, 12:48 PM
Hello Shinu,


don't worry I resolved the problem. I tried many solution and finally I put in the App_Themes styles and images for the grid,form decorator and file explorer and referenced them in the page, using the framework of the nodes implemented by css.


Emanuele
Tags
Grid
Asked by
Alessandro
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Alessandro
Top achievements
Rank 1
Share this question
or