Telerik Forums
UI for WPF Forum
1 answer
107 views

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.

Kalin
Telerik team
 answered on 27 Apr 2017
1 answer
291 views

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 

Nasko
Telerik team
 answered on 27 Apr 2017
5 answers
167 views

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.

 

 

 

Stefan
Telerik team
 answered on 27 Apr 2017
4 answers
250 views

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!

 

 

Dilyan Traykov
Telerik team
 answered on 27 Apr 2017
1 answer
264 views

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.

Stefan Nenchev
Telerik team
 answered on 27 Apr 2017
1 answer
209 views

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

Tanya
Telerik team
 answered on 27 Apr 2017
3 answers
302 views

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

 

 

Stefan
Telerik team
 answered on 27 Apr 2017
5 answers
244 views

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).

Stefan
Telerik team
 answered on 26 Apr 2017
1 answer
104 views

So I seem to have a memory leak. I am using JustTrace and Memory Profiler.  What happens is in using the RadListBox on one of my views, I see InternalScope objects keep adding up everytime I open the view that has that RadListBox.  But I don't know what that class is used for or what would make that problem?  Any detailed help on how to find the root of this problem would be appreciated.  Been trying to figure it out for days and have commented out templates and styles.

 

 

Kalin
Telerik team
 answered on 26 Apr 2017
1 answer
236 views
Hello,
I'm using telerik control tools for WPF UI ver: 2015.1.0401.45
I have noticed that radlistbox has a huge memory leak. On replacing radlistbox with Microsoft listbox, memory leak does not occur.
I'm attaching the demo project (replace fileextension of file from  .jpg to .zip).
This project demonstrates the problem of memory leak. Actually the memory leak occurs on data binding
I've remarked the Microsoft listbox in xaml, so to prove my claim, just use Microsoft listbox instead  of radlistbox and see the difference in memory usage of the processes.
Do you have a patch to fix this issue ?
Thank you,
Alex
Kalin
Telerik team
 answered on 26 Apr 2017
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
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
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
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
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?