Controls inside a RadDocumentPane

5 posts, 0 answers
  1. Charles
    Charles avatar
    10 posts
    Member since:
    Dec 2011

    Posted 15 Apr 2014 Link to this post

    Hi, i have an external control which i have just downloaded and i want to put that control inside a documentpane which it works. But, when i try to run the application i get a null reference exception and if i remove the control from the docking control, it works fine.

    Or is Telerik limited to only its controls and already defined wpf controls ?

    <telerik:RadDocumentPane>
      <ModulusFE:StockChartX></ModulusFE:StockChartX>
    </telerik:RadDocumentPane>


    Note: The ModulusFE controls is referencing some dll file.






  2. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 17 Apr 2014 Link to this post

    Hi Charles,

    There are no limitations in using other vendors' controls in the RadDocking. Could you please send us the stack trace of the exception. Also, in which method/class this is thrown.
    We will try to research it without having to install the component, as at first sight I could find any trial versions for it.

    Looking forward to your reply.

    Regards,
    Konstantina
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. UI for WPF is Visual Studio 2017 Ready
  4. Charles
    Charles avatar
    10 posts
    Member since:
    Dec 2011

    Posted 17 Apr 2014 in reply to Konstantina Link to this post

    This works fine without embedding it inside any docking controls

    <Grid>
    <ModulusFE:StockChartX x:Name="_stockChartX" ShowAnimations="True" Grid.Row="2"
    YGrid="True" FontForeground="Yellow"  DisplayTitles="True" SeriesRightClick="stockChartX_SeriesRightClick"                                         UserDrawingComplete="_stockChartX_UserDrawingComplete"  LineStudyDoubleClick="_stockChartX_LineStudyDoubleClick"       ChartPanelMoreIndicatorTemplate="{StaticResource ChartPanelMoreIndicator_MFE}" HorizontalLineValuePresenterTemplate="{StaticResource HorLinesValueControlTemplate}"  SeriesTickBoxValuePresenterTemplate="{StaticResource TickBoxValueControlTemplate}"  >
    <ModulusFE:StockChartX.LicenseKey>INSERT YOUR LICENSE KEY HERE</ModulusFE:StockChartX.LicenseKey>
    </ModulusFE:StockChartX>
    </Grid>




    But when i try to put it in a raddocument pane, my project stops working and i get a null reference exception, but if i remove it from the dock, there is no exception

     <telerik:RadDocking.DocumentHost>
                        <telerik:RadSplitContainer BorderThickness="0" BorderBrush="WhiteSmoke" x:Name="radSplitContainer1">
                            <telerik:RadPaneGroup x:Name="radPaneGroup" BorderThickness="0" BorderBrush="WhiteSmoke" >
                                <telerik:RadDocumentPane x:Name="radane1" Header="Document 1">
                                        <TextBlock TextWrapping="Wrap" Text=""></TextBlock>

                                        <!--<ModulusFE:StockChartX x:Name="_stockChartX" ShowAnimations="True" Grid.Row="2"
                                   YGrid="True" FontForeground="Yellow" 
                                   DisplayTitles="True" 
                                   SeriesRightClick="stockChartX_SeriesRightClick"
                                   SeriesBeforeDelete="stockChartX_IndicatorBeforeDelete"
                                   LineStudyRightClick="stockChartX_LineStudyRightClick"
                                   LineStudyBeforeDelete="stockChartX_LineStudyBeforeDelete"
                                   LineStudyDoubleClick="_stockChartX_LineStudyDoubleClick"
                                   TrendLinePenetration="_stockChartX_TrendLinePenetration"
                                   ChartPanelBeforeClose="_stockChartX_ChartPanelBeforeClose"
                                   IndicatorDoubleClick="_stockChartX_IndicatorDoubleClick"
                                   CustomIndicatorNeedsData="_stockChartX_OnCustomIndicatorNeedsData"
                                   ChartPanelMouseLeftClick="_stockChartX_ChartPanelMouseLeftClick" 
                                   SeriesMoved="_stockChartX_SeriesMoved"
                                   ShowInfoPanel="_stockChartX_ShowInfoPanel"
                                   KeyDown="_stockChartX_KeyDown"
                                   UserDrawingComplete="_stockChartX_UserDrawingComplete" 
                                   MouseMove="_stockChartX_MouseMove" 
                                   ChartScroll="_stockChartX_ChartScroll"
                                   ChartZoom="_stockChartX_ChartZoom" 
                                
                                   ChartPanelMoreIndicatorTemplate="{StaticResource ChartPanelMoreIndicator_MFE}" 
                                    HorizontalLineValuePresenterTemplate="{StaticResource HorLinesValueControlTemplate}"
                                   SeriesTickBoxValuePresenterTemplate="{StaticResource TickBoxValueControlTemplate}"
                                 >
                    
                
                                            <ModulusFE:StockChartX.LicenseKey>INSERT YOUR LICENSE KEY HERE</ModulusFE:StockChartX.LicenseKey>
                                        </ModulusFE:StockChartX>-->
                                </telerik:RadDocumentPane>
                               
                            </telerik:RadPaneGroup>
                        </telerik:RadSplitContainer>
                    </telerik:RadDocking.DocumentHost>















     

  5. Charles
    Charles avatar
    10 posts
    Member since:
    Dec 2011

    Posted 17 Apr 2014 Link to this post

    Look at the attached files the errors i get.
  6. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 17 Apr 2014 Link to this post

    Hi Charles,

    Thank you for the additional information.

    However, in the stack trace I don't see any Telerik related code. It only points to ModulusFE one.
    The RadPane is a ContentControl, you could try to reproduce the issue by putting this chart in a ContentControl and see if it works.

    Regards,
    Konstantina
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top
UI for WPF is Visual Studio 2017 Ready