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

Panes not refreshed

4 Answers 64 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Ido
Top achievements
Rank 1
Ido asked on 28 Jul 2009, 09:05 AM
I'm having problems with pane refreshes, I'll give some examples:

1. I have an event that causes the content of a pane to change, the pane is a second pane in a pane group, places on the bottom of the screen (in a split). When I change the content of the pane I also change the header and title properties of the pane - the result is that the content changes (its a RadGridView that changes ItemSource), the text of the pane's tab changes (the Header property?), but the header of the pane doesn't change (the Title property?). When I move from the pane to the second pane in the group, and back to the changed pane, it shows. The PaneGroup is written in Xaml, but both panes in the group are added by code (using Prisms RegionManager, with the group set as the region, to add panes dynamically to the group).

2. I have a split container to the right of the screen, that holds two group - both are added by code (again, prism and RegionManager, only this time the Region is the splitcontainer). The first group (top) has 3 panes, in one of the a button that creates a pane in the buttom panegroup - 'till you press the button, the buttom group exists, but without panes, so it doesn't show, and the top group is spread from top to bottom. When I press the button, I see in debug that the pane is added to the lower PaneGroup but visually, nothing happens - the pane group doesn't appear. Only when I move in the top pane group from one pane to another, the buttom group appears, taking 50% of the height, showing the newly added pane. It also appears when dragging the top group outside of the container or when changing the selected pane in the upper group from code. Trying to use SetFocus, SelectedItem or other methods to make the group re-calculate its height didn't work.

Any ideas would be appreciated.

4 Answers, 1 is accepted

Sort by
0
Ido
Top achievements
Rank 1
answered on 28 Jul 2009, 10:01 AM
I found a workaround for the second problem (containers).

The original code was:

<RadDocking:RadSplitContainer InitialiPosition="DockedRight" Orientation="Vertical" Regions:RegionManager.RegionName="xxx">

</RadDocking:RadSplitContainer>

and in the code I've added the two group panes to the region

I've changed the code to :
<RadDocking:RadSplitContainer InitialiPosition="DockedRight" Orientation="Vertical">
  <RadDocking:RadSplitContainer InitialiPosition="DockedTop" Orientation="Vertical" Regions:RegionManager.RegionName="xxx">
  <RadDocking:RadSplitContainer InitialiPosition="DockedBottom" Orientation="Vertical" Regions:RegionManager.RegionName="yyy">
</RadDocking:RadSplitContainer>

And changed the code so that there will be two regions (one for each group) instead of one (for both groups) - this caused it to work.

But still, why didn't it work with one split container (so the order of the called Items.Add define the position of top/bottom)?
0
Miroslav Nedyalkov
Telerik team
answered on 29 Jul 2009, 10:07 AM
Hello Ido,

We already solved the first issue (with the Headers) and it should be working property for the SP version of RadControls for Silverlight.

About the second problem - we will address the issue and will try to resolve it as soon as we can.

Regards,
Miroslav Nedyalkov
the Telerik team

Instantly find answers to your questions on the newTelerik Support Portal.
Check out the tipsfor optimizing your support resource searches.
0
Ido
Top achievements
Rank 1
answered on 07 Aug 2009, 08:52 AM
What is the SP version you refer to? We are currently working with the Q2 version (July 1st)
0
Miroslav Nedyalkov
Telerik team
answered on 10 Aug 2009, 12:03 PM
Hello Ido,

The SP should be released this week. It is not available yet.

Regards,
Miroslav Nedyalkov
the Telerik team

Instantly find answers to your questions on the newTelerik Support Portal.
Check out the tipsfor optimizing your support resource searches.
Tags
Docking
Asked by
Ido
Top achievements
Rank 1
Answers by
Ido
Top achievements
Rank 1
Miroslav Nedyalkov
Telerik team
Share this question
or