Telerik Forums
UI for WPF Forum
1 answer
216 views
Hi,
I am using following code to bind data to tree view. Each node in tree view is bound to business object "Node".

    <telerik:RadTreeView HorizontalAlignment="Left"
                             x:Name="uxOrgTree"
                             Width="Auto"
                             Height="Auto"
                             d:LayoutOverrides="Height"  
                             VerticalAlignment="Top"
                             Margin="0,0,0,0"
                             SelectionMode="Single"
                             IsEditable="True"
                             ItemsSource="{Binding RootNodes}" >
            <telerik:RadTreeView.Resources>
                <HierarchicalDataTemplate DataType="{x:Type Entities:Node}" ItemsSource="{Binding Children}" >
                    <StackPanel Orientation="Horizontal">
                        <TextBlock Text="{Binding Path= Name}"/>
                    </StackPanel>
                </HierarchicalDataTemplate>
            </telerik:RadTreeView.Resources>
      <telerik:RadTreeView.ItemContainerStyle>
                <Style TargetType="{x:Type telerik:RadTreeViewItem}">
                    <EventSetter Event="Edited" Handler="RadTreeViewItem_Edited" />
                 </Style>
            </telerik:RadTreeView.ItemContainerStyle>
        </telerik:RadTreeView>

Now when i press F2 or call SelectedItem.BeginEdit() programmatically,  i see datacontext which is Entities.Node in my case, in the edit area and the TextBlock defined in the HierarchicalDataTemplate is displayed next to edit area. I want to edit text in the textblock.  How can i do it?



Thanks
Sonal
Miroslav
Telerik team
 answered on 17 Dec 2008
1 answer
82 views
How well does the telerik controls for WPF support the CompositeWPF framework? http://codeplex.com/CompositeWPF

This is a must for out business as all of our WPF applications use this frameowrk...
Valentin.Stoychev
Telerik team
 answered on 15 Dec 2008
2 answers
106 views
In this code:

Customer cutomer = (Customer) (record as DataRecord).Data;  
cutomer.HasOrders = true;  

I am casting record as a Customer.  What if I don't know that my RadGrid is bound to Customer objects?  Is there a way to tell what type of objects are bound to my radgrid and then cast out each record in order to get access to the properties?

Thanks,
Scott



Milan
Telerik team
 answered on 15 Dec 2008
0 answers
61 views
Hi,
I have few questions on inline editing:

1. There is a protected variable isInEditMode, which indicates that a RadTreeViewItem is in edit mode. Is there a public property or any other way to identify whether a RadTreeViewItem  is in edit mode?
2. Pressing F2 triggers inline editing, after editing node text, if i press enter then Edited event gets fired but if i use mouse click to lose focus from editing item, then it (Edited event) does not, why?
3. I am initiate the inline editing by calling BeginEdit() but want to disable it on F2 key press, Is there any way to achieve this?

Thanks
Sonal
sonal
Top achievements
Rank 1
 asked on 15 Dec 2008
2 answers
79 views
I think an ASP.Net (like DevExpress has) would be great!  


Al
Alfred Ortega
Top achievements
Rank 2
 answered on 13 Dec 2008
4 answers
122 views
Greetings,
   Since updating to the Q3 release I've noticed an error when using arrow keys to navigate the values in a GridViewComoboxEditor. 
This can be seen using the wpf Editor demo. http://demos.telerik.com/wpf/.  I used the Country column for testing.

Replication:
1) User enters combo box cell and begins edit.
2) User presses the down arrow key to select the next value in the list. (Or Up arrow key for previous value).

Behavior:
The next item in the list is selected.
Focus is moved to the grid.
The next row in the grid is shown as selected.
Original cell remains in edit.

Expected Behavior.
The next item in the list is selected.
No focus change.
The current (or selected rows) remain selected.
No additional rows are selected.

Thanks,
  Chris
Christopher
Top achievements
Rank 1
 answered on 12 Dec 2008
3 answers
559 views

Just starting out and trying to work through some of the learning curve struggles, but this one has me stumped.

I'm trying to set a default theme for my grids inside a resource dictionary, I've tried the app.xaml file but also without success.

Here's my code:
 <ResourceDictionary
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation">
<!-- Resource dictionary entries should be defined here. -->
<Style TargetType="{x:Type telerik:RadGridView}">
<Style.BasedOn>
<Style TargetType="{x:Type telerik:RadGridView}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type telerik:RadGridView}">
<AdornerDecorator>
<telerik:Theming.Theme>
<telerik:TelerikTheme/>
</telerik:Theming.Theme>
</AdornerDecorator>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</Style.BasedOn>
</Style>
</ResourceDictionary>

 

 

I started with an edit template and stripped out everything else.  When I run my application the grid is blank, actually it is blank in the designer as well as the Properties window.  If I add a x:Key value, the grid will reappear.  So it is applying my style in some fashion.  What am I missing?

Thanks,
-Sid Meyers.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Milan
Telerik team
 answered on 12 Dec 2008
2 answers
110 views
Hi,

I have a strange error with RadTabControl.
I put a UserControl on a RadTabItem, this UserControl has a TreeView on it. I set the SelectedItemChanged event for the TreeView in the UserControl's Initalized event (i've also tried setting it in the xaml, same result). Now when I select a node the event fires two times (and the selection jumps back to the root node).

When I put this UserControl  on a normal wpf TabControl, it works as expected, the event fires once. So I think the problem is RadTabControl related.

Please help me sort this out.

thanks,
Levente
Levente Mihály
Top achievements
Rank 1
 answered on 11 Dec 2008
3 answers
193 views
How do I get the telerik controls to look like the default windows controls. I am only using the DatePicker and it has a different visual theme to the rest of my application.
Miroslav
Telerik team
 answered on 11 Dec 2008
2 answers
193 views
Hello,

I want to display a TimeSpan within a RadGauge. My thoughts were that I should use a NumericScale. However, I cannot seem to get it to work. I want to make a TimeSpan look like a digital clock in the form of hh:mm:ss.

Is there a way to do this with the RadGauge? If so, is there some sample code that demonstrates this?

Basically, I am looking to create something that looks like the clock in the Time Monitoring Tool found in the demos here: http://demos.telerik.com/wpf/
Frustrated Dev
Top achievements
Rank 1
 answered on 10 Dec 2008
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?