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

Controls inside a RadDocumentPane

4 Answers 82 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Charles
Top achievements
Rank 1
Charles asked on 15 Apr 2014, 03:28 PM
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.






4 Answers, 1 is accepted

Sort by
0
Konstantina
Telerik team
answered on 17 Apr 2014, 08:54 AM
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.

 
0
Charles
Top achievements
Rank 1
answered on 17 Apr 2014, 10:07 AM

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>















 

0
Charles
Top achievements
Rank 1
answered on 17 Apr 2014, 10:14 AM
Look at the attached files the errors i get.
0
Konstantina
Telerik team
answered on 17 Apr 2014, 03:55 PM
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.

 
Tags
Docking
Asked by
Charles
Top achievements
Rank 1
Answers by
Konstantina
Telerik team
Charles
Top achievements
Rank 1
Share this question
or