Telerik Forums
UI for WPF Forum
1 answer
294 views
Hi

I would like to move a border-less RadWindow, how may I do that?

Using a Window control i was doing this - 

private void Window_MouseDown(object sender, MouseButtonEventArgs e)
{
   if (e.ChangedButton == MouseButton.Left)
       this.DragMove();
}



Thanks.
Kalin
Telerik team
 answered on 10 Oct 2014
1 answer
101 views
Hello,

I would like that the users would be able to add filters while the grid loads asynchronously (loads a lot of data for ~10 seconds). Any ideas on how to make this possible as while the grid loads the filter-combobox is empty.
Dimitrina
Telerik team
 answered on 10 Oct 2014
4 answers
191 views
Hello,

I have a GridView in the DataTemplate of a TreeListView. Sometimes (quite often) the SelectedItem event of the GridView is not fired. I can see that the items are visually correctly selected but sometimes only the SelectedItem event of the TreeListView is fired (checked by an output within both SelectedItem properties).

Best Regards
Raul


<UserControl x:Class="PrimeTime.Views.Employees.EmployeeWorkdayErrorSelectionView"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:scm="clr-namespace:System.ComponentModel;assembly=WindowsBase"
             xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" 
             xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
             mc:Ignorable="d" Height="504" Width="400">
 
    <UserControl.Resources>
        <ResourceDictionary>
            <DataTemplate x:Key="ErrorWorkdaysTemplate">
                <telerik:RadGridView ItemsSource="{Binding WorkdayErrors}" EnableRowVirtualization="False" IsReadOnly="True" SelectionMode="Single"
                                     AutoGenerateColumns="False" ShowGroupPanel="False" ShowColumnHeaders="False"
                                     ScrollViewer.HorizontalScrollBarVisibility="Disabled"
                                     CanUserInsertRows="False" CanUserDeleteRows="False" CanUserSortColumns="False"
                                     IsSynchronizedWithCurrentItem="True"  IsFilteringAllowed="False"
                                     SelectedItem="{Binding SelectedWorkdayError, Mode=TwoWay}">
 
                    <telerik:RadGridView.Columns>
                        <telerik:GridViewDataColumn DataMemberBinding="{Binding WorkdayDate}" Header="Day" Width="70"/>
                        <telerik:GridViewDataColumn DataMemberBinding="{Binding ErrorMessage}" Header="Error" Width="Auto"/>
                    </telerik:RadGridView.Columns>
                </telerik:RadGridView>
            </DataTemplate>
        </ResourceDictionary>
    </UserControl.Resources>
 
    <telerik:RadTreeListView x:Name="tlv_EmployeeSelection" EnableRowVirtualization="False" ItemsSource="{Binding Childs}"
                             AutoGenerateColumns="False" AutoExpandItems="True" IsReadOnly="True"
                             RowDetailsVisibilityMode="VisibleWhenSelected" SelectionMode="Single"
                             IsFilteringAllowed="False" CanUserDeleteRows="False" CanUserInsertRows="False"
                             RowDetailsTemplate="{StaticResource ErrorWorkdaysTemplate}"
                             SelectedItem="{Binding SelectedItem, Mode=TwoWay}">
 
        <telerik:RadTreeListView.ChildTableDefinitions>
            <telerik:TreeListViewTableDefinition ItemsSource="{Binding Childs}"/>
        </telerik:RadTreeListView.ChildTableDefinitions>
 
        <telerik:RadTreeListView.Columns>
            <telerik:GridViewDataColumn UniqueName="Name" DataMemberBinding="{Binding Name}" Header="Name" Width="*"/>
            <telerik:GridViewDataColumn DataMemberBinding="{Binding PersonnelNumber}" Header="Number" Width="70"/>
        </telerik:RadTreeListView.Columns>
    </telerik:RadTreeListView>
</UserControl>
Yoan
Telerik team
 answered on 10 Oct 2014
4 answers
141 views
Hey, I'd like to create a combobox which contains filtering presets and then apply the filterdescriptors upon selection change using the MVVM-pattern. I'm able to add default filter descriptors but unable to get the filters updated afterwards programmatically from view-model. Everything is wired as TwoWay and are raising PropertyChanged and is set as UpdateSourceTriggers.

Preset-collection for the combobox:
private ObservableCollection<KeyValuePair<string, ObservableCollection<FilterDescriptor>>> filterPresets;
public ObservableCollection<KeyValuePair<string, ObservableCollection<FilterDescriptor>>> FilterPresets
{ ... }

Selected item of the Preset-combobox which should update the actual filtering collection upon change:
private KeyValuePair<string, ObservableCollection<FilterDescriptor>> selectedPreset;
public KeyValuePair<string, ObservableCollection<FilterDescriptor>> SelectedPreset
{
    get { return selectedPreset; }
    set
    {
        if (selectedPreset.Key != value.Key)
        {
            selectedPreset = value;
            FilterDescriptors = selectedPreset.Value;
            OnPropertyChanged();
        }
    }
}

Actual filter descriptor collection bound to the datafilter using FilterDescriptorBindingBehavior.FilterDescriptors:
private ObservableCollection<FilterDescriptor> filterDescriptors;
public ObservableCollection<FilterDescriptor> FilterDescriptors
{ ... }


Looking forward for your reply,
LM IT



















LM IT
Top achievements
Rank 2
 answered on 10 Oct 2014
5 answers
253 views
Hi,

I'm using VS2008 and Telerik V2010.3.1314.35 and I have a problem when I try to maximize my RadWindow. When I maximized my RadWidnow, the RadWindow popup in the middle of my screen and the half of my RadWindow is out of my screen on the right side.

In other words, when I maximize my RadWindow, my RadWindow don't do what he have to do, take the all area of my screen.

Thank's
Kalin
Telerik team
 answered on 09 Oct 2014
1 answer
183 views
Hi,

I would like to know if it's possible to detect within which control (RadWatermarkTextBox or popup) the ENTER key was pressed???

Thank's
Alain
Kalin
Telerik team
 answered on 09 Oct 2014
4 answers
92 views
Hello

I'm currently testing Telerik for WPF and I'm having some issues / possible bugs. Hope this forum is ok to post it.

1. RadGridView in DataTemplate
I have a control with a RadTreeListView which contains a RadGridView in its RowDetailsTemplate. Everything works good, but as soon as the GridView has 143 or more rows the application becomes stuck / freezes. Each row has 2 columns with small data, so memory should not be the issue.


2. Several Issues with RadTimePicker
A) When entering 0215 (manually) it will become 21:05 and not the expected 02:15. This is a real problem for me because the application will have a lot of time values
B) If the Timepicker is initialized with null and I select from the dropdown area 00:00 it will not be accepted and the field remains empty


3. RadMaskedNumericInput with Nullable int 
The null value will not be accepted. Instead e.g. a 1 will be displayed. I have seen that this issue was reported some years ago, but the bug seems still to be existent. Using a double is a workaround, but I would feel better if the bug would have been fixed after being reported for so much time.


I also have a question:
Im using a lot of RowDetailsTemplate. Some rows have no details, so that the DataTemplate is not required. Nevertheless there are some pixels visible on empty DataTemplates. An example is a RadTreeListView with 2 levels. Only the second level has Details, but the DataTemplate (at least some pixels) is also displayed on the first level of the hierarchy. Is there a way to prevent it?


Greetings
Raul
Dimitrina
Telerik team
 answered on 09 Oct 2014
1 answer
113 views
When I add custom calculated fields to the Field list it creates a folder called "Calculated Fields" in the field list. Is there anyway I can change this caption to something other than this and still retain the fact that they are calculated fields?. I only want to change the caption of the Folder in the field list from "Calculated Fields" to "Measures - calculated fields"

Thank you
Kalin
Telerik team
 answered on 09 Oct 2014
3 answers
290 views
Hello All,

I am struggling with one issue related to the click once and to open a new tab in the application when already application is opened.

Briefly My application can copy the click once link which opens from any of the client machines, if already the application is opened it needs to be opened as new tab in WPF windows application.

For clear understanding, if we take Internet explorer or google chrome when we do Ctrl + Click on any urls it opens the new tab in the already opened browser but not a new window like wise I would like to have same feature in the application ,
Is this feasible in windows application ? if yes how can we implement this?

Thanks and Regards,
Ruth Ramya
Pavel R. Pavlov
Telerik team
 answered on 09 Oct 2014
1 answer
95 views
I'm having a bit of trouble with this control - I'm creating a class based on it to enable specific method of loading items source, and its ok.
But when I type something the popup is shown and first of filtered items is highlighted. The problem is, that this item cannot be selected by left click, although right mouse button is selecting working. If I left click on another item - it will be selected, only the first one isn't working.

So, how can I change template or something, to force control to react to left mouse click on highlighted item?
Kalin
Telerik team
 answered on 09 Oct 2014
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?