This can be seen in the examples, if you have a GridViewToggleRowDetailsColumn then you have a column with plus or minus in it for expanding/collapsing the row. The issue I'm having is that often the click is being missed as it seems you have to click exactly on the text, not just anywhere in the cell. I've seen you can make the details expand on selection, but I don't really want to do this, I'd rather the user clicks on the expansion cell.
Is there any way to make the whole of the cell clickable?
Interestingly enough I've noticed that the expansion for hierarchical grids is clickable anywhere, but because I've got multiple child details I wanted to have tabs.
(sender as RadNumericUpDown).MoveFocus(new TraversalRequest(System.Windows.Input.FocusNavigationDirection.Next));e.Handled = true;Any suggestions?

DateTimePicker ClockItemsSource doesn't show the time span 23:59:59 the Time popup shows upto 22:00:00
RadDateTimePickerObj.ClockItemsSource = new List<TimeSpan> {
new TimeSpan(0,0,0), new TimeSpan(1, 0, 0), new TimeSpan(2, 0, 0), new TimeSpan(3,0,0), new TimeSpan(4,0,0)
,new TimeSpan(5,0,0),new TimeSpan(6,0,0),new TimeSpan(7,0,0),new TimeSpan(8,0,0),new TimeSpan(9,0,0),new TimeSpan(10,0,0)
,new TimeSpan(11,0,0)
,new TimeSpan(12,0,0),new TimeSpan(13,0,0),new TimeSpan(14,0,0),new TimeSpan(15,0,0),new TimeSpan(16,0,0),new TimeSpan(17,0,0),new TimeSpan(18,0,0),new TimeSpan(19,0,0),
new TimeSpan(20,0,0),new TimeSpan(21,0,0),new TimeSpan(22,0,0),new TimeSpan(23,59,59)
};

Hi,
I am working on a large-scale WPF application using Telerik Controls and seeing a problem that my TextBox input is not being saved when I click my RadButton to save. The problem is tied to the fact that the TextBox never looses focus and I'm typing in an input and just clicking Save afterwards. Since the Textbox doesn't loose focus the property is never updated. I know that a possible fix is to add UpdateSourcetrigger=PropertyChanged to my TextBox's Binding but since I have this occurring all over the application, it would be hard to accomplish. I want a generic solution that allows me to save the content of my input even without having to tab out of the control.
Please advise possible solutions.
Thanks.
Here is wpf c# code on my MenuButton:
namespace Stream.WPF.Infrastructure.Controls
{
using System.Windows;
using System.Windows.Media;
using Telerik.Windows.Controls;
public class MenuButton : RadButton
{
public static readonly DependencyProperty ImageSourceProperty = DependencyProperty.Register(
"ImageSource",
typeof(ImageSource),
typeof(MenuButton),
new UIPropertyMetadata(default(ImageSource)));
public static readonly DependencyProperty LabelProperty = DependencyProperty.Register(
"Label",
typeof(string),
typeof(MenuButton));
public ImageSource ImageSource
{
get
{
return (ImageSource)this.GetValue(ImageSourceProperty);
}
set
{
this.SetValue(ImageSourceProperty, value);
}
}
public string Label
{
get
{
return (string)this.GetValue(LabelProperty);
}
set
{
this.SetValue(LabelProperty, value);
}
}
}
}
And in my XAML I am using it like this:
<customControls:MenuButton Grid.Column="1" Content="{x:Static resources:ProperNameResources.Overview}" Margin="30,2,30,2" Background="#005A8B"
Command="{Binding Owner.SelectedTourSheetViewModel.ShowOverviewCommand}"
Visibility="{Binding Owner.SelectedTourSheetViewModel.IsOverviewDisplayed, Converter={StaticResource InverseBoolToVisibilityConverter}}"/>
Hi all,
I've got a requirement to modify the styling of rich text that's pasted into my radrichtextbox. The following code works, but it hangs the UI when it's run on the main thread, and ClipboardEx.GetDocumentFromClipboard is unhappy when it's not run on the main thread ( something like this https://stackoverflow.com/questions/15913275/backgroundworker-and-clipboard )
Has anybody found a way around this?
private void EditorTextBoxCommandExecuting(object sender, CommandExecutingEventArgs e)
{
if (e.Command is PasteCommand)
{
DocumentFragment fragment = ClipboardEx
.GetDocumentFromClipboard(
"RadDocumentGUID"); //copy pasting from a RadRichTextBox, keep the paragraphs as they are
RemoveStylingFromFragment(fragment);
Editor.InsertFragment(fragment);
}
}

I am trying to show the calendar week of the selected week in the NavigationHeader. Until now i could not find any approach to do this.
Is there a possibility to show the calendar week in the NavigationHeader of a ScheduleView?


I'm trying to programatically remove a span element from a document like this:
span.Parent.Children.Remove(span);
This works, but it seems to mess with the formatting of the next span in the paragraph.
Has anybody come across this, or know of a workaround?

I have a RadGridView. One of column is an Expander(Not RadExpander, just a regular WPF Expander). For some reason I want to get all Expanders. So by this solution.
private List<T> GetVisualTreeObjects<T>(DependencyObject obj) where T : DependencyObject { List<T> objects = new List<T>(); int count = VisualTreeHelper.GetChildrenCount(obj); for (int i = 0; i < count; i++) { DependencyObject child = VisualTreeHelper.GetChild(obj, i); if (child != null) { T requestedType = child as T; if (requestedType != null) objects.Add(requestedType); objects.AddRange(this.GetVisualTreeObjects<T>(child)); } } return objects; }I can get all Expanders by
var all = GetVisualTreeObjects<Expander>(this.grv);Now I have a RadDataPager for this GridView,
<telerik:RadDataPager x:Name="radDataPager" Source="{Binding Items, ElementName=radGridView}" PageSize="5" />if I switch to another page, in the PageIndexChanged event. I want to get the all expanders for the current page. But the result is always wrong.
Not sure why?
gg
Hi,
I have an application using the telerik docking-framework and timelines. I have an issue when undocking a frame containing a RadTimeline.
I get a NullPointerException in Telerik.Windows.Controls.TimeBar.TimeIntervalContainerBase.RemoveDummyItem.
It turns out I only get the exception when I have the Intervals property set. If I remove the Intervals it does not crash.
I have another dockpanel with a RadTimeline as well, but that one does not generate the NullPointerException, so maybe I am doing something bad.
My RadTimeline xaml which crashes looks like this:
<telerik:RadTimeline MinHeight="55" Margin="2" AutoSort="False" DurationPath="Duration" GroupExpandMode="None" ItemsSource="{Binding TimePeriods}" PeriodEnd="{Binding VisiblePeriodEnd, Mode=OneWay}" PeriodHeaderStyle="{StaticResource PeriodHeaderStyle}" PeriodStart="{Binding VisiblePeriodStart, Mode=OneWay}" ScrollMode="None" SnapsToDevicePixels="True" StartPath="Start" TimelineItemTemplate="{StaticResource ItemTemplate}" VerticalScrollBarVisibility="Hidden" VisiblePeriodEnd="{Binding VisiblePeriodEnd, Mode=OneWay}" VisiblePeriodStart="{Binding VisiblePeriodStart, Mode=OneWay}"> <telerik:RadTimeline.Intervals> <telerik:DayInterval FormatterProvider="{StaticResource DayFormatterProvider}" /> </telerik:RadTimeline.Intervals> </telerik:RadTimeline>
Here is the callstack:
An unhandled exception of type 'System.NullReferenceException' occurred in Telerik.Windows.Controls.DataVisualization.dllObjektreferensen har inte angetts till en instans av ett objekt.Ohanterat undantag: System.NullReferenceException: Objektreferensen har inte angetts till en instans av ett objekt. vid Telerik.Windows.Controls.TimeBar.TimeIntervalContainerBase.RemoveDummyItem() vid Telerik.Windows.Controls.TimeBar.TimeIntervalContainerBase.MeasureIntervalFormats() vid System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) vid System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) vid System.Windows.Threading.DispatcherOperation.InvokeImpl() vid MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(Object obj) vid System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) vid System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) vid System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) vid MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state) vid System.Windows.Threading.DispatcherOperation.Invoke() vid System.Windows.Threading.Dispatcher.ProcessQueue() vid System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) vid MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) vid MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) vid System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) vid System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) vid System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs) vid MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam) vid MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg) vid System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame) vid System.Windows.Application.RunDispatcher(Object ignore) vid System.Windows.Application.RunInternal(Window window)
Do you have any clue what is causing the issue?
Best regards
/Ola Nygren