
Hello!
I have a question about the Calendar that is used in the RadDateTimePicker control.
I want to know if there is a way to style the BlackoutDates?
In our application we have a calendar function where holidays etc are planned. I would like to mark these dates in a RadDateTimePicker control but I still want them to be selectable so that the users can override the planned holidays etc.
Could I use the BlackoutDates in such a way?
Thanks!
Using the online examples I've created a very basic WPF app with a radscheduleview and radlistbox. The two controls are bound to an sql database using entity framework though a the viewmodel (just like the WPF_CS/WithDB.csproj demo project).
The radlistbox is bound a Catagories source, and when the user drags an item from the radlistbox to the radscheduleview it creates a new appointment using an overridden ConvertDraggedData(). However, I want to set the new appointment to the category that is dragged over from the radListBox. It seems like no matter what I try the category is always unassigned when the new appointment shows up in the control.
Any help would be appreciated.
I have four Grids in WPF form. When i press TAB-Key the focus goes to next field as expected till the end of the first grid. Similarly on pressing Tab-key, Focus shift to all field of Grid-2, Grid-3 and Grid-4.
If i edit field-2 of Grid-2, focus is on this field and if i click on field-1 of Grid-1 and edit it, then after pressing Tab-key focus shift to next field of Grid-1, and proceeds till end of Grid-1. Here navigation works properly. But on next tab-key, the focus directly goes on field-2 of grid-2 instead of field-1.
Expected Result is the focus should be on field1- of grid-2.
Is there any property of RadGridView such that only one field is focused at a time for multiple grids in a form??
Thank you
Hi,
We have an issue with the server page loading on the gridview. When grouping on multiple fields the application crashed with an OverflowException on the IQueryable. Besides the IQueryable we are also using a custom 'PagingBeforeGroupingQueryableCollectionView' (See attachment).
After adding the second grouping, the Queryable expression is as follows:
{value(IdeaBlade.EntityModel.EntityQueryProxy`1[TableX]).Where(t => ((Convert(t.ObjectTypeID) == Convert(Convert(value(ScreenX).SelectedObjectType.ObjectTypeID))) AndAlso value(ScreenX+<>c__DisplayClass6).moduleIDs.Contains(t.ModuleID))).Where(x => (((x.DescEN.StartsWith("[") OrElse x.DescFR.StartsWith("[")) OrElse x.DescGE.StartsWith("[")) OrElse x.DescNL.StartsWith("["))).OrderBy(x => x.CreationDate).Take(100).GroupBy(item => item.ObjectName).OrderBy(group => group.Key).Select(group => new AggregateFunctionsGroup() {Key = group.Key, ItemCount = group.Count(), HasSubgroups = True, Items = value(IdeaBlade.EntityModel.EntityQueryProxy`1[TableX]).Where(t => ((Convert(t.ObjectTypeID) == Convert(Convert(value(ScreenX).SelectedObjectType.ObjectTypeID))) AndAlso value(ScreenX+<>c__DisplayClass6).moduleIDs.Contains(t.ModuleID))).Where(x => (((x.DescEN.StartsWith("[") OrElse x.DescFR.StartsWith("[")) OrElse x.DescGE.StartsWith("[")) OrElse x.DescNL.StartsWith("["))).OrderBy(x => x.CreationDate).Take(100).Where(item => (item.ObjectName == group.Key)).GroupBy(item => item.ObjectField).OrderBy(group => group.Key).Select(group => new AggregateFunctionsGroup() {Key = group.Key, ItemCount = group.Count(), HasSubgroups = False, Items = group})})}
Statement results in "An unhandled exception of type 'System.StackOverflowException' occurred in mscorlib.dll"
I attached some Images with some more information.
Hi Guys,
My application uses gridview to hold latest 5000 records to be displayed, if new records is coming (per second), it will be added to index 0, and the oldest will be removed from ObservableCollection. Below are the sample codes:
public ObservableCollection<EventHistory> ColDataSource {get;set;}
private void Update(OnEventReportInput input)
{
var history = new EventHistory();
ColDataSource.Insert(0, history);
if (ColDataSource.Count > 5000)
{
ColDataSource.RemoveAt(ColDataSource.Count - 1);
}
}
in most times, it works fine as my expected, but some times(randomly), my application is crashed caused by below excetion:
2016-04-29 09:41:11,270 [1] ERROR Error - Application crashed | [InvalidOperationException] System.InvalidOperationException: Collection was modified; enumeration operation may not execute.
at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
at System.Collections.Generic.List`1.Enumerator.MoveNextRare()
at System.Collections.Generic.List`1.Enumerator.MoveNext()
at Telerik.Windows.Data.KeyedCollection.RefreshKeyDictionary()
at Telerik.Windows.Data.KeyedCollection.IndexOf(Object value)
at Telerik.Windows.Data.QueryableCollectionView.InternalIndexOf(Object item)
at Telerik.Windows.Data.QueryableCollectionView.IndexOf(Object item)
at Telerik.Windows.Data.Selection.ItemSelectionHandler.ScheduleForDeselectionAllNonExistentItems()
at Telerik.Windows.Data.Selection.ItemSelectionHandler.DeselectAllNonExistentItems()
at Telerik.Windows.Data.Selection.ItemSelectionHandler.HandleItemsReset()
at Telerik.Windows.Data.Selection.ItemSelectionHandler.HandleItemsChanged(NotifyCollectionChangedEventArgs itemsChangedArguments)
at Telerik.Windows.Controls.GridView.Selection.CompositeSelectionHandler.OnOwnerItemsCollectionChanged(Object sender, NotifyCollectionChangedEventArgs e)
at Telerik.Windows.Controls.GridView.Selection.CompositeSelectionHandler.<>c__DisplayClassa.<OnOwnerItemsCollectionChangedDispatch>b__8()
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)
2016-04-29 09:41:11,398 [1] ERROR Error - Application crashed | [InvalidOperationException] System.InvalidOperationException: Collection was modified; enumeration operation may not execute.
at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
at System.Collections.Generic.List`1.Enumerator.MoveNextRare()
at System.Collections.Generic.List`1.Enumerator.MoveNext()
at Telerik.Windows.Data.KeyedCollection.RefreshKeyDictionary()
at Telerik.Windows.Data.KeyedCollection.IndexOf(Object value)
at Telerik.Windows.Data.QueryableCollectionView.InternalIndexOf(Object item)
at Telerik.Windows.Data.QueryableCollectionView.IndexOf(Object item)
at Telerik.Windows.Data.Selection.ItemSelectionHandler.ScheduleForDeselectionAllNonExistentItems()
at Telerik.Windows.Data.Selection.ItemSelectionHandler.DeselectAllNonExistentItems()
at Telerik.Windows.Data.Selection.ItemSelectionHandler.HandleItemsReset()
at Telerik.Windows.Data.Selection.ItemSelectionHandler.HandleItemsChanged(NotifyCollectionChangedEventArgs itemsChangedArguments)
at Telerik.Windows.Controls.GridView.Selection.CompositeSelectionHandler.OnOwnerItemsCollectionChanged(Object sender, NotifyCollectionChangedEventArgs e)
at Telerik.Windows.Controls.GridView.Selection.CompositeSelectionHandler.<>c__DisplayClassa.<OnOwnerItemsCollectionChangedDispatch>b__8()
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.DispatcherOperation.InvokeImpl()
at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext 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 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 SevenSwords.Gui.App.Main()
This crash occurs randomly per 3 or 4 hours, the only clue I could find from log is gridview, hope can get help from your guys!
Thanks!
Hi Everyone,
I am using RadGridView to populate my data. For one of cell I am using GridViewDataColumn. Is there any BeginningEdit event at GridViewDataColumn level ?
Or how can I use BeginningEdit event at RadGridView level using MVVM pattern.
Is there any examples ? My requirement here is when cell is start edit. I want show another form where user can enter some data.
Regards,
Rajuendar.
Hello,
i have a RadRichTextBox (LayoutMode="Flow") and the RadRichTextBoxRibbonUI.
When i change the font/size through a combobox of the ribbon, the RichTextBox does not get the focus back (it stays on the combobox). The cursor in the RichTextBox is not blinking. When i continue typing, it only changes the selection of the combobox and does not insert text in the RichTextBox. Other controls like the buttons are working as expected.
This behavior does not appear when i change the LayoutMode to Paged. Unfortunately i dont need a paged editor. :(
I can easily reproduce this, by taking the "Telerik Editor"-Example from the SDK Samples Browser and changing
<telerik:RadRichTextBox Name="editor" LayoutMode="Paged" />to
<telerik:RadRichTextBox Name="editor" LayoutMode="Flow" />
I tried to set the focus manually in the selection changed event of the combobox, but this didn't work.
Is there a way to get this working?
Thanks

Hello All,
I have a quick and easy question about setting up a cell datatemplate. I have a class that has two properties: a boolean value and a string value. In my app, I have created a collection of this class and would like to display it in a grid. I would like to display the boolean value as either a check-mark or a x-mark as in the example image I've attached... I'm pretty sure this can and should be done as a celldatatemplate, but I have no idea as to where to start... Could someone please point me in the right direction??? Is there a good example of this or is there a good explanation of setting a template up somewhere out there???
Thanks in advance,
Kevin Orcutt
I've got some weird behaviour going on, its probably something I've done, but I can't seem to work out whats going on.
I've set up two stack panels on my usercontrol, one called New Trip and one called New Misc Job - on initialize of the usercontrol I'm setting up the DragDropManager - actually all I'm doing is specifying the methods for DragIntialize like so :
DragDropManager.AddDragInitializeHandler(newTripDrag, NewTripDragInitialize);DragDropManager.AddDragInitializeHandler(newJobDrag, NewMiscDragInitialize);
When the user drags one of the stackpanels onto the scheduleview, I've got some custom dragdropbehaviour going on, but at the end of the Drop method, it always calls base.Drop() and this is where the weird behaviour comes in, when I'm dragging a trip, it works perfectly and the trip is selected afterwards, but when I drag a misc job, it fires off the SelectedAppointment method with a null value which makes nothing selected afterwards.
Why would it be calling the SelectedAppointment for one and not the other, is there something I can change to stop this from happening, I've attached the Call Stack from the point of base.Drop() to Setting the SelectedAppointment for when I dragged a Misc Job (if that helps).