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

crash setting active pane

4 Answers 98 Views
Docking
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Henri
Top achievements
Rank 1
Henri asked on 21 Nov 2011, 12:01 PM
Using Q3 2011, a crash occurs in a very simple docking layout (only 1 pane)


<telerik:RadDocking x:Name="xDock" Grid.Row="1" HasDocumentHost="true">
            <telerik:RadDocking.DocumentHost>
                <telerik:RadSplitContainer>
                    <telerik:RadPaneGroup>
                        <telerik:RadPane Header="Pane 1" x:Name="xPane1" telerik:RadDocking.SerializationTag="1">
                        </telerik:RadPane>
                    </telerik:RadPaneGroup>
                </telerik:RadSplitContainer>
            </telerik:RadDocking.DocumentHost>
        </telerik:RadDocking>





Steps to reproduce:

  1. float the pane
  2. close (hide) the pane (no more panes visible)
  3. save the layout
  4. load the layout (still no panes, which is correct)
  5. now trying to unhide and activate the pane

 
if (xPane1.IsHidden)
    xPane1.IsHidden =
false;
xDock.ActivePane = xPane1; //CRASH HERE

How can this be fixed?
Thank you for your assistance,
Henri

 

4 Answers, 1 is accepted

Sort by
0
George
Telerik team
answered on 23 Nov 2011, 09:04 AM
Hi Henri,


Thank you for contacting us.

We are aware of this problem and we are currently working on it. It will take time to make some tests to ensure that there will be no breaking changes. Most probably the fix will be included in our next internal build.

Hope this helps.

Kind regards,
George
the Telerik team

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

0
Henri
Top achievements
Rank 1
answered on 23 Nov 2011, 09:18 AM
Thank you George for the information.
I am looking forward to your next internal build.
(internal build 2011.3.1122.1040 does not yet fixes this).
Best regards,
Henri
0
Jatin
Top achievements
Rank 1
answered on 06 Nov 2012, 05:49 AM
Hello Telerik,

I too have a similar problem. I am using 2012.1.326.1040 build of RadDocking and still the pane goes into not responding state.
here is what I do:
1. Unpin a pane that has RADMap on it.
2. save layout
3. close and open application..i find that my map pane is unpinned on the top.
4. I hover my mouse over the unpinned pane and that's it...the whole docking does into not responding mode.

further, I have some more questions
1. what is the event that gets called when the preview of an unpinned pane happens? I tried all the events related to Preview in the RadDocking control but none gets fired at that point.
2. can we turnoff the preview feature for a single pane or for whole docking? it is really not a good user experience when the user hovers and the pane is previewed and waits there until he clicks elsewhere!!

Regards
Jatin
0
George
Telerik team
answered on 08 Nov 2012, 04:24 PM
Hello Jatin, 

We are not aware of such issue with the RadDocking and RadMap controls. Could you share with us some more information about this scenario? For example:
  • When the layout is saved and loaded? 
  • Is there any custom code?
  • Does this happen only in this scenario or you could reproduce it using a floating and pinned panes?

Please, note that sending us a sample code or even project could shed some light on the problem.

Now, straight to your questions:
  1. There is such event in the RadDocking control, but it's kind of tricky to add a handler for it. I would suggest finding the AutoHideAreas and cast them to INotifyLayoutChange interface and handle the LayoutChangeStarted and LayoutChangeEnded events. Please, refer to the following forum thread where the same question is answered - http://www.telerik.com/community/forums/wpf/docking/slidein-slideout-or-hide-show-event.aspx. There is also attached project that demonstrates this behavior. The sample is built for WPF, but the logic is the same for Silverlight as well.
  2. I am not sure I understand what do you mean by turning off the preview feature? If a mouse is over unpinned pane, the pane shows up with animation, and if the mouse leaves the pane, it goes back  (hides itself). But if a user clicks on the pane, it will stay opened as long as another pane is clicked (because the focus is still there and the pane stays shown).

All the best,
George
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
Docking
Asked by
Henri
Top achievements
Rank 1
Answers by
George
Telerik team
Henri
Top achievements
Rank 1
Jatin
Top achievements
Rank 1
Share this question
or