WindowLess parameter must be true

38 posts, 0 answers
  1. Mallikarjun
    Mallikarjun avatar
    12 posts
    Member since:
    Jan 2011

    Posted 04 Nov 2011 Link to this post

    Thanks. Let me try.
    In mean time any sample code to achieve this will be greatly appreciated

    Thanks,
    Mallikarjun. 
  2. Mallikarjun
    Mallikarjun avatar
    12 posts
    Member since:
    Jan 2011

    Posted 04 Nov 2011 Link to this post

    Thanks i got it working with the dataproviders. 
    I also have a requirement where i need to dynamically create the control instances. I assume there should not be issues with programmatic access to the data providers.

    Are there any benifits of "RadHTMLPlaceHolder" over the rad rich textbox with data providers. Can we think radhtmlplaceholder as Obsolete and  stop using in our code?

    Thanks,
    Mallikarjun
  3. DevCraft banner
  4. Iva Toteva
    Admin
    Iva Toteva avatar
    1319 posts

    Posted 08 Nov 2011 Link to this post

    Hi Mallikarjun,

    It's good to hear that you have managed to get data binding with RadRichTextBox working. There should not be any issues with the data providers in code-behind. One thing you should have in mind is that if their DataContext is changed and they are not added to the visual tree, they will not be notified. Therefore, if you will be changing their DataContext, you must add the providers to the visual tree. This should not present a concern, as they have no visual representation and will not have an effect on the layout or the performance.

    As for RadHtmlPlaceHolder, you are right, it has been obsoleted and RadRichTextBox is the control that has the closest features. You should have in mind, though, that HtmlFormatProvider (which HtmlDataProvider uses internally) cannot maintain the HTML input on import/export, i.e. once you import an HTML string/stream, it is no longer kept in memory. A RadDocument is created out of it, following the structure specified in the HTML file as close as possible. On export, an entirely different HTML is generated, which can have little in common with the initial input. Hopefully, you will find the way RadRichTextBox works suitable for your project.

    All the best,
    Iva Toteva
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  5. Mallikarjun
    Mallikarjun avatar
    12 posts
    Member since:
    Jan 2011

    Posted 09 Nov 2011 Link to this post

    In my scenarios, data to the RichTextBox is read only & it will never change for that session and also i don't require Impor/Export functionality of that data. 
    I will go ahead & implement this in rest of my modules.
  6. Pete
    Pete avatar
    67 posts
    Member since:
    Sep 2012

    Posted 29 Aug 2012 Link to this post

    I have this problem using the HTMLPlaceHolder with windowless set to true also.
    Has this still not been fixed? Is the HTMLPlaceHolder obsolete now?
  7. Iva Toteva
    Admin
    Iva Toteva avatar
    1319 posts

    Posted 31 Aug 2012 Link to this post

    Hello Pete,

    RadHtmlPalceHolder is still obsolete, as explained in my previous reply. The limitation with the WindowLess parameter cannot be overcome.

    The control that is closest to RadHtmlPlaceHolder in terms of functionality is RadRichTextBox -  a rich text box, which can import/export its content from/to HTML and a number of other formats. However, it is not a browser, so you should check if it covers the requirements of your project before using it.

    You can look through the documentation of the rich text box here and if you have any questions about the control, please post them in the forum of the control.


    Regards,
    Iva Toteva
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  8. Pete
    Pete avatar
    67 posts
    Member since:
    Sep 2012

    Posted 31 Aug 2012 Link to this post

    Hi
    Thanks for the response - I didn't read the part early on this post about the control being obsolete. We have got the RadHTMLPlaceHolder control working now, but could you tell us why it has been obsoleted? There doesn't seem to be another control that can act as a browser (which is what we need).

    Thanks
  9. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 05 Sep 2012 Link to this post

    Hello Pete,

    It seems there's been a misunderstanding. At this point the HtmlPlaceholder isn't obsolete. You can definitely use it in your application, but you need to keep in mind its limitations - the windowless mode and its positioning above the Silverlight plug-in. These are limitations, which at this point we can't overcome, so you need to carefully plan if the HtmlPlaceholder is the best choice for your scenario. Also, in Silverlight 5 you can use the WebBrowser control in applications running with elevated permissions to display external pages in the browser.

    All the best,
    Tina Stancheva
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top
DevCraft banner