or
I have a radgridview with a nested radgridview in the RowDetails.
I would like to bind a column width in the nested gridview to a
column ActualWidth in the parent gridview. I tried using a simple
elementName binding and giving the column a name, but that doesn't
seem to work. Is there a better way to do this, or another way to
reference the grids column that I am missing.
Cheers,
James
<DataTemplate x:Key="DetailGrid"> <telerik:RadGridView> <telerik:RadGridView.Columns> <telerik:GridViewDataColumn Width="{Binding ActualWidth, ElementName=MainGridFirstColumn}" /> </telerik:RadGridView.Columns> </telerik:RadGridView></DataTemplate><telerik:RadGridView Name="MainGrid" RowDetailsTemplate="{DynamicResource DetailGrid}"> <telerik:RadGridView.Columns> <telerik:GridViewDataColumn Name="MainGridFirstColumn" Width="*"/> </telerik:RadGridView.Columns></telerik:RadGridView>this.documentStream = App.GetResourceStream(new Uri("/sNotes.Client.Windows.Shell;component/SampleData/avanza.pdf", UriKind.Relative)).Stream;
An Error found:
System.Windows.Markup.XamlParseException was unhandled
Message='The invocation of the constructor on type 'sNotes.Client.Windows.Shell.BookBrowsing2' that matches the specified binding constraints threw an exception.' Line number '9' and line position '9'.
Please download this sample version at below:
BookandPDFIntegration
Thanks,
John
RadDragAndDropManager.ExecutionMode = DragExecutionMode.Legacy;