Telerik Forums
UI for WPF Forum
1 answer
166 views
Hi there
Is there any way to get the NumericUpDownControl to work from a custom theme dll?

I have created my own Custom theme for my Telerik control, and have applied it successfully to the Scheduler Control.  Basically i want to style the numeric control so that the borders/arrow etc are my website colours rather than the standard orange. ( i wanted an application default rather than changing the style for each Numeric UpDown Control that i used). 

I assumed it was a similar approach to the Scheduler Theming, i.e. if i altered the NumericUpDown.xaml in the Input folder of Themes, that these changes would be applied to the NumericUpDownControl,  But i have made many colour changes, and none are applied to the control, i always see the default style.

Can anyone help me or point me in the right direction?
Is is possible to apply a custom theme to the NumericUpDownControl?

Thanks
Gillian

Konstantina
Telerik team
 answered on 15 Jan 2010
3 answers
93 views
Hi,

I've been tasting and working with RadControls_for_WPF_2009_3_1208_TRIAL,
And I wanted to know what items telerik going to focus, something like roadmap for 2010.

Any new controls?
Any new features for the current controls?

I've found a few things that in my opinion would be great if it will be in the next version:
1. Printing - print from major controls: grid, scheduler, tree... 
2. Layout control - change view in runtime.
3. Grid View - Card View layout.
4. Grid View - Runtime change layout.
5. Themes for ALL standard controls, not by explicitly set to each control.

Keep on the good work!!

Thanks
Yohai

Nikolay
Telerik team
 answered on 15 Jan 2010
1 answer
89 views
hello,

i am using telerik's datepicket; however, i need time too along with date. but i dont see any control which lets me pick date and time. please advice on how to let user pick date and time.

thank u
sandy
Konstantina
Telerik team
 answered on 15 Jan 2010
1 answer
233 views
Hi,

I have downloaded the trial version and would like to purchase the lisence if you can solve my Multiple column combox with header problem.

I need a simple combox with multiple columns say for eg
Name
LastName
Age
in a WPF UserControl and not WPF window please .
 
Now the condition is that I want the headers to be displayed as well when the combobox drops down and opens up and also on selection or say on click of any row or column it should toggle back means combox should close and display the selected items on the combobox.text property.

I have tried couple of ways but can get the header..if i get the header it doesn't toggle back on selection it remains open ..
Can anybody help me on this one please.

was not able to attach code as well as Sample access database for the same.Is there any place else where i can send you the code if you need for refrence.
Konstantina
Telerik team
 answered on 15 Jan 2010
2 answers
127 views
Hi,

When a cell is in edit mode and I click outside the radgridview then I get the following exception (2009.3.1219.35):

System.NullReferenceException was unhandled by user code
  Message="Object reference not set to an instance of an object."
  Source="Telerik.Windows.Controls.GridView"
  StackTrace:
       at Telerik.Windows.Controls.GridView.GridViewCell.HandlePendingEdit() in c:\Builds\WPF_Scrum\GridView_WPF_2009_Q3_SP1\Sources\Development\Controls\GridView\GridView\GridView\Cells\GridViewCell.cs:line 803
       at Telerik.Windows.Controls.GridView.GridViewCell.Editor_LostFocus(Object sender, RoutedEventArgs e) in c:\Builds\WPF_Scrum\GridView_WPF_2009_Q3_SP1\Sources\Development\Controls\GridView\GridView\GridView\Cells\GridViewCell.cs:line 738
       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.RaiseEvent(RoutedEventArgs e)
       at System.Windows.UIElement.OnLostFocus(RoutedEventArgs e)
       at System.Windows.Controls.Primitives.TextBoxBase.OnLostFocus(RoutedEventArgs e)
       at System.Windows.UIElement.IsFocused_Changed(DependencyObject d, DependencyPropertyChangedEventArgs e)
       at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
       at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
       at System.Windows.Controls.TextBox.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, OperationType operationType)
       at System.Windows.DependencyObject.ClearValueCommon(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata)
       at System.Windows.DependencyObject.ClearValue(DependencyPropertyKey key)
       at System.Windows.Input.FocusManager.OnFocusedElementChanged(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, OperationType operationType)
       at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, OperationType operationType, Boolean isInternal)
       at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)
       at System.Windows.Input.FocusManager.SetFocusedElement(DependencyObject element, IInputElement value)
       at System.Windows.Input.KeyboardNavigation.UpdateFocusedElement(DependencyObject focusTarget)
       at System.Windows.FrameworkElement.OnGotKeyboardFocus(Object sender, KeyboardFocusChangedEventArgs e)
       at System.Windows.Input.KeyboardFocusChangedEventArgs.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.RaiseEvent(RoutedEventArgs args, Boolean trusted)
       at System.Windows.Input.InputManager.ProcessStagingArea()
       at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
       at System.Windows.Input.KeyboardDevice.ChangeFocus(DependencyObject focus, Int32 timestamp)
       at System.Windows.Input.KeyboardDevice.TryChangeFocus(DependencyObject newFocus, IKeyboardInputProvider keyboardInputProvider, Boolean askOld, Boolean askNew, Boolean forceToNullIfFailed)
       at System.Windows.Input.KeyboardDevice.Focus(DependencyObject focus, Boolean askOld, Boolean askNew)
       at System.Windows.Input.KeyboardDevice.Focus(IInputElement element)
       at System.Windows.UIElement.Focus()
       at System.Windows.Controls.ScrollViewer.OnMouseLeftButtonDown(MouseButtonEventArgs e)
       at System.Windows.UIElement.OnMouseLeftButtonDownThunk(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.CrackMouseButtonEventAndReRaiseEvent(DependencyObject sender, MouseButtonEventArgs e)
       at System.Windows.UIElement.OnMouseDownThunk(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.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, Int32 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, Boolean isSingleParameter)
       at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
  InnerException:
Thomas
Top achievements
Rank 1
 answered on 15 Jan 2010
1 answer
112 views
Hello,
I can't find an example of how to implement a combobox that is filtered by the selected value of another combobox. I have a grid that needs to display Country - City. I have a country table (CountryID - Name) and a City table (CityID-Name - CountryID). I'm binding the first combobox to the country table and the other to the city table. How can I get the city comobobox to display only the cities based on the country that the user selected?

Thanks!
Silvina.
Pavel Pavlov
Telerik team
 answered on 15 Jan 2010
2 answers
450 views
Hello!
I need a DropDownButton that looks the very similar with the Themes button from RadControls fo WPF demos
If use the same style from a regular button I somehow lose the drop down functionality

<!-- Style for Button --> 
            <Style TargetType="Controls:RadDropDownButton" x:Key="DefaultButtonStyle"
                <Setter Property="Background" Value="Transparent" /> 
                <Setter Property="Foreground" Value="#FFFFFFFF" /> 
                <Setter Property="Padding" Value="3" /> 
                <Setter Property="BorderThickness" Value="1" /> 
                <Setter Property="VerticalContentAlignment" Value="Center" /> 
                <Setter Property="HorizontalContentAlignment" Value="Center" /> 
                <Setter Property="BorderBrush" Value="Transparent" /> 
                <Setter Property="Cursor" Value="Hand" /> 
                <Setter Property="Template"
                    <Setter.Value> 
                        <ControlTemplate TargetType="Controls:RadDropDownButton"
                            <Grid Margin="0 0 0 5"
                                <Border x:Name="Background" BorderBrush="#FFBF97F2" 
                                BorderThickness="1,1,1,1" CornerRadius="4,4,4,4"
                                    <Border.Background> 
                                        <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0"
                                            <GradientStop Color="#FF3B2555" /> 
                                            <GradientStop Color="#FF2B1C3C" Offset="0.61699998378753662" /> 
                                            <GradientStop Color="#FF321F47" Offset="1" /> 
                                        </LinearGradientBrush> 
                                    </Border.Background> 
                                    <Path x:Name="Path" Height="Auto" Margin="0,0.082,0,8.859" Width="Auto" 
                                    Stretch="Fill" Stroke="{x:Null}" StrokeLineJoin="Round" 
                                    StrokeThickness="1" 
                                    Data="M0,3 C0,1.3431457 1.3431457,0 3,0 L129,0 C130.65686,0 132,1.3431457 132,3 L132,13.853975 C86.718803,0.055481441 26.160202,27.400364 0,11.585506 z"
                                        <Path.Fill> 
                                            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0"
                                                <GradientStop Color="#005B3D7A" Offset="0.092" /> 
                                                <GradientStop Color="#FF5B3D7A" Offset="1" /> 
                                            </LinearGradientBrush> 
                                        </Path.Fill> 
                                    </Path> 
                                </Border> 
                                <ContentPresenter VerticalAlignment="Center" 
                                            HorizontalAlignment="Center" 
                                            Content="{TemplateBinding Content}" 
                                            ContentTemplate="{TemplateBinding ContentTemplate}"/> 
                            </Grid> 
                            <ControlTemplate.Triggers> 
                                <Trigger Property="IsMouseOver" Value="true"
                                    <Setter Property="BorderBrush" TargetName="Background" Value="#FFFFFFFF" /> 
                                    <Setter Property="Fill" TargetName="Path"
                                        <Setter.Value> 
                                            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0"
                                                <GradientStop Color="#005B3D7A" Offset="0.092" /> 
                                                <GradientStop Color="#FF6D4497" Offset="1" /> 
                                            </LinearGradientBrush> 
                                        </Setter.Value> 
                                    </Setter> 
                                </Trigger> 
                                <Trigger Property="IsPressed" Value="True" /> 
                                <Trigger Property="IsEnabled" Value="False" /> 
                                <Trigger Property="IsFocused" Value="False" /> 
                            </ControlTemplate.Triggers> 
                        </ControlTemplate> 
                    </Setter.Value> 
                </Setter> 
            </Style> 

I might use instead a RadComboBox but I don't know exactly how to style it in the same maner ( the idea is that I don't want to use instead just a RadComboBox with QsfTheme because I need to change some colors & stuff and I don't have the code from QsfTheme )
Can you help me?

Thank you!
Roxana

RoxanaC
Top achievements
Rank 1
 answered on 15 Jan 2010
3 answers
94 views
Hello.

I've set the minimum value of my RadNumericUpDown to double.MinValue.  I am able to hit the "-" sign on the numeric keypad, but not on the keyboard itself (between the 0 and = buttons above the P key).  the RadNumericUpdown is filtering out this key.  This is apperant when using a laptop, as they don't have a numeric keypad, so the user has to hit the fn key in order to get the "-" sign.

I had a similar issue with the "." key not working, I'm assuming this is more of the same.  Here is a link to that thread


I really need an answer asap, and appreciate your help.

Thanks
Joshua

Hristo Borisov
Telerik team
 answered on 15 Jan 2010
3 answers
141 views
Here is the senario.

I have a ObservableCollection with let say 100 items.  I have clicked on and selected row # 60.  Then I delete row 50 to 100, and instantly add 50 new rows (I have now 100 items again. The grid "auto updates" as the type of collection, But I loose my selection.

I can get what row that was selected before my update, and select it agan. But now that row is at the top of the grid. I want the selection to be at the same place as before update.

How can I scroll the grid to that same position?

Vlad
Telerik team
 answered on 14 Jan 2010
8 answers
214 views

I’m using the rowdragdrop example inside of a viewbox. Theviewbox is set to stretch=”Fill”. The problem I’m having is that when the userresizes the window and moves a row the offset inside the viewbox isn’t changingwhich means the position of the row that I’m dragging isn’t under the mouse.

I was wondering if you had any ideas on how this could befixed?

Thanks

~Boots

Pavel Pavlov
Telerik team
 answered on 14 Jan 2010
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
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
ProgressBar
Sparkline
LayoutControl
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
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?