The title says it all, I have a readonly gridview. In response to a button click I fire off a command in my vm to insert a new record in the bound collection. At the time this happens I need to expand the row details dataform so they can enter in the desired info. How to expand the rowdetails in this case from my viewmodel?
Thanks ... Ed
Hi team,
One of my users in production had an Exception today in a GridView with Aggregate function Sum.
I don't know how to reproduce it, even with his data I wasn't able to do it (none of the possible aggregations would overflow).
I use Telerik for WPF version 2015.2.728.40.
Is this a known bug for you?
Here is the stacktrace:
System.OverflowException: Arithmetic operation resulted
in
an overflow.
at System.Linq.Enumerable.Sum(IEnumerable`1 source)
at lambda_method(Closure , IGrouping`2 )
at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
at Telerik.Windows.Data.QueryableExtensions.Aggregate(IQueryable source, IEnumerable`1 aggregateFunctions)
at Telerik.Windows.Controls.GridView.GridViewDataControl.CreateAggregateResults()
at Telerik.Windows.Controls.GridView.GridViewDataControl.OnItemsCollectionChanged(Object sender, NotifyCollectionChangedEventArgs e)
at Telerik.Windows.Controls.DataControl.OnItemsCollectionChangedDispatch(Object sender, NotifyCollectionChangedEventArgs e)
at System.Collections.Specialized.NotifyCollectionChangedEventHandler.Invoke(Object sender, NotifyCollectionChangedEventArgs e)
at Telerik.Windows.Data.DataItemCollection.OnCollectionChanged(NotifyCollectionChangedEventArgs e)
at Telerik.Windows.Data.DataItemCollection.OnCollectionViewCollectionChanged(Object sender, NotifyCollectionChangedEventArgs e)
at Telerik.Windows.Data.Listener`2.ReceiveWeakEvent(Object sender, TArgs args)
at Telerik.Windows.Data.WeakEvent.WeakListener`1.Handler(Object sender, TArgs args)
at Telerik.Windows.Data.QueryableCollectionView.OnCollectionChanged(NotifyCollectionChangedEventArgs args)
at Telerik.Windows.Data.QueryableCollectionView.RefreshOverride()
at Telerik.Windows.Data.QueryableCollectionView.RefreshOrDefer()
at Telerik.Windows.Data.QueryableCollectionView.InvalidatePagingAndRefresh()
at Telerik.Windows.Data.QueryableCollectionView.OnSortDescriptorsCollectionChanged(Object sender, NotifyCollectionChangedEventArgs e)
at System.Collections.Specialized.NotifyCollectionChangedEventHandler.Invoke(Object sender, NotifyCollectionChangedEventArgs e)
at System.Collections.ObjectModel.ObservableCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e)
at Telerik.Windows.Data.RadObservableCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e)
at Telerik.Windows.Data.ObservableItemCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e)
at Telerik.Windows.Data.RadObservableCollection`1.RaiseCollectionChangedOnResume()
at Telerik.Windows.Data.RadObservableCollection`1.ResumeNotifications()
at Telerik.Windows.Data.CollectionHelper.Reset(IEnumerable source, IList target, Func`2 itemConverter)
at Telerik.Windows.Data.ObservableCollectionManager.HandleCollectionChanged(IList sender, NotifyCollectionChangedEventArgs args)
at Telerik.Windows.Data.ObservableCollectionManager.Telerik.Windows.Data.IWeakEventListener<System.Collections.Specialized.NotifyCollectionChangedEventArgs>.ReceiveWeakEvent(Object sender, NotifyCollectionChangedEventArgs args)
at Telerik.Windows.Data.WeakEvent.WeakListener`1.Handler(Object sender, TArgs args)
at System.Collections.Specialized.NotifyCollectionChangedEventHandler.Invoke(Object sender, NotifyCollectionChangedEventArgs e)
at System.Collections.ObjectModel.ObservableCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e)
at Telerik.Windows.Data.RadObservableCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e)
at Telerik.Windows.Data.ObservableItemCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e)
at Telerik.Windows.Data.RadObservableCollection`1.RaiseCollectionChangedOnResume()
at Telerik.Windows.Data.RadObservableCollection`1.ResumeNotifications()
at Telerik.Windows.Controls.GridView.GridViewDataControl.PerformSorting(GridViewSortingEventArgs sortingArgs)
at Telerik.Windows.Controls.GridView.GridViewDataControl.<>c__DisplayClass97.<Sort>b__96()
at Telerik.Windows.Controls.CursorManager.PerformTimeConsumingOperation(FrameworkElement frameworkElement, Action action)
at Telerik.Windows.Controls.GridView.GridViewDataControl.Sort(GridViewColumn column, Boolean appendToExisting)
at Telerik.Windows.Controls.GridView.GridViewHeaderCell.RequestSort(Boolean appendToExisting)
at Telerik.Windows.Controls.GridView.GridViewHeaderCell.PerformUserSort()
at Telerik.Windows.Controls.GridView.GridViewHeaderCell.OnMouseLeftButtonUp(MouseButtonEventArgs e)
at System.Windows.UIElement.OnMouseLeftButtonUpThunk(Object sender, MouseButtonEventArgs e)
at System.Windows.Input.MouseButtonEventArgs.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.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
at System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)
at System.Windows.Input.MouseButtonEventArgs.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.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 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
Thanks a lot,
LetÃcia Tiveron
<
StackPanel
FocusManager.FocusedElement
=
"{Binding ElementName=RadMaskedTextInput}"
>
<
TextBox
x:Name
=
"NonTelerikTextBox"
></
TextBox
>
<
telerik:RadMaskedTextInput
x:Name
=
"RadMaskedTextInput"
/>
</
StackPanel
>
Hi,
Is it possible for a DataViewComboBoxColumn to display its Edit Display (what you get if you double click in the cell) - so that the combobox is showing all the time. For me, I don't feel like its clear enough to the end-user that this column is editable, and asking them to click once / double click in the cell just to display the combobox is too much.
Same goes with the CheckboxColumn - even when I set the IsReadOnly mode to False on this column - the checkbox appears to look the same as if I set it to true. The user has to go into Edit mode by clicking to determine this for themselves and I don't really want any click behaviour - seems bizarre to me that this is the default behaviour for these type of columns.
Hello,
I am trying to implement the same scenario as in this link.
http://docs.telerik.com/devtools/wpf/controls/radtreeview/populating-with-data/data-binding-to-object
I want to move the item within the same division and don't allow to move to other division.
How can I restrict IsDragEnabled at HierarchicalDataTemplate level ?
I'm trying to add maximize, minimize and restore buttons to the header of floating radpanes. I know it's maximizeable by double-clicking the header, but there is no way to minimize, and I'll like to add both options for a better user experience.
I've been successful in adding floating panes to the taskbar using the following code by overriding DefaultGeneratedItemsFactory.CreateToolWindow:
public override ToolWindow CreateToolWindow()
{
var window = base.CreateToolWindow();
//make floating windows show in taskbar
RadWindowInteropHelper.SetShowInTaskbar(window, true);
RadWindowInteropHelper.SetIcon(window, Application.Current.MainWindow.Icon);
window.SetBinding(RadWindowInteropHelper.TitleProperty, new Binding("Header") { Source = window });
return window;
}
and I now just need to minimize/maximize/restore to work like a standard window.
<telerik:RadRibbonDropDownButton Name="MailingsInsertFieldButton" CollapseToMedium="WhenGroupIsMedium" telerik:ScreenTip.Description="You can insert fields such as Name or Address, which will be replaced automatically with information from a database or contact list for each copy of the form letter." LargeImage="pack://application:,,,/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/32/InsertMergeField.png" telerik:RadRichTextBoxRibbonUI.RichTextCommand="{Binding InsertMergeFieldEmptyCommand}" Size="Large" Text="Insert Merge Field" telerik:ScreenTip.Title="Insert Merge Field" />
This code doesn't change anything...
SetCurrentAuthor("test", System.Windows.Media.Colors.Purple)
Public Sub SetCurrentAuthor(ByVal authorName As String, ByVal color As System.Windows.Media.Color)
RadRichTextBox1.CurrentUser = New Model.UserInfo(authorName, authorName, authorName, String.Empty)
RadRichTextBox1.TrackChangesOptions.CurrentAuthorColor = color
End Sub
I have an older version, so maybe I just need the update?