Telerik Forums
UI for WPF Forum
3 answers
288 views
I have fallowing code:

<telerik:GridViewDataColumn DataMemberBinding="{Binding Role, Converter={StaticResource conv}}" >
   <telerik:GridViewDataColumn.AggregateFunctions>
       <telerik:SumFunction Caption="sum:"  />
    </telerik:GridViewDataColumn.AggregateFunctions>
</telerik:GridViewDataColumn>

I cannot get this to work as AggregateFunction is not taking convert into account how I can change that ?

I am using latest release of telerik controls with .Net 4.
Dilyan Traykov
Telerik team
 answered on 28 Apr 2017
3 answers
158 views

Hi all,

I am starting a spellchecker on a textbox createad at run time like this:

RadSpellChecker.Check(internalTextBox, SpellCheckingMode.AllAtOnce);

 

I see multiple threads on client/server solutions, but no help on WPF on this message "the spelling check is complete"

So how to remove or hide it, both in:

  1. on the main spellcheck window, when finished and waiting for "OK"
  2. on the small final popup window with warning triangle (similar to a MessageBox)

Both have almost not added value, and are very user-annoying if you call the spellcheck frequently in a loop

Any code or trick for that in WPF ?

 

Thanks,

Favrice

Boby
Telerik team
 answered on 27 Apr 2017
3 answers
138 views
What is this grey box in the upper right corner of the RichTextBox which
starts exactly where the ruler ends and how to get rid of it (please
look at the attached screenshot)
Tanya
Telerik team
 answered on 27 Apr 2017
1 answer
219 views

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!

Dilyan Traykov
Telerik team
 answered on 27 Apr 2017
1 answer
84 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
262 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
126 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
218 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
235 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
174 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
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
Slider
Expander
TileList
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
ProgressBar
Sparkline
LayoutControl
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
WebCam
CardView
DataBar
Licensing
FilePathPicker
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
HighlightTextBlock
Security
TouchManager
StepProgressBar
VirtualKeyboard
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?