Telerik Forums
UI for WPF Forum
1 answer
105 views

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

Alex Fidanov
Telerik team
 answered on 08 Oct 2010
1 answer
105 views

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:

public class UDataTable
{
    public IList<string> Header { get; set; }
        
    public IList<UDataRow> Rows { get; set; }
}

public class UDataRow
{
    public IList<object> Columns = new List<object>();
}

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

Pavel Pavlov
Telerik team
 answered on 08 Oct 2010
4 answers
822 views
Hi..
How can I initially set the value to blank   "  /   /   " -
So when the form is open  the user can start to type in the date?
thanks again.........
Boyan
Telerik team
 answered on 08 Oct 2010
0 answers
64 views

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

RJ
Top achievements
Rank 1
 asked on 08 Oct 2010
6 answers
89 views
Hello,

I've got a GridView with four interlaced ChildGridViews. Each GridView contains some different and some identical columns. The identical containing numbers and are arranged right. The columns that are different in each GV are arranged left. My intention is to get all the number-columns below the others.

I have tried to insert a column with width="*" before the right arranged columns start. But that don't works. The stretching function does not consider the width of the child GridViews. So the columns are not below the others.

What can I do to get this work?
Maya
Telerik team
 answered on 08 Oct 2010
1 answer
20 views
Hello,

I've got a DataGridView with binding to objects in a ObservableCollection. The columns are binded to the attributes of the class.
When I change a value in column a the value of column b should be changed in dependence of the new value in column b. The value of column b is binded to an attribute too.

Column a contains the item number, column b should contain the item name. The item names are stored in hashtable (key = item number).

I hope my English is understandable.

Thank you very much!
Best regards

Markus
Maya
Telerik team
 answered on 08 Oct 2010
1 answer
214 views
Hi,
   Is is possible to style gauge as a analog clock but something like stopwatch. I need to freeze two hands (in different color) when the stopwatch started and other two hands will show time ellapsed?

Example is aprriciated.

Thank you
Andrey
Telerik team
 answered on 08 Oct 2010
1 answer
185 views
How can I validate by row in RadGridView like is done with standart WPF components here: http://www.codeproject.com/KB/WPF/WPFDataGridExamples.aspx#errorinfo


Is it possible to force the validatation of the entire grid when a single row is updated/removed?


Thanks
Veselin Vasilev
Telerik team
 answered on 08 Oct 2010
1 answer
117 views
Hi,

I am trying to display an image and a textblock in a radcombo box control nested within a radtreeview. The radcombox's itemssource is set to value that contains a text property and bitmapimage. I set the source for the image to the bitmapimage stored in the radcombox's itemsource. When the radcombox is expanded and displayed the text displays but the image does not display.

Here is a sample of the radcomboxes item templates:

 

 

 

<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>

 



And here is a sample of the code to get the image and the setting of the itemsource for the combox:

 

 

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

 

Civbaron
Top achievements
Rank 1
 answered on 08 Oct 2010
5 answers
198 views
Hai,
    I am using 2D Bar Chart. I want to show the first value in XAxis As Blue and Second value in XAxis as Red. And also i have to show Blue(In 0) as "String1" and Red(in 1) as "String2" in ChartArea.How can i do this?

Thanks in advance.
Evgenia
Telerik team
 answered on 07 Oct 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?