Telerik Forums
UI for WPF Forum
1 answer
244 views
I'm extending the RadDatePicker. I have implemented a new property that tells whether the text input in the DatePicker is valid (that is if can be parsed to a DateTime):

/// <summary>
/// Tells whether the input in the TextBox of this DatePicker is valid. This property is
/// updated continously as the user types in the TextBox.
/// </summary>
public bool IsInputValid
{
    get
    {
        return (bool)GetValue(RadDatePickerExtended.IsInputValidProperty);
    }
    set
    {
        SetValue(RadDatePickerExtended.IsInputValidProperty, value);
    }
}
 
public static readonly DependencyProperty IsInputValidProperty = DependencyProperty.Register("IsInputValid", typeof(bool), typeof(RadDatePickerExtended), new FrameworkPropertyMetadata(true));


I'm setting the value of this property in an event handler for the ParseDateTimeValue event:

private void RadDatePickerExtended_ParseDateTimeValue(object sender, ParseDateTimeEventArgs args)
{
    //If RadDatePicker could not parse the input...
    if (!args.IsParsingSuccessful)
    {  
        //HERE I DO SOME EXTRA PARSING FOR INPUT THAT I WANT TO SUPPORT
        //BUT THAT IS NOT SUPPORTED BY RadDatePicker. IN ALL CASES
        //WHERE THE PARSING IS SUCCESFUL AND A DATETIME IS SET, I
        //ALSO SET args.IsParsingSuccessful TO TRUE.
 
        IsInputValid = args.IsParsingSuccessful;
    }
    else
    {
        //The input was succesfully parsed by the default parsing in the RadDatePicker.
        IsInputValid = true;
    }
}


This seems to work fine. But the problem is that if the user deletes the text in the input the event is NOT dispatched and thus my method is not executed. If the user provides some invalid input so that my IsInputValid property is set to false and then clears the input, IsInputValid will still be false! I want to set it to true when the input is empty (this will mean that the value of the DatePicker is null which is allowed in my case).

So my question is: Is it possible to get notified in some way when the input is cleared by the user?
Kaloyan
Telerik team
 answered on 21 Jan 2011
1 answer
163 views
I am currently trying to handle the return key press for a RadButton control via the PreviewKeyDown event but am unable to. I can successfully handle other keystrokes, such as function keys, however the event is not raised when the return key is pressed. I can only assume that this is because the return key is seen as an access key and so handled elsewhere. Is there a way to turn this off or bypass it so that I can handle the return key for myself?
Brian Scott
Top achievements
Rank 1
 answered on 21 Jan 2011
1 answer
110 views
Hello,

I woud like to auto expand an unexpanded RadTreeListView row when the user's dragging an item and pass over the row. Is there any properties like the DropExpandDelay or a small workaround ? 

For the moment I can do this in the OnDropQuery method but I'd like to add a certain delay before the row expands.

Thanks.
Pavel Pavlov
Telerik team
 answered on 21 Jan 2011
1 answer
35 views
I'm using the chart of Area3DSeriesDefinition,in the example, the axis-X value is auto generated, now , I want to change the axis-x value,how can i do it ? 
I have tried to use DataSeries as bellow, but axis-x is not changed
            DataSeries dataSerie = new DataSeries();
            dataSerie.Definition = new Area3DSeriesDefinition() { ShowItemLabels = true };
            dataSerie.Add(new DataPoint() {XCategory ="A", YValue = 1});
            dataSerie.Add(new DataPoint() { XCategory = "b", YValue = 10 });
            RadChart1.DefaultView.ChartArea.DataSeries.Add(dataSerie);
Yavor
Telerik team
 answered on 21 Jan 2011
1 answer
108 views
Hi,

is there a way how to prevent tileview to set height of restored items automatically to be proportional according to whole tileview? I need to set height for each restored item. I guess that this can be done using custom style, but I am not able to access the restored items from style xaml.

Thanks in advance,
Petr
Zarko
Telerik team
 answered on 21 Jan 2011
3 answers
342 views
Hi

I'm trying to figure out how to chance the appearance of the tabs in a RadPaneGroup.

I open my project in Blend, and select the RadPaneGroup I want to change in the Objects and Timeline pane. Selecting 'Edit Additional Templates', I then choose Edit Bottom Template -> Edit A Copy, and choose a name, and put the new Template into a new xml file.

Now, I can figure out how to do some things, such as change the tabs to appear at the top, rather than the bottom, but cannot see how to change the look of the tabs. Where do I need to look to do this?

Thanks
Tom Davies
Dani
Telerik team
 answered on 21 Jan 2011
7 answers
138 views
Hello,

Looking for a list of words/numbers/symbols the RadDatePicker control accepts out-of-the-box. We're currently using version 2010.1.603.35. Looked in the documentation and didn't see anything.

Thanks much,
~Boots
Kaloyan
Telerik team
 answered on 21 Jan 2011
1 answer
87 views
Hi I'm using the latest 2010 release.
On my window I have a radchart with Pyramid3DSeriesDefinition.
In my code I'm adding the the camera extension but it gives me a null reference exception on runtime.

at Telerik.Windows.Controls.Charting.CameraExtension.CalculatePointProjection(Point point)
at Telerik.Windows.Controls.Charting.CameraExtension.InitialTransformUpdate()
at Telerik.Windows.Controls.Charting.CameraExtension.ChartAreaUpdatedTimerElapsed(Object sender, EventArgs e)
at System.Windows.Threading.DispatcherTimer.FireTick(Object unused)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.WrappedInvoke(Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.DispatcherOperation.InvokeImpl()
at System.Threading.ExecutionContext.runTryCode(Object userData)
at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Threading.DispatcherOperation.Invoke()
at System.Windows.Threading.Dispatcher.ProcessQueue()
at System.Windows.Threading.Dispatcher.WndProcHook(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 MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.WrappedInvoke(Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.InvokeImpl(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.Application.RunInternal(Window window)
at System.Windows.Application.Run()


Above mentioned is the stack trace.
Below mentioned is the code that I'm using in the radChart_Loaded event.
var cameraExtension = new CameraExtension();
radChart.DefaultView.ChartArea.Extensions.Add(cameraExtension);







Yavor
Telerik team
 answered on 21 Jan 2011
6 answers
441 views
Hi,
Hopefully a quick question:
With the calendar control there is a SelectedDate property which allows me to get/set a date to be highlighted/selected. However i need to highlight/select a daterange from code. There is a selectedDates property, which allows you to get a List<DateTime> of selected dates, however i need to set this. Is there a way to do this?
Many thanks,

Kaloyan
Telerik team
 answered on 21 Jan 2011
4 answers
321 views
Is it possible to do a trend line on a scatter chart?
Vladimir Milev
Telerik team
 answered on 21 Jan 2011
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
DataPager
PersistenceFramework
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
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?