WindowLess parameter must be true

38 posts, 0 answers
  1. NS
    NS avatar
    183 posts
    Member since:
    Jan 2007

    Posted 03 Apr 2009 Link to this post

    Hi,
    I try to implement the HTMLPlaceHolder in my application but I run into the following problems

    • In Blend I get the error: "HTMLPage_NotEnabled"
    • When I run the application, the following text is displayed: "RadHTMLPlaceHolder requires the Windowless parameter of the Silverlight application to be true"

    Can you help me with this one ?

    Thanks,
    Nicolas

  2. Tihomir Petkov
    Admin
    Tihomir Petkov avatar
    576 posts

    Posted 03 Apr 2009 Link to this post

    Hello Nicolas,

    The first issue you encountered is a known design-time problem in Blend which we are currently working on. It should not affect writing code for your application and run-time experience.

    The second message you get means that you should set yout Silverlight plugin to Windowless mode in your host ASP.NEt page:

    <

     

    asp:Silverlight ID="Xaml1" Windowless="true" ...

    Let me know if this solves the problem.

    Sincerely yours,
    Tihomir Petkov
    the Telerik team


    Check out Telerik Trainer , the state of the art learning tool for Telerik products.
  3. Rajesh
    Rajesh avatar
    25 posts
    Member since:
    Dec 2007

    Posted 02 Dec 2009 Link to this post

    What is advantage and disadvantage of setting WindowLess parameter to "true".

    Why by default it is set to false ??

    -Rajesh
  4. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 02 Dec 2009 Link to this post

    Hi Rajesh,

    check this article:
    http://blogs.msdn.com/silverlight_sdk/archive/2008/11/12/limitations-of-windowless-mode-for-silverlight.aspx

    Kind regards,
    Valentin.Stoychev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  5. sachin jagtap
    sachin jagtap avatar
    15 posts
    Member since:
    Jul 2009

    Posted 29 Dec 2009 Link to this post

    I tried setting windowless param to true, but still i am getting the same error message...
  6. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 29 Dec 2009 Link to this post

    Hi sachin jagtap,

    How you are setting it? Are you sure its applied when you run the application? If you set it into the Html page it will be replaced from Visual Studio on build.

    Greetings,
    Valentin.Stoychev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  7. Champcbg
    Champcbg avatar
    3 posts
    Member since:
    Mar 2009

    Posted 30 Jan 2010 Link to this post

    this is the code i have and i am still getting the same error about the windowless parameter.  what could the problem be?

    <object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="800px" height="600px">
              <param name="onError" value="onSilverlightError" />
              <param name="background" value="white" />
              <param name="Windowless" value="True" />
              <param name="minRuntimeVersion" value="3.0.40818.0" />
              <param name="autoUpgrade" value="true" />
  8. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 01 Feb 2010 Link to this post

    Hi c,

    How you are setting it? Are you sure its applied when you run the application? If you set it into the Html page it will be replaced from Visual Studio on build.

    All the best,
    Valentin.Stoychev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  9. Champcbg
    Champcbg avatar
    3 posts
    Member since:
    Mar 2009

    Posted 01 Feb 2010 Link to this post

    yes i am setting these parameters directly on the aspx page.

    <object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="800px" height="600px">
              <param name="onError" value="onSilverlightError" />
              <param name="background" value="white" />
              <param name="Windowless" value="True" />
              <param name="minRuntimeVersion" value="3.0.40818.0" />
              <param name="autoUpgrade" value="true" />
  10. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 01 Feb 2010 Link to this post

    Hi c,

    This is strange and unexpected. Can you open a support ticket and attach the project so we can debug it.

    Thank you in advance for your cooperation.

    Greetings,
    Valentin.Stoychev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  11. Hưng Phạm
    Hưng Phạm avatar
    6 posts
    Member since:
    Feb 2010

    Posted 11 Mar 2010 Link to this post

    dear admin
    I 'm using trial version silverlight control of your company. Please, help me.
    <object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="800px" height="600px">
    <param name="onError" value="onSilverlightError" />
    <param name="background" value="white" />
    <param name="Windowless" value="True" />
    <param name="minRuntimeVersion" value="3.0.40818.0" />
    <param name="autoUpgrade" value="true" />
    I added "<param name="Windowless" value="True" />" but the seem it other error. I can't type VietNam's language on silverlight in my application. When I remove "<param name="Windowless" value="True" />" then it is good.
    how do I?
  12. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 12 Mar 2010 Link to this post

    Hello Hưng Phạm,

    This is a limitation in the SL framework - in windowless mode you can't use some languages.

    Sincerely yours,
    Valentin.Stoychev
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  13. Hưng Phạm
    Hưng Phạm avatar
    6 posts
    Member since:
    Feb 2010

    Posted 12 Mar 2010 Link to this post

    so! can I not use RadHtmlPlaceHolder? because it impact to my application,do you know any way??
  14. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 12 Mar 2010 Link to this post

    Hi Hưng Phạm,

    There is no way until the framework starts to support this scenario.

    All the best,
    Valentin.Stoychev
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  15. Paul
    Paul avatar
    37 posts
    Member since:
    May 2009

    Posted 16 Jun 2010 Link to this post

    I'm looking at the ComponentOne RichTextBox sample.  It does not require windowless=true yet it is displaying HTML (and RTF) just fine.  I have an application that desperately needs to NOT use windowless=true for performance reasons.  I tried the HTMLPlaceHolder but when animations kick in, the control instances render seconds after the rest of the page.

    If you guys are waiting on a framework change, what did C1 do to get it figured out?
  16. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 17 Jun 2010 Link to this post

    Hi Paul,

    If you refer to the produced content from the editor - we have this implemented also. Please check this demo and import/export html or even word (docx) documents:
    http://demos.telerik.com/silverlight/beta/#RichTextBox/MSWord

    Teh difference is that the html is imported and transformed into XAML and then it is rendered in the Silverlight page. This is how the C1 demos is implemented also. This works for the editor scenarios, but for more complex scenario like displaying an external page or interaction with the javasctipt will fail.

    P.S: One a side we just released a very cool new tool for Silverlight! If you want to reduce the size of your Silverlight application, you should check our latest Silverlight tool online - Assembly Minifier (http://blogs.telerik.com/blogs/posts/10-06-10/telerik_assembly_minifier.aspx).

    Greetings,
    Valentin.Stoychev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  17. Paul
    Paul avatar
    37 posts
    Member since:
    May 2009

    Posted 17 Jun 2010 Link to this post

    Hi Valentin,

    I'll try to explain my situation.

    My application allows the user to search for and browse results from a SharePoint where some of the metadata fields are stored as HTML.  My SearchViewResults.xap has a ItemsControl that displays returned records.  Originally, the row template included the Telerik HTMLPlaceholder control to display two "rich multiline text fields" from SharePoint that contain HTML content.  The HTMLPlaceholder was bound to the appropriate properties to pull in the html content.

    However, the QA process uncovered poor performance and layout issues associated with the browser trying to render the HTML on a different layer (when windowless=true).  Scrolling the results or loading a new page of results causes the html to be rendered offset from the Silverlight content for a time then "snap into place" a couple seconds later (sometimes later).  Frequent and continued scrolling turns into a mess of overlaid text on the screen.

    I've seen a large number of blog/forum/comments asking for in-browser HTML rendering without the penalty of windowless mode.  The only solutions I've seen recently are:
    1. write my own control allowing binding to a HTML value and then converting it to XAML for display mode.  OR
    2. use the new SL4 webbrowser control ... but it requires OOB mode to function.  We cannot assume this.
    3. C1RichTextBox

    I would think a key capability in Silverlight would be to display rich text from HTML content without the performance burden of the windowless=true parameter.  Notice I didn't say "edit" the rich text.  If it needs to convert to XAML internally then so be it.  I understand the difficulties of convert 100% of possible HTML markup and content ... but doing the most common would be be a great stopgap until the Silverlight framework provides such functionality.  Isn't that one the tenants of a 3rd-party control provider?

    Yesterday, I replaced the Telerik HTMLPlaceholder with the trial C1 C1RichTextBox and did a Binding on the HTML property:

     

     

     

     

    <C1:C1RichTextBox Grid.Column="2" Grid.Row="10" x:Name="C1Snippet" Html="{Binding Path=Snippet}" Background="Transparent" FontStyle="Italic" ScrollViewer.VerticalScrollBarVisibility="Auto" MaxHeight="52" MinHeight="32" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="0,4,4,4" c1:C1NagScreen.Nag="True" />

     

     

     

     

    One line of XAML change.  Everything compiled and worked like a charm.  After removing the Windowless=true parameter, the whole application was responsive and worked well.

    After your prompt reply, I decided to do the same with the Telerik RadEditor:

     

     

     

     

    <telerikEdit:RadEditor Grid.Column="2" Grid.Row="10" x:Name="rtfSnippet" Html="{Binding Path=Snippet}" Background="Transparent" FontStyle="Italic" ScrollViewer.VerticalScrollBarVisibility="Auto" MaxHeight="52" MinHeight="32" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="0,4,4,4" />

     

     

     

     

    Everything compiled and ... didn't work:

    Line: 56

    Error: Unhandled Error in Silverlight Application

    Code: 4004   

    Category: ParserError      

    Message: The invocation of the constructor on type 'Telerik.Windows.Controls.RadEditor' that matches the specified binding constraints threw an exception.    

    File:     

    Line: 612    

    Position: 48    

     

     

     

    In searching the forum for "binding" on the editor I found: binding the Editor UI

    One of our goals in for the future versions is to provide a very easy approach to adding and binding editor UI and further customization to tune it up for any scenario.

    Let me know if you have more questions.

    Regards,
    Mike
    the Telerik team

    Apparently the RadEditor cannot do binding on the content.  Correct me if I'm wrong.

    Best Regards,
    Paul from Minneapolis

  18. Mike
    Admin
    Mike avatar
    640 posts

    Posted 18 Jun 2010 Link to this post

    Hi Paul,

    RadHtmlEditor (former RadEditor) is a control that was build using the underlying web-browser to edit HTML. The technology used has lots of limitations in Silverlight environment and this is why we introduced a totally different control - RadRichTextBox:

    Here is some more info about this control:

    http://www.telerik.com/products/silverlight/richtextbox.aspx

    http://blogs.telerik.com/blogs/posts/10-04-16/a_new_native_silverlight_4_rich_text_editor_coming_up.aspx

    http://blogs.telerik.com/blogs/posts/10-06-17/what_s_new_in_the_beta_of_radrichtextbox_for_silverlight.aspx

    http://www.telerik.com/help/silverlight/radrichtextbox-overview.html

    RadRichTextBox has pure Silverlight word processing engine, with no dependencies to the web browser component and it is similar to MS RichTextBox, with some nice additions like importing and exporting its content from Html/DocX/Xaml and more in the near future. It is still in beta phase but still you can test it in your scenario. Even though RadRichTextBox still does not offer Html property which you can bind out of the box, still it is possible to implement this scenario using UserControl that contains RadRichTextBox and that exposes Html property.
    Please find attached a sample I just prepared for you demonstrating this approach.

    Let us know if we can help further.

    All the best,
    Mike
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  19. Ian
    Ian avatar
    29 posts
    Member since:
    Jun 2009

    Posted 23 Nov 2010 Link to this post

    This is a super annoying problem - having to run Silverlight in windowless mode is also causing the side effect of mouse wheel no longer working in FireFox and Chrome. Is there a Telerik control that I can use in place of the stock Silverlight  ScrollViewer control that will still work with FireFox in Silverlight Windowless mode? If so I'd really appreciate an example. I'm using SL4 with the 2010.3.1110.1040 version of your kit.
  20. Kiril Stanoev
    Admin
    Kiril Stanoev avatar
    1512 posts

    Posted 23 Nov 2010 Link to this post

    Hello Ian,

    You can set telerik:ScrollViewerExtensions.EnableMouseWheel="True" to the ScrollViewer:

    <UserControl x:Class="SilverlightApplication1.MainPage"
            xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation">
        <Grid x:Name="LayoutRoot" Background="White">
            <ScrollViewer Width="200" Height="200" telerik:ScrollViewerExtensions.EnableMouseWheel="True">
                <Grid Background="Red" Width="800" Height="800" />
            </ScrollViewer>
        </Grid>
    </UserControl>

    Let me know if it works.

    Sincerely yours,
    Kiril Stanoev
    the Telerik team
    Browse the videos here>> to help you get started with RadControls for Silverlight
  21. Ian
    Ian avatar
    29 posts
    Member since:
    Jun 2009

    Posted 24 Nov 2010 Link to this post

    It seems to work intermittently. Initially when using the mousewheel with the new settings I get an error reported in FireFox: "Error calling method on NPObject!" which goes away after I click around a bunch and navigate between pages - then mouse wheel starts working. Unfortunately not much detail is provided beyond that.
  22. Kiril Stanoev
    Admin
    Kiril Stanoev avatar
    1512 posts

    Posted 26 Nov 2010 Link to this post

    Hello Ian,

    Thank you for your feedback. Is it possible for you to isolate the issue in a small sample project and send it to us. This way, if we can debug it, we will be better able to assist you.

    Greetings,
    Kiril Stanoev
    the Telerik team
    Browse the videos here>> to help you get started with RadControls for Silverlight
  23. Ian
    Ian avatar
    29 posts
    Member since:
    Jun 2009

    Posted 30 Nov 2010 Link to this post

    You're solution actually did fix the problem. The missing link was that I needed to have the enableHtmlAccess Silverlight plugin attribute turned on. You might want to update your documentation with this information when forced to run in windowless mode.
  24. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 03 Dec 2010 Link to this post

    Hi Ian,

    Thank you for your feedback. The updated documentation will be uploaded next week.

    Let us know if we can further assist you.

    Greetings,
    Tina Stancheva
    the Telerik team
    Browse the videos here>> to help you get started with RadControls for Silverlight
  25. thdwlgP
    thdwlgP avatar
    34 posts
    Member since:
    Mar 2009

    Posted 06 Jan 2011 Link to this post

    Setting windowless parameter to true is breaking all the textboxe's in firefox, chrome etc with unicode characters. I cant type spanish/russian/korean etc. (It only works in IE)

    I've tried out typing in the search box when i went to, http://demos.telerik.com/silverlight/Default.aspx?windowless=true#HtmlPlaceholder/FirstLook
    Your site is also not working. How can I get the htmlplaceholder working with all the unicode characters working in the textboxes?
    Is this a microsoft issue or telerik's issue?

    Thanks
  26. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 11 Jan 2011 Link to this post

    Hi NS,

    This is a known limitation in the Windowless mode of the Silverlight plug-in. Unfortunately there isn't much that we can do about it until the framework starts to support this scenario.

    However, you can try switching off the Windowless mode whenever you need to allow characters input and switching it back on afterwords, similarly to the idea in our demo.

    Best wishes,
    Tina Stancheva
    the Telerik team
    Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
  27. hightow
    hightow avatar
    17 posts
    Member since:
    Aug 2010

    Posted 30 Jun 2011 Link to this post

    However, you can try switching off the Windowless mode whenever you need to allow characters input and switching it back on afterwords, similarly to the idea in our demo.

    What do you mean by "switching off the windowless mode"? Isn't this setting readonly once the page is rendered?

  28. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 05 Jul 2011 Link to this post

    Hello Hightow,

    I meant that you can load your page in a Windowless mode when using the RadHtmlPlaceholder and reload it in a non-windowless mode otherwise. In this HtmlPlaceholder demo you can find a "Load Windowless Mode" button implementation that can better illustrate my point.

    All the best,
    Tina Stancheva
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  29. Mallikarjun
    Mallikarjun avatar
    12 posts
    Member since:
    Jan 2011

    Posted 01 Nov 2011 Link to this post

    I am unable to build the sample. I am using 2011.2.712.1040 version. I get the below errors


    Error 14 The type or namespace name 'HtmlFormatProvider' could not be found (are you missing a using directive or an assembly reference?)
    Error 15 The type or namespace name 'HtmlFormatProvider' could not be found (are you missing a using directive or an assembly reference?)
    Error 9 The name 'DocumentLayoutModes' does not exist in the current context
    Error 13 The name 'DocumentLayoutModes' does not exist in the current context
    Error 10 'Telerik.Windows.Documents.Model.RadDocument' does not contain a definition for 'StructureChangeCompleted' and no extension method 'StructureChangeCompleted' accepting a first argument of type 'Telerik.Windows.Documents.Model.RadDocument' could be found (are you missing a using directive or an assembly reference?)
    Error 11 'Telerik.Windows.Documents.Model.RadDocument' does not contain a definition for 'StructureChangeCompleted' and no extension method 'StructureChangeCompleted' accepting a first argument of type 'Telerik.Windows.Documents.Model.RadDocument' could be found (are you missing a using directive or an assembly reference?)
    Error 12 'Telerik.Windows.Documents.Model.RadDocument' does not contain a definition for 'StructureChangeCompleted' and no extension method 'StructureChangeCompleted' accepting a first argument of type 'Telerik.Windows.Documents.Model.RadDocument' could be found (are you missing a using directive or an assembly reference?)

  30. Boby
    Admin
    Boby avatar
    603 posts

    Posted 04 Nov 2011 Link to this post

    Hi Mallikarjun,
    The code your are trying to build is outdated, as it was posted when RadRichTextbox was still in beta. If you are trying to bind it to show HTML data, you could use our data providers, namely HtmlDataProvider.

    Greetings,
    Boby
    the Telerik team

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

Back to Top