Something like HTMLEncode

5 posts, 0 answers
  1. Ludovic Gerbault
    Ludovic Gerbault avatar
    226 posts
    Member since:
    Apr 2009

    Posted 27 Jul 2009 Link to this post

    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
  2. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 27 Jul 2009 Link to this post

    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.
  3. DevCraft banner
  4. Ludovic Gerbault
    Ludovic Gerbault avatar
    226 posts
    Member since:
    Apr 2009

    Posted 28 Jul 2009 Link to this post

    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 ?
  5. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 29 Jul 2009 Link to this post

    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.
  6. Ludovic Gerbault
    Ludovic Gerbault avatar
    226 posts
    Member since:
    Apr 2009

    Posted 29 Jul 2009 Link to this post

    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
Back to Top
DevCraft banner