Telerik Forums
UI for WPF Forum
2 answers
79 views
How do I edit a row when the row details are expanded? I need this functionality, but I'm not sure how to get it to work.

Thanks.
Rayne
Top achievements
Rank 1
 answered on 25 Jan 2011
2 answers
87 views
I'm a neophyte Telerik RadControls user, having only recently gotten a subscription.  One of the primary reasons why we got these controls is because of our need for a date picker control on our WPF apps.  I wrote my own date picker control, which is OK, but it lacks a lot to be desired.  I believe that Telerik's controls will address my control's shortcomings.

Now to explain what it is that I'm trying to accomplish.  My new WPF app is a replacement for an older VB6 app, that is used by our front desk personnel.  They need to enter a lot of data, some of it of type date.  They really hate having to type the "/", for example, when enter dates.  For example, when entering today's date, they're used to typing it into the old VB6 app and my new WPF app (with my custom date picker control) like this: "01202011"  However, when type it in, I've got a mask in place which already has the "/" in there, so it will look like this: "01/20/2011".

So, I wanted to test out Telerik's RadDatePicker control and see how it works.  I quickly got up VS 2010 and created a new WPF app, and placed a RadDatePicker control there with a TextBox after it, so that I could tab off of the date picker control and see what happens. Telerik's RadDatePicker control displays the date it thinks your entering in a tooltip (I guess, nice feature, BTW), and I can see it's not getting the date correct.  For example, when I start entering numbers and the control tells me what it thinks I'm enter in the tooltip, this is what I get (what I enter is on the left, what it think the date is, is on the right):
  • 0 - 1/20/2000
  • 01 - 1/1/2011
  • 012 - 1/12/2011
  • 0120 - 1/20/0120
  • 01202 - 1/20/1202
  • 012020 - Error

I don't get why it's defining the date to be the way it does, and certainly my users won't like it at all.  My guess is that I've got to configure something else to make it work the way my users want it to, only thing is I don't know how.  What am I doing wrong, or leaving out?

Rod
Top achievements
Rank 1
 answered on 25 Jan 2011
3 answers
537 views
I am having two issues with the below user control view that is mostly a RadGridView. The ItemsSource is a CollectionViewSource View. The view is based on an ObservableCollection and filtering is utilized. Everything seems to work for the most part if I host the user control in a regular Microsoft TabControl. If I use a RadTabControl, each tab does not seem to respect the CollectionViewSource.View that it is bound to so on the first tab I might get the data to be expected on the last or vice versa.

EDIT: Just to be clear, each tab item is bound to a different instance of a CollectionViewSource over the same ObservableCollection.

Second, whether I host the control in a TabControl or RadTabControl, if I try to use the UI to group by a column on one tab, the column is grouped on all tabs. If I ungroup a tab, I need to remove the group manually from the other tabs before things return to normal.

Any suggestions for alternatives that might work better together? Why am i getting different results hosting the control in TabControl vs RadTabControl? I tried the telerik QueryableView a bit, but it seems like this is built more for LinqToSQL or ORM.

<

 

 

UserControl x:Class="XXXXXXXXXXX"
xmlns=http://schemas.microsoft.com/winfx/2006/xaml/presentation
xmlns:x=http://schemas.microsoft.com/winfx/2006/xaml
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
mc:Ignorable="d"
d:DesignHeight="416" d:DesignWidth="736" xmlns:telerik=http://schemas.telerik.com/2008/xaml/presentation
xmlns:Behaviors="XXXXXXXXXXX">
<UserControl.Resources>
<Style x:Key="RowStyle" TargetType="telerik:GridViewRow" >
<Setter Property="FontFamily" Value="Segoe UI" />
<Setter Property="FontSize" Value="11" />
</Style>
<Style x:Key="HeaderStyle" TargetType="telerik:GridViewHeaderRow">
<Setter Property="FontFamily" Value="Segoe UI" />
<Setter Property="FontSize" Value="11" />
<Setter Property="FontWeight" Value="Bold" />
</Style>
</UserControl.Resources>
<Grid>
<Grid.RowDefinitions >
<RowDefinition Height="*"/>
<RowDefinition Height="40"/>
</Grid.RowDefinitions>
<telerik:RadGridView Name="gridv" Grid.Row="0" ItemsSource="{Binding Path=RecordModels.View}" AutoGenerateColumns="False" CanUserResizeColumns="False"
IsFilteringAllowed="False" IsSynchronizedWithCurrentItem="True" Behaviors:MouseDoubleClickEventBehavior.MouseDoubleClickEvent="{Binding DoubleClickEvent}"
RowStyle="{StaticResource RowStyle}" HeaderRowStyle="{StaticResource HeaderStyle}" SelectionUnit="FullRow">
<telerik:RadGridView.Columns>
<telerik:GridViewImageColumn Width="22" Header="" DataMemberBinding="{Binding IsValid}" />
<telerik:GridViewDataColumn Header="MRN" DataMemberBinding="{Binding MRN}" Width="*" />
<telerik:GridViewDataColumn Header="DOS" DataMemberBinding="{Binding DOS}" Width="*" />
<telerik:GridViewDataColumn Header="Description" DataMemberBinding="{Binding Description}" Width="*" />
<telerik:GridViewDataColumn Header="Provider" DataMemberBinding="{Binding ProviderName}" Width="*" />
<telerik:GridViewDataColumn Header="Start" DataMemberBinding="{Binding StartTime}" Width="*" />
<telerik:GridViewDataColumn Header="Stop" DataMemberBinding="{Binding StopTime}" Width="*" />
<telerik:GridViewDataColumn Header="Contents" DataMemberBinding="{Binding Contents}" Width="*" />
<telerik:GridViewColumn Header="" Width="20">
<telerik:GridViewColumn.CellTemplate>
<DataTemplate>
<telerik:RadButton Content="..." />
</DataTemplate>
</telerik:GridViewColumn.CellTemplate>
</telerik:GridViewColumn>
</telerik:RadGridView.Columns>
</telerik:RadGridView>
<StackPanel Grid.Row="1">
<TextBlock Text="{Binding RecordListSummary}" HorizontalAlignment="Left" Margin="5" />
<TextBlock Text="{Binding CurrentItem.MRN,ElementName=gridv}" />
</StackPanel>
</Grid>
</
UserControl>

 

 

 

 

 

Maya
Telerik team
 answered on 25 Jan 2011
2 answers
143 views
Hello, i have an application, with docking scenario created by code.

I need to khow how prevent some RadPanes show compass, when drag over some RaqdSplitcontainers or RadPanesgroup.

I read:
http://www.telerik.com/help/wpf/raddocking-how-to-implement-conditional-docking.html

But this solution is for all docking elements, i need a conditional docking for each item :P, for example a RadPane never can be docked in the same splitcontainer of my RadPaneToolBar

Thanks in advance.
Fernando
Top achievements
Rank 1
 answered on 25 Jan 2011
1 answer
61 views
Hi,
I just noticed that the LayoutChangeStarted event is not fired when I select a different RadPane if the RadPanes have CanFloat set to false.  As soon as I set CanFloat to true, selecting between the tabbed panes causes the event to be fired.  Is this by design?  Is there another way to track the current selected pane?

Thanks.
Miroslav Nedyalkov
Telerik team
 answered on 25 Jan 2011
3 answers
201 views

Hello i have a problem, trying to edit a oRadTreeViewItem

All tree is generated by code (not binding)

RadTreeViewItem oRadTreeViewItem = new RadTreeViewItem(); 
oRadTreeViewItem.Header = "Name"; 
oRadTreeViewItem.IsEditable = true; 
oRadTreeViewItem.PreviewEditStarted += radTreeView_PreviewEditStarted; 
oRadTreeViewItem.Edited += DataViewExplorerTree_Edited;  
oRadTreeViewItem.EditStarted += radTreeView_EditStarted; 
DataViewExplorerTree.Items.Add(oRadTreeViewItem);

I use a context menu to edit the name of tree node using GetItemByPath to find the node

 

 


 


RadTreeViewItem oRadTreeViewItem = DataViewExplorerTree.GetItemByPath("Path of the item");


The item put's in edit mode but loss the header content. it's turn in Edit mode with empty content.

I try to catch radTreeView_EditStarted and radTreeView_PreviewEditStarted in order to rewrite the original header text. But only DataViewExplorerTree_Edited is fired when edit ends. Also trying to set focus to the edit box, but without success (tree is inside a dockpane)

private void DataViewExplorerTree_Edited(object sender, Telerik.Windows.Controls.RadTreeViewItemEditedEventArgs e)
        {
            RadTreeViewItem targetItem = e.Source as RadTreeViewItem;
             
           // (e.Source as RadTreeViewItem).IsInEditMode = false;
           //(e.Source as RadTreeViewItem).Background = new SolidColorBrush(Colors.Red);
        }
  
        private void radTreeView_PreviewEditStarted(object sender, Telerik.Windows.Controls.RadTreeViewItemEditedEventArgs e)
        {
            RadTreeViewItem targetItem = e.Source as RadTreeViewItem;
        }
  
        private void radTreeView_EditStarted(object sender, Telerik.Windows.Controls.RadTreeViewItemEditedEventArgs e)
        {
            RadTreeViewItem targetItem = e.Source as RadTreeViewItem;
        }

I try to use

oRadTreeViewItem.IsInEditMode = true;
  
or
       
 oRadTreeViewItem.BeginEdit();  (ALWAYS return false)

to start to edit node only first runs, the second always return me false.

Any ideas?

Thanks in advance.

Fernando
Top achievements
Rank 1
 answered on 25 Jan 2011
1 answer
221 views

Hi,

I have have a 2 level Treeview say country and its state. I dont want to highlight the parent node that is country on mouseover.Please let me know how to remove that default highlighting

-Regards,
Prajin
Petar Mladenov
Telerik team
 answered on 25 Jan 2011
6 answers
775 views
I'm not getting any kind of resize grip in the bottom right corner of the window as the ResizeMode property description says:

ResizeMode.CanresizeWithGrip - "A window can be resized.  The Minimize and Maximize buttons are both shown and enabled.  A resize-grip appears in the bottom right corner of the window."

No such grip appears anywhere.

Here are my RadWindow settings:

                window.Content = myContent;
                window.Header = "myContent Header";
                window.CanMove = true;
                window.ResizeMode = ResizeMode.CanResizeWithGrip;
                window.CanClose = false;
                window.WindowStartupLocation = WindowStartupLocation.CenterScreen;
                window.Width = 400;
                window.Height = 300;
                window.Show();

My Telerik.Windows.Controls dll version is: 2010.1.603.35

Am I doing something wrong?
Boyan
Telerik team
 answered on 25 Jan 2011
1 answer
123 views
Hello,

I wonder if there is a possibility to get all objects of an information layer which are contained within a specified polygon (geo coordinates).
There is a method "InformationLayer.GetElementsInRectangle" wich is almost what we need.

best regards
Andrey
Telerik team
 answered on 25 Jan 2011
3 answers
325 views
Hi,

I'm trying to set a template and the Expression_Dark theme to a tileviewitem, but I don't understand how to set both of them. I thought setting the template theme and then set this template to the tileviewitem, but I guess I don't set the theme to the template correctly. What is the right way of doing this?
I'll appreciate if you could provide me the needed lines of code.

Thank you
Zarko
Telerik team
 answered on 24 Jan 2011
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?