Server side format providers

6 posts, 0 answers
  1. Chris
    Chris avatar
    12 posts
    Member since:
    Sep 2012

    Posted 03 Mar 2011 Link to this post

    We have been using the format providers within our Silverlight app but we now have a need to use the format provider in server side code. Is there a server side equivalent for the format providers in the Telerik Silverlight controls?
  2. Calin Calin
    Calin Calin avatar
    59 posts
    Member since:
    Mar 2010

    Posted 04 Mar 2011 Link to this post

    Hi Telerik Team,

    We are looking for the same think over here, we tried to use the silvelight dll's in the full .net 4.0 environment with no luck.

    Thanks,
  3. Calin Calin
    Calin Calin avatar
    59 posts
    Member since:
    Mar 2010

    Posted 04 Mar 2011 Link to this post

    HI Chris,

    After searching the site a little I found the providers compiled for .net 4.0 and 3.5 in wpf q1 beta. Testing them now. Will update with results.

    Regards,
  4. Iva Toteva
    Admin
    Iva Toteva avatar
    1319 posts

    Posted 04 Mar 2011 Link to this post

    Hello Chris, Calin,

    You have guessed the right approach - the format providers for WPF can be used on the server-side. This scenario has been successfully implemented before. If you meet any difficulties, do not hesitate to contact us again.
     
    All the best,
    Iva
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
  5. Calin Calin
    Calin Calin avatar
    59 posts
    Member since:
    Mar 2010

    Posted 04 Mar 2011 Link to this post

    Unfortunately there is a problem there,

    The wpf provider don't support all the features the silvelight ones have, for example UIElements with TextBlocks are not parsable.

    Regards,
  6. Iva Toteva
    Admin
    Iva Toteva avatar
    1319 posts

    Posted 10 Mar 2011 Link to this post

    Hi Calin,

    Actually the format provider supports the same functionality. The problem is that you cannot create an instance of a TextBlock on the server. The format provider tries to do that when deserializing the document and fails.
    If you pre-process the string that you are trying to import and remove the InlineUIContainers, you should be able to use the format providers. If that isn't exactly your issue, you can give us a clue by telling us more about what you want to do with the providers on the server.

    Greetings,
    Iva
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Back to Top