Telerik Forums
UI for WPF Forum
1 answer
160 views
Warning: wall of text to follow....

I've read through the performance section of the help for the RadGridView and see where it says not to add a RadGridView as a child to something like a StackPanel or anything else where the children could grow to infinity because it will turn virtualization off for the grid. It further states that you should only add the grid to a container with a limited number of children.

That's a fairly huge design restriction, in my opinion. For example, I want to place a grid within a dockable/pinnable/unpinnable pane and include a RadExpander above it to allow the user to modify some options for that grid. The only way I can see of successfully getting everything to size/resize appropriately when the expander is expanded/collasped is to place it in a StackPanel with the Grid. However, doing so kills the perfomance.

So, I've had to resort to placing the options for the grid and the grid itself within two separate tabs in a RadTabControl. This, to me, is simply going to be confusing and combuersome for most of my users as the user will only be able to see either the options for the grid or the grid itself, not both.

I can't even force the grid to use virtualization nor can I get it to load its data asynchronously using the DataLoadMode property.... As a result, I feel I am being forced into providing a poor UI design for my users because the RadGridView's performance seems to drop off exponentially with the number of rows...

I just can't fathom why it's not possible to specify HorizontalAlignment="Stretch" and VerticalAlignment="Stretch" to give you the same "bounds" for the grid you would have otherwise within a container control that allows only one child to preserve the virtualization capabilities. That, or why it's not possible to improve the performance of the non-virtualized grid so it doesn't "hang" an application with a few thousand or more rows....
Vlad
Telerik team
 answered on 02 Jan 2013
3 answers
174 views
I need to hide some adorners during the selection change animation on the RadCarousel (and unhide them after).

I tried intercepting the SelectionChanging and SelectionChanged events, and hiding the elements there, but they don't hide!

So I thought maybe the system won't update the UI while an animation is running...so I then tried creating a simple animation to hide the adorner (again on the above mentioned events).  Still the UI changes don't change until after the selection animation has completed.

Is there a way to get around this?

Many thanks!
Chris
Maya
Telerik team
 answered on 02 Jan 2013
1 answer
104 views
Vertical scrolling is so slow with GridViewDataColumn.CellTemplate.
You should improve performance with GridViewDataColumn.CellTemplate.
(It's fine with DataMemberBinding :)
Unace
Top achievements
Rank 1
 answered on 02 Jan 2013
3 answers
277 views
Hello,

Can you please attach/supply a simple example of a RadGrid having RadComboBox, RadButton on its cells/rows? Thanks!
I badly need it. Thank you!

A
Pankaj
Top achievements
Rank 1
 answered on 01 Jan 2013
1 answer
232 views
HI, 

I have a simple RadGridView on which I want to change the color of the text in a specific row (= 3 cells). Unfortunately, this code doesn't work:

//add new row to the grid
EventLogGrid.Items.Add(new EventLogRow(eventType, occured, msg));
 
//change the color of the text of all cells if it's an exception
if (eventType == EventLogger.EventType.Exception)
{
   var rows = this.EventLogGrid.ChildrenOfType<GridViewRow>();
   rows.Last().Foreground = new SolidColorBrush(Colors.Yellow);
}

What is wrong?

Thanks in advance.
Nick
Telerik team
 answered on 01 Jan 2013
0 answers
114 views
Hi,
I want to apply an effect to a  Richtextbox I've used in my form. But Don't know how.
Please put a sample XAML here.
Thanks.
Tooraj
Top achievements
Rank 1
 asked on 01 Jan 2013
1 answer
155 views
Hi there,

I have a requirement where the GridView Column has multiple currencies and the aggregate needs to show the result separately for each currency. For example, consider the attachment where screenshots are shown from the Demos of GridView Totals. In the attached screenshot from the demos, dollar is the only currency and hence the sum works fine. But, can we display separate results for each type of currency when some rows have Currency "C1" and some have Currency "C2" etc.. ???


~ Harsha
Siva Harsha Vardhan
Top achievements
Rank 1
 answered on 31 Dec 2012
1 answer
156 views
Hi,

I'm creating a RadRibbonTab as a user control but I keep getting the following design time error in VS2010.


<telerik:RadRibbonTab x:Class="TAS2.RibbonMenuItems.CustomersTab"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
             mc:Ignorable="d"
             Header="Customers">
    <telerik:RadRibbonGroup Header="General">
        <telerik:RadRibbonButton x:Name="btnSaveSpec2" Text="Save" Size="Large" LargeImage="Icons/Spec-Editor-Menu/Save-Disk.png" >
        </telerik:RadRibbonButton>
    </telerik:RadRibbonGroup>
</telerik:RadRibbonTab>


System.InvalidOperationException

Layout measurement override of element 'Telerik.Windows.Controls.RibbonView.Primitives.RibbonGroupsPanel' should not return PositiveInfinity as its DesiredSize, even if Infinity is passed in as available size.

at System.Windows.UIElement.Measure(Size availableSize) at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint) at System.Windows.Controls.ItemsPresenter.MeasureOverride(Size constraint) at System.Windows.FrameworkElement.MeasureCore(Size availableSize) at System.Windows.UIElement.Measure(Size availableSize) at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint) at System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint) at System.Windows.FrameworkElement.MeasureCore(Size availableSize) at System.Windows.UIElement.Measure(Size availableSize) at System.Windows.Controls.Grid.MeasureOverride(Size constraint) at System.Windows.FrameworkElement.MeasureCore(Size availableSize) at System.Windows.UIElement.Measure(Size availableSize) at System.Windows.Controls.Control.MeasureOverride(Size constraint) at Telerik.Windows.Controls.RibbonView.Primitives.RibbonScrollViewer.MeasureOverride(Size availableSize) in c:\TB\102\WPF_Scrum\Release_WPF\Sources\Development\Controls\RibbonView\RibbonView\Primitives\RibbonScrollViewer.cs:line 117 at System.Windows.FrameworkElement.MeasureCore(Size availableSize) at System.Windows.UIElement.Measure(Size availableSize) at System.Windows.Controls.Border.MeasureOverride(Size constraint) at System.Windows.FrameworkElement.MeasureCore(Size availableSize) at System.Windows.UIElement.Measure(Size availableSize) at System.Windows.Controls.Border.MeasureOverride(Size constraint) at System.Windows.FrameworkElement.MeasureCore(Size availableSize) at System.Windows.UIElement.Measure(Size availableSize) at System.Windows.Controls.Grid.MeasureOverride(Size constraint) at System.Windows.FrameworkElement.MeasureCore(Size availableSize) at System.Windows.UIElement.Measure(Size availableSize) at System.Windows.Controls.Grid.MeasureOverride(Size constraint) at System.Windows.FrameworkElement.MeasureCore(Size availableSize) at System.Windows.UIElement.Measure(Size availableSize) at System.Windows.Controls.Control.MeasureOverride(Size constraint) at System.Windows.FrameworkElement.MeasureCore(Size availableSize) at System.Windows.UIElement.Measure(Size availableSize) at System.Windows.Media.VisualBrush.DoLayout(UIElement element) at System.Windows.Media.VisualBrush.LayoutCallback(Object arg) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)

Robert
Top achievements
Rank 1
 answered on 31 Dec 2012
1 answer
259 views
Hi
how to show the context menu anywhere the mouse location is
i tried to set the placement to MousePoint but it always opens in the left upper corner of the screen.

is this possible to do with RadContextMenu?

Thanks,
Akram
Rosen Vladimirov
Telerik team
 answered on 30 Dec 2012
0 answers
193 views
Hello

I'm creating a RadGridView with a RadDataPager in a WPF window. All seem to work correclty but when I try to add a new item to the grid (New row), the application crach and generate a cast exception that a can neither understand nor catche. My GridView is binded to the data collection and the Pager in linked to the GridView.

Here is the Exception message :

Unable to cast object of type 'App.BO.Entitys.Article' to type  'System.Data.Entity.DynamicProxies.Article_3C0917478FAD0B1FFBB724608BC9377A6E5813A3464003EFD3914700EBF2EA8C'

And here is the StackTrace : 

at System.Linq.Enumerable.<CastIterator>d__b1`1.MoveNext()
at System.Linq.Enumerable.Count[TSource](IEnumerable`1 source)
at lambda_method(Closure )
at System.Linq.EnumerableExecutor`1.ExecuteBoxed()
at Telerik.Windows.Data.QueryableExtensions.Count(IQueryable source) dans c:\TB\135\WPF_Scrum\Release_WPF\Sources\Development\Core\Data\Collections\QueryableExtensions.cs:ligne 409
at Telerik.Windows.Data.QueryableCollectionView.GetPagingDeterminativeItemCount() dans c:\TB\135\WPF_Scrum\Release_WPF\Sources\Development\Core\Data\Collections\QueryableCollectionView.Paging.cs:ligne 432
at Telerik.Windows.Data.QueryableCollectionView.get_PagingDeterminativeItemCount() dans c:\TB\135\WPF_Scrum\Release_WPF\Sources\Development\Core\Data\Collections\QueryableCollectionView.Paging.cs:ligne 419
at Telerik.Windows.Data.QueryableCollectionView.GetEffectiveItemCount() dans c:\TB\135\WPF_Scrum\Release_WPF\Sources\Development\Core\Data\Collections\QueryableCollectionView.Paging.cs:ligne 402
at Telerik.Windows.Data.QueryableCollectionView.UpdateItemCount() dans c:\TB\135\WPF_Scrum\Release_WPF\Sources\Development\Core\Data\Collections\QueryableCollectionView.Paging.cs:ligne 395
at Telerik.Windows.Data.QueryableCollectionView.AddItemToSourceList(Object newItem) dans c:\TB\135\WPF_Scrum\Release_WPF\Sources\Development\Core\Data\Collections\QueryableCollectionView.Editing.cs:ligne 485
at Telerik.Windows.Data.QueryableCollectionView.AddNewInternal(Object newItem) dans c:\TB\135\WPF_Scrum\Release_WPF\Sources\Development\Core\Data\Collections\QueryableCollectionView.Editing.cs:ligne 458
at Telerik.Windows.Data.QueryableCollectionView.AddNew(Object newItem) dans c:\TB\135\WPF_Scrum\Release_WPF\Sources\Development\Core\Data\Collections\QueryableCollectionView.Editing.cs:ligne 281
at Telerik.Windows.Data.QueryableCollectionView.AddNewItem(Object newItem) dans c:\TB\135\WPF_Scrum\Release_WPF\Sources\Development\Core\Data\Collections\QueryableCollectionView.Editing.cs:ligne 261
at Telerik.Windows.Data.DataItemCollection.AddNew(Object newItem) dans c:\TB\135\WPF_Scrum\Release_WPF\Sources\Development\Core\Data\Collections\DataItemCollection.Editing.cs:ligne 63
at Telerik.Windows.Controls.GridView.GridViewDataControl.CreateNewItem() dans c:\TB\135\WPF_Scrum\Release_WPF\Sources\Development\Controls\GridView\GridView\GridView\GridViewDataControl.cs:ligne 5523
at Telerik.Windows.Controls.GridView.GridViewDataControl.ShowInsertRowIfNeeded() dans c:\TB\135\WPF_Scrum\Release_WPF\Sources\Development\Controls\GridView\GridView\GridView\GridViewDataControl.cs:ligne 5455
at Telerik.Windows.Controls.GridView.GridViewDataControl.BeginInsert() dans c:\TB\135\WPF_Scrum\Release_WPF\Sources\Development\Controls\GridView\GridView\GridView\GridViewDataControl.cs:ligne 5077
at Telerik.Windows.Controls.GridView.GridViewDataControl.OnBeginInsertCommand(Object sender, ExecutedRoutedEventArgs e) dans c:\TB\135\WPF_Scrum\Release_WPF\Sources\Development\Controls\GridView\GridView\GridView\GridViewDataControl.Commands.cs:ligne 382
at System.Windows.Input.CommandBinding.OnExecuted(Object sender, ExecutedRoutedEventArgs e)
at System.Windows.Input.CommandManager.ExecuteCommandBinding(Object sender, ExecutedRoutedEventArgs e, CommandBinding commandBinding)
at System.Windows.Input.CommandManager.FindCommandBinding(CommandBindingCollection commandBindings, Object sender, RoutedEventArgs e, ICommand command, Boolean execute)
at System.Windows.Input.CommandManager.FindCommandBinding(Object sender, RoutedEventArgs e, ICommand command, Boolean execute)
at System.Windows.Input.CommandManager.OnExecuted(Object sender, ExecutedRoutedEventArgs e)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.Input.RoutedCommand.ExecuteImpl(Object parameter, IInputElement target, Boolean userInitiated)
at System.Windows.Controls.Button.OnClick()
at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
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.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
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.Input.InputManager.ProcessStagingArea()
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 MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, 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.Application.RunInternal(Window window)
at System.Windows.Application.Run()
at App.GUI.App.Main() dans d:\Work\Projects\Apps\Dev\App\App.GUI\obj\Debug\App.g.cs:ligne 0
at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
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 System.Threading.ThreadHelper.ThreadStart()


So, is there a way to resolve the problem.
Thanks
Bilel
Top achievements
Rank 1
 asked on 30 Dec 2012
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?