Telerik Forums
UI for WPF Forum
4 answers
221 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
164 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
288 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
218 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
111 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
132 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
308 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
108 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
1 answer
103 views
Hi There,

1. I dont have XAML for columns so that I want to set "IsFilterable" programatically, 

2. I have two checkbox columns when checking the check box of first checkbox column automatically the second checkbox column also checked 

can you please guide me how i can do this?


Thanks in advance,

Regards,
Raj. 
Dimitrina
Telerik team
 answered on 09 Oct 2014
5 answers
142 views
Executing this code throw an exeption :

<telerik:RadCartesianChart >
 
    <telerik:RadCartesianChart.HorizontalAxis>
        <telerik:CategoricalAxis GapLength="0" />
    </telerik:RadCartesianChart.HorizontalAxis>
 
    <telerik:RadCartesianChart.VerticalAxis>
        <telerik:LinearAxis />
    </telerik:RadCartesianChart.VerticalAxis>
 
    <telerik:RadCartesianChart.Grid>
        <telerik:CartesianChartGrid MajorLinesVisibility="Y" />
    </telerik:RadCartesianChart.Grid>
 
    <telerik:RadCartesianChart.SelectionPalette>
        <telerik:ChartPalette>
            <telerik:ChartPalette.GlobalEntries>
                <telerik:PaletteEntry Fill="Orange" />
            </telerik:ChartPalette.GlobalEntries>
        </telerik:ChartPalette>
    </telerik:RadCartesianChart.SelectionPalette>
 
    <telerik:RadCartesianChart.Behaviors>
        <telerik:ChartSelectionBehavior />
    </telerik:RadCartesianChart.Behaviors>
 
    <telerik:RangeBarSeries  ItemsSource="{Binding Items}"
                             LowBinding="Min"
                             HighBinding="Max"
                             CategoryBinding="X"
                             CombineMode="Cluster" />
 
 
    <telerik:RangeBarSeries ItemsSource="{Binding Items2}"
                            LowBinding="Min"
                            HighBinding="Max"
                            CategoryBinding="X"
                            CombineMode="Cluster"
                            Visibility="Collapsed" />
 
</telerik:RadCartesianChart>

If Visibility is sets to Hidden everithing works as expected.
Setting Opacity to 0 doesn't work (the bar is visible), it's normal or not ?

The stack trace is :
à System.Windows.Media.VisualTreeHelper.HitTest(Visual reference, HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, HitTestParameters hitTestParameters)
 Ã  Telerik.Windows.Controls.VisualTreeHelperExtensions.GetElementsInHostCoordinates[T](UIElement subtree, HitTestParameters hitTestParams) dans c:\TB\102\WPF_Scrum\Release_WPF\Sources\Development\Core\Controls\Common\VisualTreeHelperExtensions.cs:ligne 141
 Ã  Telerik.Windows.Controls.VisualTreeHelperExtensions.GetElementsInHostCoordinates[T](UIElement subtree, Rect localIntersectingRect) dans c:\TB\102\WPF_Scrum\Release_WPF\Sources\Development\Core\Controls\Common\VisualTreeHelperExtensions.cs:ligne 134
 Ã  Telerik.Windows.Controls.ChartView.ChartSeries.<HitTestElementsCore>d__c.MoveNext() dans c:\TB\102\WPF_Scrum\Release_WPF\Sources\Development\Controls\Chart\Visualization\Common\ChartSeries.Behavior.cs:ligne 158
 Ã  Telerik.Windows.Controls.ChartView.ChartSeries.<HitTestDataPointsCore>d__14.MoveNext() dans c:\TB\102\WPF_Scrum\Release_WPF\Sources\Development\Controls\Chart\Visualization\Common\ChartSeries.Behavior.cs:ligne 176
 Ã  Telerik.Windows.Controls.ChartView.ChartSeries.<HitTestDataPoints>d__0.MoveNext() dans c:\TB\102\WPF_Scrum\Release_WPF\Sources\Development\Controls\Chart\Visualization\Common\ChartSeries.Behavior.cs:ligne 122
 Ã  Telerik.Windows.Controls.ChartView.ChartSelectionBehavior.UpdateDataPointSelection(ChartSeries series) dans c:\TB\102\WPF_Scrum\Release_WPF\Sources\Development\Controls\Chart\Visualization\Behaviors\ChartSelectionBehavior.Branch.cs:ligne 346
 Ã  Telerik.Windows.Controls.ChartView.ChartSelectionBehavior.UpdateSelection() dans c:\TB\102\WPF_Scrum\Release_WPF\Sources\Development\Controls\Chart\Visualization\Behaviors\ChartSelectionBehavior.Branch.cs:ligne 267
 Ã  Telerik.Windows.Controls.ChartView.ChartSelectionBehavior.DoSelection(Point location) dans c:\TB\102\WPF_Scrum\Release_WPF\Sources\Development\Controls\Chart\Visualization\Behaviors\ChartSelectionBehavior.Branch.cs:ligne 221
 Ã  Telerik.Windows.Controls.ChartView.ChartSelectionBehavior.AdornerContainerMouseLeftButtonUp(Object sender, MouseButtonEventArgs e) dans c:\TB\102\WPF_Scrum\Release_WPF\Sources\Development\Controls\Chart\Visualization\Behaviors\ChartSelectionBehavior.Branch.cs:ligne 210
 Ã  System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
 Ã  System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
 Ã  System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
 Ã  System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
 Ã  System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
 Ã  System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)
 Ã  System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
 Ã  System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
 Ã  System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
 Ã  System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
 Ã  System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
 Ã  System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
 Ã  System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
 Ã  System.Windows.Input.InputManager.ProcessStagingArea()
 Ã  System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
 Ã  System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
 Ã  System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
 Ã  System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
 Ã  System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
 Ã  MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
 Ã  MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
 Ã  System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
 Ã  MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
 Ã  System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
 Ã  MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
 Ã  MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
 Ã  System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
 Ã  System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
 Ã  System.Windows.Threading.Dispatcher.Run()
 Ã  System.Windows.Application.RunDispatcher(Object ignore)
 Ã  System.Windows.Application.RunInternal(Window window)
 Ã  System.Windows.Application.Run(Window window)
 Ã  System.Windows.Application.Run()
 Ã  TelerikChartViewSelection.App.Main() dans E:\Documents\Visual Studio 2010\Projects\TelerikChartViewSelection\obj\x86\Debug\App.g.cs:ligne 0
 Ã  System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
 Ã  System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
 Ã  Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
 Ã  System.Threading.ThreadHelper.ThreadStart_Context(Object state)
 Ã  System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
 Ã  System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
 Ã  System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
 Ã  System.Threading.ThreadHelper.ThreadStart()





Petar Marchev
Telerik team
 answered on 09 Oct 2014
Narrow your results
Selected tags
Tags
GridView
General Discussions
Chart
RichTextBox
Docking
ScheduleView
ChartView
TreeView
Diagram
Map
ComboBox
TreeListView
Window
RibbonView and RibbonWindow
PropertyGrid
DragAndDrop
TabControl
TileView
Carousel
DataForm
PDFViewer
MaskedInput (Numeric, DateTime, Text, Currency)
AutoCompleteBox
DatePicker
Buttons
ListBox
GanttView
PivotGrid
Spreadsheet
Gauges
NumericUpDown
PanelBar
DateTimePicker
DataFilter
Menu
ContextMenu
TimeLine
Calendar
Installer and Visual Studio Extensions
ImageEditor
BusyIndicator
Expander
Slider
TileList
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
LayoutControl
ProgressBar
Sparkline
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
Licensing
WebCam
CardView
DataBar
FilePathPicker
PasswordBox
SplashScreen
Callout
Rating
Accessibility
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?