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

Server side format providers

5 Answers 48 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 1
Chris asked on 04 Mar 2011, 05:21 AM
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?

5 Answers, 1 is accepted

Sort by
0
Calin Calin
Top achievements
Rank 1
answered on 04 Mar 2011, 08:50 AM
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,
0
Calin Calin
Top achievements
Rank 1
answered on 04 Mar 2011, 09:04 AM
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,
0
Iva Toteva
Telerik team
answered on 04 Mar 2011, 01:00 PM
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!
0
Calin Calin
Top achievements
Rank 1
answered on 04 Mar 2011, 08:07 PM
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,
0
Iva Toteva
Telerik team
answered on 10 Mar 2011, 03:56 PM
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!
Tags
RichTextBox
Asked by
Chris
Top achievements
Rank 1
Answers by
Calin Calin
Top achievements
Rank 1
Iva Toteva
Telerik team
Share this question
or