Telerik Forums
UI for WPF Forum
1 answer
117 views
Hi all, I faced a problem with RadGridView in WPF
I have a collection of items, each of them contains collection of subitems
for this hierarchy I choosed to use main grid with HierarchyChildTemplate, where I placed another gridview for subitems
I use PropertyRelation for mapping child tables to master table
The problem is that AutoGenerateColumns="false" doesn't work for this child gridview, its columns are generated automatically anyways

Have anyone met this problem before or is there another way to display a master grid with grids for subitems?
Thank you
Alexander
Vlad
Telerik team
 answered on 01 Jul 2009
3 answers
116 views
Hi,

Based in the intergration sample I am trying to populate a chart from a grid. I have the following functions which I took from your sample. I have changed the function to use all records not just the selected ones.

       private void ShowSelectedRecordsInChart()  
        {  
 
            DataTable table = new DataTable();  
 
            DataColumn col = new DataColumn("Shuttle"typeof(double));  
 
            table.Columns.Add(col);  
 
            try 
            {  
                foreach (DataRecord item in this.datagrdV02.Records)  
                {  
                    DataRow row = table.NewRow();  
 
                    row["Shuttle"] = ((DataRow)item.Data)["Shuttle"];  
 
                    table.Rows.Add(row);  
                }  
            }  
            catch (Exception ex)  
            {  
                MessageBox.Show(ex.Message);  
            }   
        } 

When I execure the following line:

row[

"Shuttle"] = ((DataRow)item.Data)["Shuttle"];

 


I get the following error:

Unable to cast object of type 'CoachTech.Test_VO2' to type 'System.Data.DataRow'.

Any Idea what I am doing wrong?

Cheers,
Kevin.
Ves
Telerik team
 answered on 01 Jul 2009
1 answer
118 views
  How can I change the date to be
dd/MM/yyyy
Orit
Top achievements
Rank 1
 answered on 01 Jul 2009
1 answer
60 views
Hi,

The DayTemplateSelector has no effect when I apply VistaTheme. Is it a bug ? Is it possible to desactivate Theme for a spécific control ?

Many Thanks in advance.
Kaloyan
Telerik team
 answered on 01 Jul 2009
1 answer
109 views
Hi

Is it possible to disable the legend without using a custom style? I'd like to do it in the C# code if possible.

Allan   
Giuseppe
Telerik team
 answered on 01 Jul 2009
3 answers
134 views
Hello,

Can anyone please tell me what is the difference between the following properties on a telerik grid?
The help system (chm\web) does not give sufficient information on this matter.

1) SelectedItem

2) SelectedRecord

3) SelectedRecords

4) CurrentCell

5) CurrentItem

6) CurrentRecord

Thanks,

Erez
Milan
Telerik team
 answered on 29 Jun 2009
2 answers
105 views
Hi,

my problem is that when I define a GridViewColumn the value of Background is ignored!
BUT (and I use this as workaround) with GridViewDataColumn it works.
<telerik:RadGridView.Columns> 
                    <telerik:GridViewColumn Width="115"  Background="Silver">  
                        <telerik:GridViewColumn.CellTemplate> 
                            <DataTemplate> 
                                <TextBlock Text="Test" /> 
                            </DataTemplate> 
                        </telerik:GridViewColumn.CellTemplate> 
                    </telerik:GridViewColumn> 
                    <telerik:GridViewDataColumn Width="115" Background="Silver">  
                        <telerik:GridViewDataColumn.CellTemplate> 
                            <DataTemplate> 
                                <TextBlock Text="Test" /> 
                            </DataTemplate> 
                        </telerik:GridViewDataColumn.CellTemplate> 
                    </telerik:GridViewDataColumn> 
The first column in this snippet is not colored - the second is!

I just want to notice this problem - it is not stopping me or such bad things.

Regards

Manfred
ManniAT
Top achievements
Rank 2
 answered on 29 Jun 2009
5 answers
171 views
Hi,

I'm using RadTreeView on WPF, .NET 3.5 SP1. My goal is to select an item in the treeview programmatically. For this purpose I tried the following:

            tree.SelectedItems.Clear();
            tree.SelectedItems.Add(item);

This works fine IF and ONLY IF this particular item was visible(expanded) at least once. Please help to resolve this issue. All I need is to select the item (no matter if it was expanded or not).

Thanks in advance,
Ruben.
Vlad
Telerik team
 answered on 27 Jun 2009
2 answers
86 views
Hello,

I have a very simply implementation that embeds a radCarousel control on a grid and databinds the ItemSource to an Observable collection.  The only way that I am able to select items is by clicking on the "scroll bar" buttons at the bottom of the control.  I was under the impression that I should also be able to click on an item in the list as well to bring it to the front as the selected item.  From the demos it appears that nothing special is required to support this functionality - am I missing something?

Thanks,
Mark.
Mark
Top achievements
Rank 1
 answered on 26 Jun 2009
3 answers
121 views
Hi,

How to set the different color for Bar based on values like critical - Red, normal - green, warning - yellow etc.

please send the sample code.
Ves
Telerik team
 answered on 26 Jun 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?