Telerik Forums
UI for WPF Forum
4 answers
97 views
Hi

I bound a RadPanelBar to a object structure like this:
- MyObject1.1 
    - MyObject2.1 
    - MyObject2.2 
- MyObject1.2 
- MyObject1.3 
    - MyObject2.3 
    - MyObject2.4 

it seems now, that empty PanelBarItems does not expand out of the box. so if I click on the header of the item "MyObject1.2" it does not expand nor the currently expanded one does collapse. I already figured out that i can catch the event "Selected" of the RadPanelBar to expand the item by myself:
private void RadPanelBar_Selected(object sender, RadRoutedEventArgs e) { 
    RadPanelBarItem selItem = e.OriginalSource as RadPanelBarItem; 
 
    if (selItem.Items.Count == 0) 
        selItem.IsExpanded = true

this works quite well, except that I am not able to collapse the last selected item. So my questions are:
- is there a better way to expand empty items?
- how can i collapse the items manually?

thanks
Simon
Simon Stahl
Top achievements
Rank 1
 answered on 20 Jul 2009
3 answers
67 views
Do the WPF controls support UI Automation? I see mention of it for Silverlight, but not WPF. Thanks.

Greg
Greg
Top achievements
Rank 1
 answered on 20 Jul 2009
1 answer
107 views


do you have any samples of wpf charts where the data comes from a sql data using linq ?

thanks,

martin
Vladimir Milev
Telerik team
 answered on 20 Jul 2009
2 answers
111 views
Hi,

I am trying to upgrade my project to 2009 Q2.

I removed all the refernces to the previous version 2009 Q1 and removed the toolbar items.
I them added the Q2 binaries but when I compile I get the following error:

Error 3 Unknown build error, 'Cannot resolve dependency to assembly 'System.Windows, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' because it has not been preloaded. When using the ReflectionOnly APIs, dependent assemblies must be pre-loaded or loaded on demand through the ReflectionOnlyAssemblyResolve event.'  CoachTech

What am I doing wrong?

Cheers,
Kevin. 
Kevin
Top achievements
Rank 1
 answered on 20 Jul 2009
3 answers
93 views
I have a situation where I have a RadDatePicker situated above another control.  I click on the Calendar button to display the Calendar, select a date, and then the MouseUp event is triggered on the control that is under the Calendar.  This is because the Calendar disappears on MouseDown rather than MouseUp.  Is there a way to work around this issue?  If not, can this be considered a feature request?
Kaloyan
Telerik team
 answered on 20 Jul 2009
4 answers
127 views
Hi,

If I try to select an item programmatically, and that item is in a collapsed group, an IndexOutOfRange exception is thrown. Is there any other way of avoiding this besides expanding all groups?

Thanks in advance!
JDB
Top achievements
Rank 1
 answered on 20 Jul 2009
1 answer
219 views
Would the TreeView be a good control to display and edit a hierarchical bulleted list like what MS Word does?
See picture
http://www.java2s.com/Tutorial/Microsoft-Office-Word-2007Images/Create_Multilevel_Bulleted_Or_Numbered_List___Press_Enter.PNG

From a display side, hiding the treeview lines and adding bullet points to every node should solve it. Is there a way to let editing happen without having to press the F2 key.

Thanks,
Ash
Valentin.Stoychev
Telerik team
 answered on 20 Jul 2009
2 answers
42 views
I scraped the RadGridView style in expression blend, and then massaged it so that it had a titlebar that itself contains a toolbar.  In order to set the properties for those new elements, I derived a new class from RadGridView and added attached properties.  All of this seems to work well.

HOWEVER

When we instantiate the custom class, our existing databinding doesn't work.  I'm not aware of anythign I might have done to break this, but at the same time, I don't know exactly how to go about determining what's wrong.  I'm in the process of creating a sample project so you can see what I'm doing (in case you need it).

John Simmons
Top achievements
Rank 1
 answered on 17 Jul 2009
1 answer
135 views
I have a RadGridView in a hierarchical view.

Double-clicking on a child row and checking the RadGridViw.SelectedItem I get the parent row. Any idea how I can get the selected child item not the parent?

Thanks,
Mihai.
Milan
Telerik team
 answered on 17 Jul 2009
4 answers
361 views
I need to be able to tell a GridViewRowItem to reload itself from its DataContext, but the functionality doesn't seem to be available in the current release.  To work around this, I use this logic:

object context = theRow.DataContext; 
theRow.DataContext = null
theRow.DataContext = context; 

This works fine for the standard GridViewRowItem.  Unfortunately, my grid also has a hierarchy, and so it contains GridViewExpandableRow items as well - I assumed that the same logic would cause the rows to refresh themselves, however it doesn't!

Ideally I just need to be able to tell a row to refresh itself without having to reload the entire grid.  The automatic databinding doesn't work perfectly for this, which is why I just need to tell the row to refresh itself.

Any ideas on how I can achieve what I'm attempting here?  I'm not sure whether this is a bug within the GridViewExpandableRow.
James
Top achievements
Rank 1
 answered on 17 Jul 2009
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?