Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > Docking > BusyIndicator inside pane

Not answered BusyIndicator inside pane

Feed from this thread
  • Wil avatar

    Posted on Jan 6, 2012 (permalink)

    Hi
    I'm developing a UI with Telerik components. I need a docking panel, with a main document and three side panes. These panes are displaying different information in asynchronous way, so i need three different RadBusyIndicator (one each pane) to tell the user that the panel is busy. The content of the panes is nothing special: a map control, a radchart, a radgrid.

    The problem appear in design time: i cannot put a busyindicator inside a radpane, or the following exception is generated:

    System.InvalidOperationException
    Layout measurement override of element 'Microsoft.Windows.Design.Platform.SilverlightViewProducer+SilverlightContentHost' should not return PositiveInfinity as its DesiredSize, even if Infinity is passed in as available size.
       at System.Windows.UIElement.Measure(Size availableSize)
       at System.Windows.ContextLayoutManager.UpdateLayout()
       at System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)
       at System.Windows.Media.MediaContext.InvokeOnRenderCallback.DoWork()
       at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
       at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
       at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
       at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
       at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)

    This is a code snippet of my current structure (some code cut):

    <telerik:RadDocking>
        <telerik:RadDocking.DocumentHost>
            <telerik:RadSplitContainer>
                <telerik:RadPaneGroup >
     
                    <!--<Controls:RadBusyIndicator Name="busyIndicatorGrid" Grid.Column="2">-->
                    <Grid>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="*" />
                            <RowDefinition Height="auto" />
                        </Grid.RowDefinitions>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="*"/>
                            <ColumnDefinition Width="auto"/>
                        </Grid.ColumnDefinitions>
     
                        <Controls1:RadGridView Name="grid"
                                   Grid.Row="0"
                                   Grid.ColumnSpan="2"
                                   AutoGeneratingColumn="GridAutoGeneratingColumn"
                                   FrozenColumnCount="1"
                                   VerticalAlignment="Stretch"
                                   ItemsSource="{Binding ElementName=gridPager, Path=PagedSource}"
                                   IsReadOnly="true"
                                   SelectionMode="Extended"
                                   SelectionChanged="GridSelectionChanged"
                                   DataLoaded="GridDataLoaded"
                                   IsSynchronizedWithCurrentItem="false">
                        </Controls1:RadGridView>
     
                        <Controls2:RadDataPager
                                Name="gridPager"
                                Grid.Row="1" Grid.Column="1"
                                PageSize="1000"
                                DisplayMode="FirstLastPreviousNextNumeric"
                                AutoEllipsisMode="Both"
                                NumericButtonCount="7" 
                                IsTotalItemCountFixed="True"
                                Visibility="Collapsed"
                                HorizontalAlignment="Right"
                                 />
                    </Grid>
                    <!--</Controls:RadBusyIndicator>-->
                </telerik:RadPaneGroup>
            </telerik:RadSplitContainer>
        </telerik:RadDocking.DocumentHost>
     
        <telerik:RadSplitContainer Orientation="Horizontal" InitialPosition="DockedRight">
     
            <telerik:RadPaneGroup telerik:ProportionalStackPanel.RelativeSize="200, 200">
                <telerik:RadPane Header="Chart">
                    <!--<Controls:RadBusyIndicator Name="busyIndicatorMap">-->
                    <t:MapControl x:Name="WorldMap"/>
                    <!--</Controls:RadBusyIndicator>-->
                </telerik:RadPane>
            </telerik:RadPaneGroup>
     
            <telerik:RadPaneGroup telerik:ProportionalStackPanel.RelativeSize="200, 200">
                <telerik:RadPane Header="Chart">
                    <!--<Controls:RadBusyIndicator Name="busyIndicatorChart">-->
                    <telerikChart:RadChart x:Name="radChart" />
                    <!--</Controls:RadBusyIndicator>-->
                </telerik:RadPane>
            </telerik:RadPaneGroup>
        </telerik:RadSplitContainer>
     
    </telerik:RadDocking>


    Looks something related to size, but i can't figure out how to solve the issue.
    What is the best practice to avoid this problem?

    Thanks in advance.

    Francesco Grandis

    Reply

  • Konstantina Konstantina admin's avatar

    Posted on Jan 11, 2012 (permalink)

    Hi Francesco,

    Could you please verify that this is caused by the RadBusyIndicator - does this issue occurs when there is no BusyIndicator on the page? Also, in the first group there is no RadPane - the RadPaneGroup doesn't support other content, different than a RadPane.
    Could you please share with us with which version of the controls you are experiencing the problem?

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

    Reply

  • Wil avatar

    Posted on Jan 12, 2012 (permalink)

    Thank for the reply Konstantina,

    i managed to create a sample solution with docking panels, busy indicators and simple control (textboxes), and this solution does not give any problem, so the error must be somewhere else in my main project.

    Anyway, i'm using version Q1 - 2011 controls, and as soon as i put a radbusyindicator inside a pane, or a expander, the design editor show the error i posted in my first message. I'll have a deeper look on my project, and find the source of the error. If you have any hints or things i may look for, i'd appreciate a lot.

    Thanks for now.

    Reply

  • Wil avatar

    Posted on Jan 12, 2012 (permalink)

    Found the problem.
    There were a version mismatch: the project was using telerik components 2011.1.411, but docking.dll was 2011.1.315. Now it's working fine, thanks

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > Docking > BusyIndicator inside pane
Related resources for "BusyIndicator inside pane"

Silverlight Docking Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  ]