Telerik Forums
UI for WPF Forum
3 answers
1.3K+ views

I am using RadMaskedNumericInput, I have set the max and min and i have allow null to true, I want the users to be able to delete everything in the text box. But the first time user hit backspace it puts a zero in the text box, if i hit backspace again it will remove the zero.

is there i way to prevent the first zero.

And the interesting thing is that the binding value is set to null the first time i hit backspace, so the UI is 0 but the binding value is null, then when i hit backspace again to get rid of 0 the setter is never called.

Thanks

Vikas Mittal

 

<telerik:RadMaskedNumericInput Mask="" MaskedInput:MaskedInputExtensions.Maximum="99999999"
            TextMode="MaskedText" MaskedInput:MaskedInputExtensions.AllowNull="True" 
            Width="100" IsClearButtonVisible="False" Height="30" HorizontalAlignment="Center"
            MaskedInput:MaskedInputExtensions.Minimum="1"
            Style="{StaticResource SvtRadMaskedNumericInputStyle}" Value="{Binding Frequency, NotifyOnValidationError=True}"/>

Dinko | Tech Support Engineer
Telerik team
 answered on 28 Jun 2016
9 answers
202 views

Hi! In my WPF MVVM application I'm in need of presenting of hierarchical information in RadPropertyGrid without use of built-in collections editor. The hierarchical information in RadPropertyGrid must be presented approximately in the following manner:

- "Sirius" Gas Flowmeter
    - Settings
        - Real-Time Clock
             TimeZone                         0
             Date                             20062016
             Time                             163716
    - SerialInterface
         BusAddress                             1
         BaudRate                               115200
    - GasFlowProfileCorrection
         - CompensationUltrasonicBeamFailure
              CompensationWeight              12000
         Weight_1                               0.00015
         Correction_1                           0

Where '-' character on the left of group name means that the content disclosed and other groups and registers in this group are shown (when the content is minimized then '-' character is changed to '+' character). Nesting depth is initially unknown and is determined during runtime of the application. The datasource for the RadPropertyGrid is an ObswervableCollection with hierarchical data items. The contents of the collection is formed during runtime of the application. I watched post about hierarhical RadPropertyGrid at: http://www.telerik.com/forums/hierarchical-collections and your application example from this post. But as I understood there is considered a fixed depth of nesting, which is known in advance. But as I wrote above - in my case nesting depth is initially unknown and is determined during runtime.  If you give me an example applicable to my case, it will be great. I am hope for your help.
Eugene
Top achievements
Rank 1
 answered on 28 Jun 2016
1 answer
149 views

I am using the ScheduleView component with the timeline view.

I can set the current date and start time, but how do I zoom to a specific time range, so that on the left I have (for example) 9am and on the right I have 5pm?

Thanks

Kalin
Telerik team
 answered on 28 Jun 2016
1 answer
266 views

Dear team,

for some reason I have a collection of MemberColumnFilterDescriptors and I must apply these filters to a List in my ViewModel. It exists a way to do that? Maybe creating a "where" predicate to include in a linq or something?

Thanks in advance

Martin
Telerik team
 answered on 27 Jun 2016
1 answer
169 views

Hi,

 

I'm trying to close a floating pane then open another window on top of my main form, however the main form being activated once the floating pane is closed resulting in the 2nd form being hidden. Setting the 2nd form to topmost isn't a solution for my requirements. How can I prevent the focus moving back to the main window's docking control?

Here is the xaml code:

<telerik:RadDocking x:Name="radDocking" BorderThickness="0" Padding="0" >
    <telerik:RadSplitContainer x:Name="WorkflowWindowContainer" InitialPosition="FloatingOnly" telerik:RadDocking.FloatingLocation="1250, 700" telerik:RadDocking.FloatingSize="600,250">
        <telerik:RadPaneGroup >
            <telerik:RadPane Header="Floater" x:Name="floatingPane" ContextMenuTemplate="{x:Null}" CanUserClose ="True" IsHidden="False" >
                <Label Content="I'm a floating window"></Label>
            </telerik:RadPane>
        </telerik:RadPaneGroup>
    </telerik:RadSplitContainer>
</telerik:RadDocking>

Code behind:

floatingPane.IsActive = false;
floatingPane.IsHidden= true;
SecondWindow window = new SecondWindow();
window.Show();

Georgi
Telerik team
 answered on 27 Jun 2016
8 answers
203 views

Hi,

I'd like to replicate a graph which looks like the one you can see in the attached screenshot with min and max ranges written to the left side of each respective bar. Please note the number of bars and their values are determined at runtime. I know how to create the bar and lineseries programmatically, but not how to create such layout by code.

Please help me in this matter.
Christian
Top achievements
Rank 1
 answered on 27 Jun 2016
3 answers
151 views

Hello,

I'm sure this is me, but I'm stuck none the less.

I have two LOB WPF apps that have been running fine for several years. I updated them this week to the newest release version (2016.2.613.40). Now all of the RadDatePicker controls throw a NullRefferenceException in PresentationFramework.dll whenever the calendar pulldown button of the RadDatePicker is clicked.

Stack Trace is below. When I start a new app and use the RadDatePicker of course everything works fine. So I assumed that it must be a dll version mismatch but the Controls.dll and the Controls.Input.dll do match the release version.

Seeing the last stack step involved initializing touch for the control, I've unsuccessfully tried disabling the touch manager as the error still occurs.:

TouchManager.SetIsTouchHitTestVisible(TestRadDatePicker, false);
TouchManager.IsTouchEnabled = false;

 

Do you have a suggestion on how to troubleshoot this? Thanks in advance!

 

Scott

 

   at Telerik.Windows.Controls.RadCalendar.InitializeTouch()
   at Telerik.Windows.Controls.RadCalendar.OnApplyTemplate()
   at System.Windows.FrameworkElement.ApplyTemplate()
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)
   at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV, Boolean& hasDesiredSizeUChanged)
   at System.Windows.Controls.Grid.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)
   at System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Documents.AdornerDecorator.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Decorator.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Primitives.PopupRoot.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Interop.HwndSource.SetLayoutSize()
   at System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value)
   at System.Windows.Interop.HwndSource.set_RootVisual(Visual value)
   at System.Windows.Controls.Primitives.Popup.SetRootVisualToPopupRoot()
   at System.Windows.Controls.Primitives.Popup.CreateWindow(Boolean asyncCall)
   at System.Windows.Controls.Primitives.Popup.OnIsOpenChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
   at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
   at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)
   at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal)
   at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)
   at Telerik.Windows.Controls.AutoClosePopupWrapper.set_IsOpen(Boolean value)
   at Telerik.Windows.Controls.RadDropDownButton.OnIsOpenChanged(Boolean newValue, Boolean oldValue)
   at Telerik.Windows.Controls.RadDropDownButton.OnIsOpenPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
   at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
   at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)
   at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal)
   at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)
   at Telerik.Windows.Controls.RadDropDownButton.OnClick()
   at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
   at Telerik.Windows.Controls.RadDropDownButton.OnMouseLeftButtonUp(MouseButtonEventArgs e)
   at System.Windows.UIElement.OnMouseLeftButtonUpThunk(Object sender, MouseButtonEventArgs e)
   at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
   at System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)
   at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
   at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
   at System.Windows.Input.InputManager.ProcessStagingArea()
   at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
   at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
   at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
   at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
   at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
   at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
   at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
   at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
   at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
   at System.Windows.Application.RunDispatcher(Object ignore)
   at System.Windows.Application.RunInternal(Window window)
   at System.Windows.Application.Run(Window window)
   at System.Windows.Application.Run()
   at RnsTimeSheet.App.Main() in C:\Projects\RnsTimeSheet\RnsTimeSheet\obj\x86\Debug\App.g.cs:line 0
   at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
   at System.AppDomain.nExecuteAssembly(RuntimeAssembly assembly, String[] args)
   at System.Runtime.Hosting.ManifestRunner.Run(Boolean checkAptModel)
   at System.Runtime.Hosting.ManifestRunner.ExecuteAsAssembly()
   at System.Runtime.Hosting.ApplicationActivator.CreateInstanc...

Polya
Telerik team
 answered on 27 Jun 2016
1 answer
173 views

Hello,

How to Right-To-Left RadGridView?

Amirhossein
Top achievements
Rank 1
 answered on 25 Jun 2016
5 answers
422 views

HI Telerik,

I am using ScatterLineSeries and I want to show tooltip on the points on Mouse hover. In order to show tooltip I used Point Template while styling the chart. Since I do not want to see the ellipse, I set the color to transparent.  But I have a huge number of points in the series and the UI freezes for long time while rendering the Lines. Then I realized that PointTemplate is causing the freeze. I removed it and the chart is rendering very fast. But the tooltip is not shown anymore. Please help me how to show tooltip without using Point Template.

 

Thanks,

Shilpa

Dinko | Tech Support Engineer
Telerik team
 answered on 24 Jun 2016
3 answers
164 views

Is there a way to preserve the expanded groups *using isolated storage* ?....I managed to get the sorting saving, but not the user expanded groups, so that when the app is run again the groups that were expanded previously remain expanded as the user left them (which is a business requirement of our app).

Thanks,

 

Barry

Stefan
Telerik team
 answered on 24 Jun 2016
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
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?