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

RadPaneGroup Selection changed Event

2 Answers 149 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jim
Top achievements
Rank 1
Jim asked on 08 Sep 2011, 01:50 PM
I am having trouble getting this Event to work. I can add the Event to my XAML and to my code behind just fine, it builds fine, but when I run the program it blows up on Initialize component.

<telerik:RadDocking.DocumentHost>
    <telerik:RadSplitContainer x:Name="MainDocumentContainer" telerik:ProportionalStackPanel.RelativeSize="0,70">
        <telerik:RadPaneGroup x:Name="MainDocumentGroup" SelectionChanged="MainDocumentGroup_SelectionChanged">
            <!--<telerik:RadPaneGroup x:Name="MainDocumentGroup" SelectionChanged="MainDocumentGroup_SelectionChanged">-->
            <telerik:RadDocumentPane x:Name="MainDocumentPane" Header="Search"
                CanUserClose="False" CanFloat="False" IsPinned="True" CanDockInDocumentHost="True">
                <Grid x:Name="SearchGridLayout">
                    <ig:XamGrid x:Name="MyDataGrid" Grid.Row="1" AutoGenerateColumns="False" ColumnWidth="*">
                        <ig:XamGrid.SelectionSettings>
                            <ig:SelectionSettings RowSelection="Single" CellClickAction="SelectRow"/>
                        </ig:XamGrid.SelectionSettings>
                    </ig:XamGrid>
                </Grid>
            </telerik:RadDocumentPane>
        </telerik:RadPaneGroup>
    </telerik:RadSplitContainer>
</telerik:RadDocking.DocumentHost>
private void MainDocumentGroup_SelectionChanged(object sender, RadSelectionChangedEventArgs e)
{
    RadPane pane = e.AddedItems[0] as RadPane;
    if (pane.Content is PricingSubmissionForm)
    {
        PricingSubmissionForm form = pane.Content as PricingSubmissionForm;
        this.ShowSubmissionDetailsInPane(form);
        this.ShowFormRibbonGroup();
    }
    else
    {
        this.HideFormRibbonGroup();
        // hide the side panes
        this.SubmissionDetails.IsHidden = true;
        this.LineItemDetails.IsHidden = true;
        this.HideFormRibbonGroup();
    }
}

Failed to assign to property 'Telerik.Windows.Controls.RadTabControl.SelectionChanged'. [Line: 257 Position: 91]

2 Answers, 1 is accepted

Sort by
0
Jim
Top achievements
Rank 1
answered on 12 Sep 2011, 01:19 PM
Hello, really need to get this figured out and squared away. Anyone have any ideas?
0
Boyan
Telerik team
answered on 13 Sep 2011, 04:39 PM
Hi Jim,

I was not able to reproduce the error. Could you provide some more info about your project and the version you are using. A sample project where the error can be reproduced will be best. I have attached the project I tried with. You can see that the event is fired without problems and no error is thrown.

Kind regards,
Boyan
the Telerik team

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

Tags
General Discussions
Asked by
Jim
Top achievements
Rank 1
Answers by
Jim
Top achievements
Rank 1
Boyan
Telerik team
Share this question
or