Telerik Forums
UI for WPF Forum
3 answers
222 views
Is there an easy way to return all the times in the treeview in one statement?  I have a treeview that I manually load through code that is 5-6 levels deep with checkboxes.  I then need to go through every item in the Treeview and check if it is checked or not and update the database.  It doesn't matter what order it goes in.  Right now, i am looping through each level then looping through the children and it is very slow.  Is there a more efficient way of looping through all items and getting the checkstate?

 

foreach (RadTreeViewItem item in treeColumns.Items)

 

{

 

DataAccess.ctx.ExecuteCommand("Update WorkFlow Set SortOrder=" + lOrder.ToString() + " Where ItemID='" + new Guid(item.Tag.ToString()) + "'");

 

RecursiveItems(item);

lOrder++;

}

 

private

 

void RecursiveItems(RadTreeViewItem treeitem)

 

{

 

int lOrder = 1;

 

 

foreach (RadTreeViewItem item in treeitem.Items)

 

{

 

DataAccess.ctx.ExecuteCommand("Update WorkFlow Set SortOrder=" + lOrder.ToString() + " Where ItemID='" + new Guid(item.Tag.ToString()) + "'");

 

 

if (item.Items.Count > 0)

 

{

RecursiveItems(item);

}

lOrder++;

}

 

DataAccess.ctx.SubmitChanges();

 

}

Miroslav
Telerik team
 answered on 29 May 2009
1 answer
38 views
Hi,

     i have used "telerik:RadCarousel".
     it will navigate forward or backword using arrow keys automatically.
     but when i press HOME or END key then it is throwing an exception(System.overflowexception).

      i am not even able to handle this error using try... catch.

Please help.

thanks,
Sachin M. Powar
    
Vlad
Telerik team
 answered on 29 May 2009
3 answers
162 views
Hello.

OK, so I'm a designer (don't all run away).  I work in Blend 98% of the time, VS very rarely.  I've downloaded the WPF demo and have been asked to trial it to see if it's worth having, I think the idea is if us designers can work it we'll all be ok.

So, basically, can the Rad Tools for WPF be used directly in Blend or is it a VS job after we've made the UI?  If you can use it directly in Blend, are there any tutorials?

Regards, A.
Kalin Milanov
Telerik team
 answered on 29 May 2009
3 answers
105 views
Hi

Do I need to convert my xml datasource to a collection before binding to the radpanelbar or can I bind direct to an xml file?
If I can bind directly please advise how.

Many thanks.
Dimitrina
Telerik team
 answered on 28 May 2009
2 answers
118 views
I have the following linq code...
var CVDOverviewData = from cvdo in pieData.CVDOverviews  
                                  select new  
                                  {  
                                    OverTwentyfive = cvdo.OverTwentyfive,  
                                    OverTwenty = cvdo.OverTwenty,  
                                    OverFifteen = cvdo.OverFifteen,  
                                    OverTen = cvdo.OverTen,  
                                    LessTen = cvdo.LessTen  
                                  }; 

the result is a sinlge row with a column for each range (over25, over20, over15 ...)

How so I get these values into a pie chart?

Sorry if this is a real newbie question.

Cheers in advance.

Ves
Telerik team
 answered on 28 May 2009
5 answers
121 views
Hi

I am unable to run your demo's online, with IE or with Firefox. So I modified the demo's app config (installed on my machine) to point to Northwind on SQL server 2005, so I can peruse the grid demo's. Putting a trace on SQL server it traces the following TSQL 

SELECT [t0].[EmployeeID], [t0].[LastName], [t0].[FirstName], [t0].[Title], [t0].[TitleOfCourtesy], [t0].[BirthDate], [t0].[HireDate], [t0].[Address], [t0].[City], [t0].[Region], [t0].[PostalCode], [t0].[Country], [t0].[HomePhone], [t0].[Extension], [t0].[Photo], [t0].[Notes], [t0].[ReportsTo]
FROM [dbo].[Employees] AS [t0]

Then the Demo dies, with no stack trace

What can I do (where can I go) to see the features of your grid

P





Hristo
Telerik team
 answered on 28 May 2009
1 answer
84 views
Any news or thoughts on a Telerik combobox. The one that ships with VS2008 is fairly limited and does not work as users would like. For example, using the up and down keys and then selecting item with tab key.


Nikolay
Telerik team
 answered on 28 May 2009
1 answer
112 views
Hi,

I have the following code:

            PieSeriesDefinition definition = new PieSeriesDefinition();  
            definition.LegendDisplayMode = LegendDisplayMode.DataPointLabel;  
            radChart1.DefaultSeriesDefinition = definition;  
 
            DataSeries DS = new DataSeries();  
            DataPoint DP = new DataPoint();  
 
            DS.LegendLabel = "Over25";  
            DP.YValue = 66;  
            DS.Add(DP);  
            radChart1.DefaultView.ChartArea.DataSeries.Add(DS);  
 
            DataSeries DS2 = new DataSeries();  
            DataPoint DP2 = new DataPoint();  
            DS2.LegendLabel = "Over20";  
            DP2.YValue = 100;  
            DS2.Add(DP2);  
            radChart1.DefaultView.ChartArea.DataSeries.Add(DS2);  
 
            DataSeries DS3 = new DataSeries();  
            DataPoint DP3 = new DataPoint();  
            DS3.LegendLabel = "Over15";  
            DP3.YValue = 120;  
            DS3.Add(DP3);  
            radChart1.DefaultView.ChartArea.DataSeries.Add(DS3);  
 
            DataSeries DS4 = new DataSeries();  
            DataPoint DP4 = new DataPoint();  
            DS4.LegendLabel = "Over10";  
            DP4.YValue = 113;  
            DS4.Add(DP4);  
            radChart1.DefaultView.ChartArea.DataSeries.Add(DS4);  
 
            DataSeries DS5 = new DataSeries();  
            DataPoint DP5 = new DataPoint();  
            DS5.LegendLabel = "Under10";  
            DP5.YValue = 178;  
            DS5.Add(DP5);  
            radChart1.DefaultView.ChartArea.DataSeries.Add(DS5); 

But this is producing a bar chart. how do I make it a Pie chart?

Cheers,
Kevin.
Giuseppe
Telerik team
 answered on 28 May 2009
1 answer
95 views
I am about to start a new app that will be both WPF and Silverlight.  I noticed for both WPF and Silverlight RadControls that you state

"Common Codebase and Shared API with WPF Controls"

That's great but the components that I really like in Silverlight, Drag & Drop, Docking and Toolbar/Menu/ContextMenu are not in WPF.  Are there plans to add these to WPF

Regards,

Dan R.
Daniel
Top achievements
Rank 1
 answered on 27 May 2009
6 answers
120 views
Hi,

In your documentation for Q1 2009 SP2 (version 2009.1.526) WPF RadGridView it states that:-
"AutoGenerateColumns moved from RadGridView to GridViewDataControl"
however AutoGenerateColumns appears as an option when editing the radGridView node in xaml

P
Paul Gallen
Top achievements
Rank 1
 answered on 27 May 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?