Hi,
I'm facing some issues in "GridViewToggleRowDetailsColumn" datatemplate as seprate UserControl which has RADCHART.
1. I'm having a GridView in a usercontrol as follows(MainPage.XAML),
<telerik:RadGridView HorizontalAlignment="Left" Name="radGridView1" Grid.Column="1" Visibility="Collapsed" IsReadOnly="True"
VerticalAlignment="Top" Width="Auto" AutoGenerateColumns="True" LoadingRowDetails="radGridView1_LoadingRowDetails">
2. I'm creating the column dynamically, includes GridViewToggleRowDetailsColumn.
3. I'm having another usercontrol as RADCHART as follows(ChartPage.XAML),
<telerik:RadChart Height="300" ItemsSource="{Binding chartDetails}" HorizontalAlignment="Center" Name="radChart1" VerticalAlignment="Center" Width="400">
<telerik:RadChart.DefaultSeriesDefinition>
<telerik:BarSeriesDefinition />
</telerik:RadChart.DefaultSeriesDefinition>
</telerik:RadChart>
4. On expanding the GridViewToggleRowDetailsColumn , it has to load the Rad chart with data. as follows,
<telerik:RadGridView.RowDetailsTemplate>
<DataTemplate>
<local:ChartPage x:Name="MyChart1"/>
</DataTemplate>
</telerik:RadGridView.RowDetailsTemplate>
But its not loading the chart, mean EMPTY chart only visible on expansion.
5. In "ChartPage.XAML", I'm having a public method with parameters as follows,
public void Get2DChart(string param1, string param2, string param2)
{
//WEB SERVICE CALL
}
6. So I want to call this method from my "MainPage.XAML" in the event of "radGridView1_LoadingRowDetails" as follows,
private void radGridView1_LoadingRowDetails(object sender, Telerik.Windows.Controls.GridView.GridViewRowDetailsEventArgs e)
{
ChartPage obj2D = new ChartPage();
obj2D.Get2DChart(param1, param2, param3);
}
7. If I call the above mentioned method, its doesnt showing the chart as expected. It shows only empty chart.
8. But If I'm executing the "ChartPage.XAML", It's showing with Datas as Expected.
Please guide me to bring the chart output.
I'm STRUCKED badely, as I'm new to TELERIK.
Please find the output page of my chart.
I would greatly appreciated/Thankful even a small tip.
Thanks,
Karthikeyan Manickam
I'm facing some issues in "GridViewToggleRowDetailsColumn" datatemplate as seprate UserControl which has RADCHART.
1. I'm having a GridView in a usercontrol as follows(MainPage.XAML),
<telerik:RadGridView HorizontalAlignment="Left" Name="radGridView1" Grid.Column="1" Visibility="Collapsed" IsReadOnly="True"
VerticalAlignment="Top" Width="Auto" AutoGenerateColumns="True" LoadingRowDetails="radGridView1_LoadingRowDetails">
2. I'm creating the column dynamically, includes GridViewToggleRowDetailsColumn.
3. I'm having another usercontrol as RADCHART as follows(ChartPage.XAML),
<telerik:RadChart Height="300" ItemsSource="{Binding chartDetails}" HorizontalAlignment="Center" Name="radChart1" VerticalAlignment="Center" Width="400">
<telerik:RadChart.DefaultSeriesDefinition>
<telerik:BarSeriesDefinition />
</telerik:RadChart.DefaultSeriesDefinition>
</telerik:RadChart>
4. On expanding the GridViewToggleRowDetailsColumn , it has to load the Rad chart with data. as follows,
<telerik:RadGridView.RowDetailsTemplate>
<DataTemplate>
<local:ChartPage x:Name="MyChart1"/>
</DataTemplate>
</telerik:RadGridView.RowDetailsTemplate>
But its not loading the chart, mean EMPTY chart only visible on expansion.
5. In "ChartPage.XAML", I'm having a public method with parameters as follows,
public void Get2DChart(string param1, string param2, string param2)
{
//WEB SERVICE CALL
}
6. So I want to call this method from my "MainPage.XAML" in the event of "radGridView1_LoadingRowDetails" as follows,
private void radGridView1_LoadingRowDetails(object sender, Telerik.Windows.Controls.GridView.GridViewRowDetailsEventArgs e)
{
ChartPage obj2D = new ChartPage();
obj2D.Get2DChart(param1, param2, param3);
}
7. If I call the above mentioned method, its doesnt showing the chart as expected. It shows only empty chart.
8. But If I'm executing the "ChartPage.XAML", It's showing with Datas as Expected.
Please guide me to bring the chart output.
I'm STRUCKED badely, as I'm new to TELERIK.
Please find the output page of my chart.
I would greatly appreciated/Thankful even a small tip.
Thanks,
Karthikeyan Manickam