I have a scenario where I apply a custom RadListBoxItem DataTemplate to my ListBox which has been working correctly for months if not years.
I have been trying our program on a touch device for the first time (Surface Pro 2) and realised I cannot select any item (with touch) without causing the program to crash.
I have broken the fault down to a far simpler program which still shows the same problem.
<telerik:RadListBox x:Name="lstmain"/>Dim DT As New DataTemplate With {.DataType = GetType(RadListBoxItem), .VisualTree = New FrameworkElementFactory(GetType(RadListBoxItem))}lstmain.ItemTemplate = DTlstmain.ItemsSource = Results
Results is a returned observable collection of C_SearchItem
Dim Results As New ObservableCollection(Of C_SearchItem)
Public Class C_SearchItem
Public ErrorCode As Integer
End Class
Using the above code. (RadListBox with default RadListBoxItem) causes the below error.
Object reference not set to an instance of an object. at Telerik.Windows.Controls.Internal.ListBoxTouchableElement.TapDown(TapDownArguments args) at Telerik.Windows.Input.Touch.TouchableElements.TapTouchableElementBase.Telerik.Windows.Input.Touch.TouchableElements.ITapTouchableElement.TapDown(TapDownArguments args) at Telerik.Windows.Input.Touch.GestureHandlers.TapGestureHandler.TapUp(Point point) at Telerik.Windows.Input.Touch.TouchHandler.RegisterTouchUp(TouchHandlerArgs args) at Telerik.Windows.Input.Touch.TouchHandlersController.RegisterTouchUp(Point point, TouchPoint[] touchPoints, Boolean& handled) at Telerik.Windows.Input.Touch.TouchHandlersController.Owner_TouchUp(Object sender, TouchEventArgs e) at System.Windows.Input.TouchEventArgs.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.TouchDevice.RaiseTouchUp() at System.Windows.Input.TouchDevice.ReportUp() at System.Windows.Input.StylusLogic.PromoteMainUpToTouch(StylusDevice stylusDevice, StagingAreaInputItem stagingItem) at System.Windows.Input.StylusLogic.PromoteMainToTouch(ProcessInputEventArgs e, StylusEventArgs stylusEventArgs) at System.Windows.Input.StylusLogic.PromoteMainToOther(ProcessInputEventArgs e) at System.Windows.Input.StylusLogic.PostProcessInput(Object sender, ProcessInputEventArgs e) at System.Windows.Input.InputManager.RaiseProcessInputEventHandlers(ProcessInputEventHandler postProcessInput, ProcessInputEventArgs processInputEventArgs) at System.Windows.Input.InputManager.ProcessStagingArea() at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input) at System.Windows.Input.StylusLogic.InputManagerProcessInput(Object oInput) at System.Windows.Input.StylusLogic.PreProcessInput(Object sender, PreProcessInputEventArgs e) 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 MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, 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.Threading.Dispatcher.Run() 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 ShieldServices1._7.App.Main() in C:\Applications\ShieldServices1.7\ShieldServices1.7\App.xaml.vb:line 25
If I replace RadListBox with the standard ListBox as follows there is no error.
<ListBox x:Name="lstmain"/>Dim DT As New DataTemplate With {.DataType = GetType(ListBoxItem), .VisualTree = New FrameworkElementFactory(GetType(ListBoxItem))}lstmain.ItemTemplate = DTlstmain.ItemsSource = Results
I am using the latest release v.2015.1.401.45
Regards
Shaun Critten
Hi,
I have the following code
<telerik:RadScheduleView x:Name="ScheduleView" AppointmentsSource="{Binding Workdays, Mode=OneWay}" SpecialSlotsSource="{Binding ReadOnlySlots, Mode=OneWay}" ResourceTypesSource="{Binding AccountResourceTypes, Mode=OneWay}" CategoriesSource="{Binding Categories, Mode=OneTime}" CurrentDate="{Binding CurrentDate, Mode=TwoWay}" IsInlineEditingEnabled="False" ShowAppointmentDeleteButton="False" Grid.Column="1" ShowDialog="RadScheduleViewShowDialog" Visibility="{Binding HasAccounts, Converter={StaticResource BoolToVisibilityConverter}}" FirstDayOfWeek="Monday" Margin="0,-1,0,1" MinAppointmentHeight="80" >But every time i hover over an appointment it changes its background color and stays this way,
how can I turn this off, i attached an image to demonstrate ist.
I have a RadGridView with a default sort-order.
When the user clicks on some of the columns, I want the default ascending sort order as the first sort order selected (as it is out of the box).
But for other columns, the user almost always wants them selected descending. This means that right now the user needs to click the column header two times (or more, if they system is a bit slow and they happen to click multiple times in anger).
That is, for a few column I would like to have:
* descending -> ascending -> none
instead of:
* ascending -> descending -> none.
I know that I can make a propery on the viewmodel which returns (Int32.MaxValue - myvalue) and use SortMemberPath, but then the arrow on the header would point in the wrong direction (it would tell the user ascending but the data would be sorted descending).
Is there any way to tell individual columns, that I want the first selected sort order to be descending?
Thanks,
Hello, we are trying to evaluate Telerik WPF Controls before we could purchase it and use it in our WPF Application. Our application will be mainly run on touch enabled devices and not with mouse clicks.
We are facing following issues when it comes to integrating the Schedule View control and would appreciate if you can point us to the documentation of provide us some idea on how to implement these features using Telerik Schedule View control:
1. We would like to increase / decrease the duration of an appointment by zooming in/ zooming out using the finger gesture on the Schedule View. Currently it only supports Zooming In/ Zooming out of the Timeline or entire Schedule View to go from Month View to Day View and vice versa.
2. We would like to mark several open slots in the Schedule View and then define the appointment for those all open slots in the Schedule View.
3. We would like to drag one appointment over the other appointment and raise a specific event which will allow us to move some values from one appointment to another.
Would highly appriciate if you could respond as soon as possible as we really need to finish analysing the Telerik controls for our project.
Hi,
I have a graph that the Nodes of graph have time.
I was Wondering there is a way to display a timeline according to the nodes.
something like the below picture :
tanks
I have a RadMaskedTextInput Box that I have validated in the backend as follows.
//Phone Number[RegularExpression(@"^\d{10}$")]public string PhoneNumber{ get { return _phoneNumber; } set { double.TryParse(value, out temp); if (_phoneNumber != value) { Validator.ValidateProperty(value, new ValidationContext(this, null, null) { MemberName = "PhoneNumber" }); _phoneNumber = value; OnPropertyChanged("PhoneNumber"); } }}The xaml for the object is as follows:
<!-- Phone Number --><telerik:RadMaskedTextInput Margin="2" BorderBrush="LightGray" IsClearButtonVisible="False" Mask="(###) ###-####" UpdateValueEvent="PropertyChanged" TextMode="PlainText" Value="{Binding Path=PhoneNumber, Mode=TwoWay, NotifyOnValidationError=True, ValidatesOnExceptions=True, UpdateSourceTrigger=PropertyChanged}">This does not have the expected behavior.
What I want is that when the user does not have a valid 10 digit phone number then set the validation flag that the number is incorrect.
While it may be left blank, as soon as they start typing I want it to show a red box until only 10 digits are present.

EXample:
void tv_Edited(object sender, RadTreeViewItemEditedEventArgs e)
{
if(tv.SelectedItem.ToString()=="Session")
{
MessageBox.Show("Plese select different name!","Warning!!!!!");
//if tv.SelectedItem is "Session", I want to assign Oldvalue for that treeviewItem and I am able to get oldvalue(string oldvalue = e.OldValue.ToString();) I want to assign that oldvalue.
Team please help me ASAP.
regards,
Ranjith

Hi,
Is it possible for each category on a CategoricalAxis to have a different width?

Hi to all,
I need to "format" a GridViewDataColumn to keep blank if it contians 0 decimal.
This is the classical GridView that shows ledger entries that shows Debit and Credit Amount Columns, but when the cell contains 0 (zero), it would be blank and 0 (zero).
What can I do it?
Is there a way to show the BreadCrumb's parent dropdown menu on selection of the child?
For example, let's the example program from the WPF Examples / BreadCrumb Theming, it shows a demo of windows explorer.
Local Disk c:\ -> Personal Folders -> Outbox as a sample breadcrumb path.
By default, if I click on the drop down for 'Personal Folders' I'll get a listing of the child elements, i.e. 'Outbox', 'Drafts', etc.
Outbox doesn't have a drop down associated with it since it is the last element.
Is it possible to setup the control so there would be a drop down on 'Outbox' and clicking it would show all of the items at that level?
Thanks!
-ben
