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

creating RadPane with WebBrowsers

5 Answers 70 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Dave
Top achievements
Rank 1
Dave asked on 18 Jun 2011, 01:20 AM
Hi,
I've attempting to add Radpanes in a OOB project with a webbrowser control and having difficulty understanding why this is failing.
The event fires correctly for a single instance, but fails on subsequent Adds..  Fails by way of the application reverting to a blank screen with any activity. Just guessing but this is not by design.. :)  I have tried another control [button] which works fine..


Any suggestions are appreciated.

 

 

private void createPanesWithWebBrowsers_Click(object sender, RoutedEventArgs e)
 
 {
 foreach (Telerik.Windows.Controls.RadGridView listBoxItem in myLayout.Children)
 {
 foreach (Filing item in listBoxItem.Items)
 {
  string title = item.title;
  string Link = item.httplink ;
  var pane = new Telerik.Windows.Controls.RadPane { Header = title };
  this.FloatingContainerGroup.Items.Add(pane);

  WebBrowser browser = new WebBrowser() { Name = title };
  browser.Navigate(new Uri(Link, UriKind.Absolute));
 
  pane.Content = browser;
 
  pane.MakeFloatingDockable();
 }
 }
 }

5 Answers, 1 is accepted

Sort by
0
Dave
Top achievements
Rank 1
answered on 18 Jun 2011, 03:01 AM
Noticed that  the pane.MakeFloatingDockable();  was too low in the sequence...
the radpane(s) are appearing with the webbrowser content.  Now, whenever we unpin the newly created pane the application fails and the app is Blank once again.

adding pane.IsPinned = false;
produces an error message as seen below..

Value does not fall within the expected range.

 

  at MS.Internal.XcpImports.CheckHResult(UInt32 hr)
   at MS.Internal.XcpImports.SetValue(IManagedPeerBase obj, DependencyProperty property, DependencyObject doh)
   at MS.Internal.XcpImports.SetValue(IManagedPeerBase doh, DependencyProperty property, Object obj)
   at System.Windows.DependencyObject.SetObjectValueToCore(DependencyProperty dp, Object value)
   at System.Windows.DependencyObject.SetEffectiveValue(DependencyProperty property, EffectiveValueEntry& newEntry, Object newValue)
   at System.Windows.DependencyObject.UpdateEffectiveValue(DependencyProperty property, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, ValueOperation operation)
   at System.Windows.DependencyObject.SetValueInternal(DependencyProperty dp, Object value, Boolean allowReadOnlySet)
   at System.Windows.Controls.ContentControl.set_Content(Object value)
   at App.BorrowerDocumentSelection.createPanesWithWebBrowsers_Click(Object sender, RoutedEventArgs e)
   at System.Windows.Controls.Primitives.ButtonBase.OnClick()
   at System.Windows.Controls.Button.OnClick()
   at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
   at System.Windows.Controls.Control.OnMouseLeftButtonUp(Control ctrl, EventArgs e)
   at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName)

0
Dave
Top achievements
Rank 1
answered on 18 Jun 2011, 03:35 AM

Update:
Found a thread with something similar within this posting,

http://www.telerik.com/community/forums/silverlight/docking/xaml-parsing-errors-using-the-raddock-control-support-ticket-id-199566.aspx

adding 

 

pane.DataContext = "{x:Null}" ;

Now, the radpanes are rendered in an UnPinned condition,
We are able to open each panes and view the content,
We are able to Pin one of the panes,
Pinning any of others causes the Blank screen of silverlight death...

Any suggestions are appreciated,


 

 


Cheers,

0
Konstantina
Telerik team
answered on 23 Jun 2011, 07:52 AM
Hi Dave,

Following your posts, I am afraid I couldn't understand if you were able to achieve your goal. If you have any problems, could you please send us your project, so that we can run it here locally and explain what exactly you are trying to achieve and where do you encounter any difficulties.

Looking forward to your reply.

All the best,
Konstantina
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
0
Dave
Top achievements
Rank 1
answered on 23 Jun 2011, 06:53 PM
Thanks for the reply.

We are having difficulty with the RadPane rendering when the content is a WebBrowser(WB).   In our senario, we will create upto 5 radpanes with Content=WB.  The WB is placed inside a RadPane which is docked to RadSplitContainer InitialPosition="DockRight" .   We found, this routine of creating Radpanes with WB is only successful when the RadPane is set to Unpinned.   After the page renders. We are able to Pin one of the panes.  Unfortunately, Pinning any of the others 4 Radpanes causes the Blank screen of Silverlight death...  the Program locks up and requires a restart.   Is this by design?


 

 

 

 

 

0
Konstantina
Telerik team
answered on 28 Jun 2011, 01:59 PM
Hello Dave,

Thank you for the clarification.

Regrettably, RadPane is not working properly with a WebBrowser as a Content. The Panes are redrawn every time their state is changed and that makes the proper work of the WebBrowser difficult.
Sorry for the caused inconvenience.

Best wishes,
Konstantina
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
Tags
Docking
Asked by
Dave
Top achievements
Rank 1
Answers by
Dave
Top achievements
Rank 1
Konstantina
Telerik team
Share this question
or