Telerik Forums
UI for WPF Forum
2 answers
163 views
Hi there,

I'm using the RadCarousel via an ElementHost control in a VB.NET application.  The items I am adding to the carousel are inherited from Carouseltem and expose a few extra properties for convenience.

Anyway, the items display great, but one thing I can't get to happen is to monitor any events for the items, they just don't seem to get raised.  I would like to know when an item has been clicked so I can respond to the event but nothing is currently working.

Alternatively I would like to know when an items IsCurrent flag is raised as this should provide the same functionality.

Any ideas how I latch onto these events?
Rosi
Telerik team
 answered on 18 Dec 2008
9 answers
399 views
In the Q2 release of the WPF grid one could do something like grid.CurrentRecord.Fields[0] to access an individual cell.

In the Q3 release I have been unable to find any means of accomplishing the same task.  What am I missing?

I am attempting to re-implement the tab handling I had created for the Q2 release of the wpf grid.  The Q3 grid made a nice leap forward adding some tab handling, but it doesn't match our desired behaviors.

Thanks,
  Chris
Hristo Deshev
Telerik team
 answered on 17 Dec 2008
1 answer
220 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
85 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
111 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
70 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
85 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
131 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
570 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
115 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?