Telerik Forums
UI for WPF Forum
3 answers
260 views
Hi,
 I want custom context menu for parent and child node. I am binding my tree with a collection in code behind. How can I achive my goal?
 
Tihomir Petkov
Telerik team
 answered on 09 Feb 2009
1 answer
111 views
Hi,
Is there any way to get the selected node in the tree(WPF). I want to get the selected item(node) when I click on the context menu.
I want ot add a node in the tree dynamically on selection of new from the context menu. 
Tihomir Petkov
Telerik team
 answered on 09 Feb 2009
9 answers
870 views
Hi,
I am evaluating Rad controls for WPF (RadGridView and few other controls) to use in our project, also had a look at the samples provided along with the evaluation download. I have few queries,
#1. We would be displaying a Summary Row (Frozen row) at bottom of the grid visible area, which is used to display the sum of the values being displayed in that particular column.
#2. Export the grid data(including summary row) in to Microsoft Office Excel file
#3. I would like to customize the gridview's look and feel
 -- remove the RowHeader column, the very first tiny column
 -- remove the curved finish for the last column header

Let me know if these are possible in Rad GridView?

--Dhana
Nedyalko Nikolov
Telerik team
 answered on 06 Feb 2009
1 answer
162 views
Hi,
I am binding my tree with the collection.

 


Now while adding an item to the tree view I want to set the header and the name of the Item node. 

Currently I am able to set the header of the item added but when I try to set the name I get an error. 

RadTreeViewItem
objRadItem;

 

 

 

 

objRadItem.Items.Add(

new RadTreeViewItem()

 

{

Header = "Harsh",

 

//Name = Convert.ToString(12)

 

 

 

});

How can I set the name of an item added?

 

Tihomir Petkov
Telerik team
 answered on 06 Feb 2009
0 answers
112 views
Is it possible to customize the xaxis labels?

We have a line series mapped from a linear (0 to 6) xaxis to a logarithmic scale.
The axis values go from 0 to 6, but we need the labels on the axis to reflect the custom scale. i.e. 0 would be the label "125 Hz", 1 would be the label "250 Hz", etc.

Is there any way to do this?

Thanks!

Please Disregard, the answer was posted in x-axis-as-a-string
John McElroy
Top achievements
Rank 1
 asked on 05 Feb 2009
4 answers
143 views
Hi,

I have two major problems - one is partial solved via setting IsLabelRotated to false.
The other is really a problem and I couldn't find anything in the documentation.

First of all -- is it possible to rotate all labels "Inside out".
Your kind of "auto rotation" is quite a bit irritateing :)

What I get - on a scale 0 - 100 with 10 is.
0, 10, 20 is "outside in" 30 to 70 is "inside out" and finally 80, 90 and 100 is again (in the oposite direction)
"outside in".
What I simply want is all inside out -- like with the radial (first) here http://www.david-black.info/bashboard/default.aspx

BUT: without rotation it is not exaxtly what I want - but at least "readable" - so not that problem.

The second thing is much more imporatant.
I display a value in the range from 0 to 255.
So it would be nice to have labels at 0, 20, 40, 60,....200, 220, 240, 255
All I found was "MajorTicks" which give me labels like 21, 43, 64... with 12 as value,
or 26, 51, 77... and so on if I keep the default of 10.

I was looking for something like "TickDistance" or "TickFrequency" -- but all I found was "MajorTicks"
which is an integer divider -- not really usefully for numbers like mine.
Of course it would work with 260 - and 13 --- but my users would be a bit irritatied if a display for an 8 bit A/D converter
shows number bigger than 255 :)

Waiting for you help

Manfred
Vlad
Telerik team
 answered on 04 Feb 2009
1 answer
116 views
Hi,
   I am using expanded event of the WPF Treeview to populate children of the parent node when the parent node is clicked.

I am binding my treeview with the collection. Collection has 2 things
a. Name
b. Commodity

On page load:

this

.RadTreeView.Items.Add(new RadTreeViewItem()

 

{

Header = "Name"

 

});

 

this.RadTreeView.Items.Add(new RadTreeViewItem()

 

{

Header = "Commodity"

 

});

Now I want to show the children under commodity on click of commodity (parent node).

 

private

void RadTreeView_Expanded(object sender, Telerik.Windows.RadRoutedEventArgs e) { 

 

 

 

 

 

RadTreeView objRadTreeView = sender as RadTreeView;

 

 

 

RadTreeViewItem objRadItem = e.OriginalSource as RadTreeViewItem;

 

 

 

CommodityCollection objCommodityCollection = this.CommodityCollection;

 

 

 

 

for (int i = 0; i < objCommodityCollection.Count; i++) {

 

 

 

 

 

 

objRadItem.Items.Add(

objCommodityCollection[i].CommodityName);

 

 

 

    }
}

 

Now the issue is when I run the application, as currently there are no child for commodity I am not getting expand icon on the left side of commodity (when the page is loaded) because of which Expanded event is not called.

How to resolve this issue?

 

 

 

Tihomir Petkov
Telerik team
 answered on 03 Feb 2009
3 answers
110 views
Hi,
   I have seen the demo of load on demand in your site but it uses Expanded event. There is event called LoadOnDemand in treeview, so my Question is how can we use this event to load child nodes on demand.

Also when I use Expanded event how will I know which parent node is been clicked .

 

private void RadTreeView_Expanded(object sender, Telerik.Windows.RadRoutedEventArgs e) {

 

 

    RadTreeView objRadTreeView = sender as RadTreeView;
}

 

Tihomir Petkov
Telerik team
 answered on 03 Feb 2009
1 answer
91 views
Hi,

since we had a lot of problem with your gauge (missing documentation as first thing) we decided to use other gauges in our silverlight applications.
We choose Dave's Silverlight Dashboard. (http://www.david-black.info/Bashboard/Default.aspx)
The reason - free including sourcecode.
AND - most important - it takes only a few line of XAML to get a nice looking gauge.
These work fine - but only for silverlight.

Your controls (I guess from reading) have the same codebase for Silverlight and WPF.
So since we would need your controls primarily for WPF I ask in this forum.

The above noted controls allowe two-way data binding.
http://www.david-black.info/Bashboard/Extras/Bidirection.aspx

Do you (in the near future) also think about implementing two way binding?

Regards

Manfred
Andrey
Telerik team
 answered on 03 Feb 2009
1 answer
95 views
I see there are descriptions in the docs/examples on how to do a programmatic initial sort. Is there a way to do a declarative initial sort?
I can't seem to get that to work.
Vlad
Telerik team
 answered on 02 Feb 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?