Binding myBinding = _isPropertyEditor ? new Binding("DisplayNameEditor") : new Binding("DisplayNamePropertyEditor");
myBinding.Source = DataContext;
Header.
SetBinding(TextBlock.TextProperty, myBinding);
Hi,
I have used the below code to make the parent and child gird (self reference) column with as same.
this.binder = new ColumnWidthBinder(this.RadGridView1);
if (
dataControl.ParentOfType<RadGridView>() != null)
{
for(int i = 0; i < dataControl.Columns.Count; i++)
{
this.binder.RegisterColumn(dataControl.Columns[i], i);
}
}
all the column widths of parent and child coming correctly. the self reference hierarchy is also find but its like all left aligned. If I want to maintain the width as same and also the child items should indent from the parent (tree view hierarchy), what I have to do?
Any help appreciated?
Thanks,
Ramasamy
private
void
CbSelectionChanged(
object
sender, SelectionChangedEventArgs e)
{
if
(e.AddedItems.Count == 1)
{
var selection = e.Audited[0]
as
ExtensionInfo;
if
(selection !=
null
)
_telerikReportViewerModel.SelectedRenderingExtension = selection;
//clear selection
((ComboBox) sender).SelectedItem =
null
;
}