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

Something like HTMLEncode

4 Answers 71 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Ludovic Gerbault
Top achievements
Rank 1
Ludovic Gerbault asked on 27 Jul 2009, 10:37 AM
Hi

I'm having some troubles getting the display I want in RadGridViewCell.

I'm using the itemsource property to fill my gridview, and it generates its columns automatically.

The thing is, several of the fields that are displayed have been saved into the database in html code.

My question is, does the radgridview component support any HTML to Plain converter, or is there any way around, maybe with the GridViewCellTemplate ?

Regards

Ludovic

4 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 27 Jul 2009, 10:48 AM
Hello Ludovic,

You can use RadHtmlPlaceHolder or even RadEditor to display this. You can place desired control(s) in CellTemplate property for desired column similar to this example:
http://demos.telerik.com/silverlight/#GridView/CellEditTemplate

All the best,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Ludovic Gerbault
Top achievements
Rank 1
answered on 28 Jul 2009, 09:14 AM
Thanks a lot.

I tried using a dataTemplate for the CellTemplate property and setting dynamically the Htmlsource property, and even if i'm not quite there yet, It's looking good.

The thing that bothers me though is that for the radhtmlplaceholder to work, I need to set the windowless property on true, and I can't do that (it screws the display of my page)

Is there any way around that ?
0
Vlad
Telerik team
answered on 29 Jul 2009, 01:15 PM
Hi Ludovic,

I'm not sure how windowless=true will destroy your page however without this you cannot have basic things like right click context menu. Maybe we can help you if you provide a bit more info about your scenario.

Other possible however very limited solution can be this one:
http://blogs.msdn.com/delay/archive/2008/11/11/my-take-on-simple-html-display-in-silverlight-htmltextblock-sample-updated-for-silverlight-2-rtw.aspx

Greetings,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Ludovic Gerbault
Top achievements
Rank 1
answered on 29 Jul 2009, 04:33 PM
Thanks for the response.

Actually, the screwed-up display was caused by a raw change in the aspx page from one of my developer, there was some div that wasn'tsupposed to be there at all.

Anyway, everything works as I was expecting, so many thanks to the Telerik team for your support
Tags
GridView
Asked by
Ludovic Gerbault
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Ludovic Gerbault
Top achievements
Rank 1
Share this question
or