Hey all,
Does anyone know how to build a hierarchical TreeView like we have the ability to do in WinForms.
In WinForms I can do:
radTreeView1.DataSource = industryCodeList;
radTreeView1.DisplayMember = "Description";
radTreeView1.ValueMember = "IndustryCode1";
radTreeView1.ParentIDMember = "ParentIndustryCode";
I would then get a hierarchical TreeView that was really simple to use.
Thanks,
Erik Van Norstrand
Hi,
I have been using DataTables bound to Telerik GridViews for displaying tabular data. But in some I cases I will have to stop using the DataTable and instead use a custom class which simplified would look like this:
Could anyone point me to any resource that explains what I need to add to my classes so that the GridView displays them like it displays a DataTable?
Thanks,
Jose
I’m performing a Drag and Drop between two grids. The row is not removed from the first grid after the drop is completed. Both the grids have the same ObservableCollection. Did anyone notice this behavior?
RJ
<telerik:RadComboBox x:Name="rcbImages" VerticalAlignment="Center" IsEnabled="False" SelectedValue="{Binding Condition}" Visibility="Hidden" telerik:StyleManager.Theme="Office_Blue" Width="150" Grid.Column="5">
<telerik:RadComboBox.SelectionBoxTemplate>
<DataTemplate>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="40" />
</Grid.ColumnDefinitions>
<TextBlock Grid.Column="1" Text="{Binding Key.Description}" />
<Image Grid.Column="0" Source="{Binding Value}">
</Image>
</Grid>
</DataTemplate>
</telerik:RadComboBox.SelectionBoxTemplate>
<telerik:RadComboBox.ItemTemplate>
<DataTemplate>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="40" />
</Grid.ColumnDefinitions>
<TextBlock Grid.Column="1" Text="{Binding Description}" />
<Image Grid.Column="0" Source="{Binding Value}" Initialized="Image_Initialized" Loaded="Image_Loaded" ImageFailed="Image_ImageFailed">
</Image>
</Grid>
</DataTemplate>
</telerik:RadComboBox.ItemTemplate>
</telerik:RadComboBox>
BitmapImage bitimage = new BitmapImage();
bitimage.BeginInit();
bitimage.StreamSource =
new System.IO.MemoryStream(images[i].ImageValue);
bitimage.EndInit();
images[i].Image = bitimage;
Dictionary<ImageType, BitmapImage> dicImages = new Dictionary<ImageType, BitmapImage>();
for (int i = 0; i < images.Count; i++)
{
dicImages.Add(images[i], images[i].Image);
}
combo.SelectedValuePath =
"Key.ImageKey";
combo.ItemsSource = dicImages;
combo.IsEnabled =
true;
Any help would be greatly appreciated.
Thanks,
Jonathan