Telerik Forums
UI for WPF Forum
1 answer
157 views
Hi,

First of all let me tell you that We are using Q1 2009 Telerik controls.

I have a Time Picker in my window,Its showing proper 12 hour format when i select from time from Time Picker, Now When i say like radTimePicker.SelectedTime=new TimeSpan(23,05,00) it showing 24 hour format..

Another thing, its working fine with "Page" but not with  window and usercontrol.

Thanks,
Ravi Lakhani
Kaloyan
Telerik team
 answered on 22 Mar 2010
1 answer
174 views
Hi,

I have added a RadGridView and populated some data. Now i am giving an option to the user to select the column, i.e. when the user selects a column, we would make that record as selectedItem and scroll to that record.
I have used the following code :

this

 

.radGridView1.SelectedItem = radGridView1.Items[RecordNumber-1];

 

 

 

this.radGridView1.ScrollIntoView(this.radGridView1.SelectedItem);

 

 


The correct item is selected, but the scroller is still pointing to the first one.
I am attaching the screen shot for reference.  

Regards,
Prithvi
Rossen Hristov
Telerik team
 answered on 22 Mar 2010
1 answer
51 views
The RadTreeViewItem.RootItem property used to return an item's highest ancestor node (as of version 2009.1103), but in the current version (2010.0309) it always returns a reference to itself. Does anyone else see this behavior?

Here's a very simple example:
    <StackPanel> 
        <telerikNavigation:RadTreeView x:Name="tree"/> 
        <TextBlock x:Name="msg"/> 
    </StackPanel> 
 

And the code behind:
        private void Window_Loaded(object sender, RoutedEventArgs e) 
        { 
            RadTreeViewItem item1 = new RadTreeViewItem() { Header = "item1" }; 
            RadTreeViewItem item2 = new RadTreeViewItem() { Header = "item2" }; 
            RadTreeViewItem item3 = new RadTreeViewItem() { Header = "item3" }; 
 
            tree.Items.Add(item1); 
            item1.Items.Add(item2); 
            item2.Items.Add(item3); 
 
            // item3.RootItem returns item1 in 2009.1103 version (CORRECT) 
            // item3.RootItem returns item3 in 2010.0309 version (WRONG) 
            msg.Text = "item3.RootItem is " + item3.RootItem.Header.ToString(); 
 
            tree.ExpandAll(); // <-- This also doesn't seem to be working 
            item1.ExpandAll(); // <-- Neither does this 
        } 
 

Tihomir Petkov
Telerik team
 answered on 22 Mar 2010
5 answers
194 views
I am using the sample TreeView In ComboBox from this blog (http://blogs.telerik.com/valerihristov/posts/09-08-27/treeview_in_combobox_take_3_silverlight_3_wpf_and_radcontrols.aspx) and it looks really good. Now I would like to modify it a little by only allowing selection of the lowest level item from the tree view. How can I disable selection of higher level items but still allow the items to be collapsed?
Bobi
Telerik team
 answered on 22 Mar 2010
2 answers
216 views
I'm trying to use the TreeViewItem in a RadOutlookBar to provide a navigation system for my app.

I'm trying to use Commands in a MVVM pattern to launch the views...

TreeViewItem lacks a Command property.. is there a way to do this?
k f
Top achievements
Rank 1
 answered on 20 Mar 2010
5 answers
134 views
What properties have replace UseAlternateRowStyle and MultipleSelect?

Q1 2010 is not supporting these and I see nothing in the release notes talking about this and I'm not seeing anything in the intellisense drop downs for a replacement.
Beckie
Top achievements
Rank 1
 answered on 20 Mar 2010
2 answers
117 views
All it shows is an empty rectangle for which one cannot change style or template.
In VS 2010 RC designer, however, it displays correctly.
What can be done to make Expression Blend work with NumericUpDown?
Thanks
Nick Polyak
Top achievements
Rank 1
 answered on 19 Mar 2010
3 answers
64 views
Hi,
   I am using Grid view and have a column defined as below.
  
<telerik:GridViewDataColumn UniqueName="SiteName" Header="SiteName" DataMemberBinding="{Binding SiteName, Mode=TwoWay}"  Width="120" > 
                            <telerik:GridViewDataColumn.CellTemplate> 
                                <DataTemplate> 
                                    <TextBlock Text="{Binding SiteName}" /> 
                                </DataTemplate> 
                            </telerik:GridViewDataColumn.CellTemplate> 
                            <telerik:GridViewDataColumn.CellEditTemplate> 
                                <DataTemplate> 
                                    <TextBox Text="{Binding SiteName, Mode=TwoWay}" MaxLength="20" Loaded="Editor_Loaded" /> 
                                </DataTemplate> 
                            </telerik:GridViewDataColumn.CellEditTemplate> 
                        </telerik:GridViewDataColumn> 
and in code behind I have
private void Editor_Loaded(object sender, RoutedEventArgs e)  
        {  
            Control ctrl = sender as Control;  
            if (ctrl != null)  
            {  
                ctrl.Focus();  
            }  
        } 

When I am in edit mode, I get a textbox. If I do tab the value is saved. If I click anywhere else, the value is not saved. Also, if I am in the last cell, hitting tab goes outside the control and value is not saved. I have to hit shift+tab to save the content. This dramatically alters the user's behaviour.

Is there a way to save the edited value on lost focus? I tried UpdateSourceTrigger=LostFocus too. No luck.
<TextBox Text="{Binding ProcedureName, Mode=TwoWay, UpdateSourceTrigger=LostFocus}" MaxLength="20" Loaded="Editor_Loaded" /> 

Any help would be highly appreciated.
Pooran
Nedyalko Nikolov
Telerik team
 answered on 19 Mar 2010
3 answers
180 views
WPF RadWindow (Q1 2010) is never showing a modal background.

Here is simple example xaml:
Window x:Class="Window1" 
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
        xmlns:telerikNavigation="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation" 
        Title="Window1" Height="400" Width="600" WindowStartupLocation="CenterOwner"
    <Grid> 
        <telerikNavigation:RadWindow ModalBackground="Red" 
                           Name="testObj" Height="100" Width="200" CanClose="True" 
                           WindowStartupLocation="CenterOwner" Background="Beige"/> 
    </Grid> 
</Window> 

Here is the code:
Class Window1  
    Public Sub x() Handles Me.MouseLeftButtonDown 
        testObj.ShowDialog() 
    End Sub 
End Class 

Image is attached.

Any idea what's up?

Thanks
Rosi
Telerik team
 answered on 19 Mar 2010
3 answers
197 views
When I use the WindowClosedEventArgs I need to be able to pass my own variable all the way through so i can use the variable on close.  Can we get an "arg" parameter or something to do this? ATM it looks like i'll have to make a bunch of member variables to hold the state.
Miroslav Nedyalkov
Telerik team
 answered on 19 Mar 2010
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?