Telerik Forums
UI for WPF Forum
6 answers
188 views
Hi,

In my application I have a grid where  all columns are build dynamically in the code behind.
The user can, with the aid of a combobox, select a different layout for the gridview.

When there are many columns in the grid (and the horizontal scrollbar is visible) then I get the following error when I change the
layout:
System.ArgumentOutOfRangeException was unhandled by user code
  Message=Specified argument was out of the range of valid values.
Parameter name: index
  Source=Telerik.Windows.Controls.GridView
  ParamName=index
  StackTrace:
       at Telerik.Windows.Controls.GridView.MultipleCopiesCollection.get_Item(Int32 index) in c:\Builds\WPF_Scrum\GridView_WPF_2009_Q3_SP1\Sources\Development\Controls\GridView\GridView\GridView\ItemsControl\MultipleCopiesCollection.cs:line 289
       at System.Windows.Data.ListCollectionView.InternalItemAt(Int32 index)
       at System.Windows.Data.ListCollectionView.GetItemAt(Int32 index)
       at System.Windows.Controls.ItemCollection.GetItemAt(Int32 index)
       at System.Windows.Controls.ItemCollection.get_Item(Int32 index)
       at Telerik.Windows.Controls.GridView.GridViewCellsPanel.VirtualizeChildren(List`1 blockList, IItemContainerGenerator generator) in c:\Builds\WPF_Scrum\GridView_WPF_2009_Q3_SP1\Sources\Development\Controls\GridView\GridView\GridView\Virtualization\GridViewCellsPanel.cs:line 1193
       at Telerik.Windows.Controls.GridView.GridViewCellsPanel.GenerateAndMeasureChildrenForRealizedColumns(Size constraint) in c:\Builds\WPF_Scrum\GridView_WPF_2009_Q3_SP1\Sources\Development\Controls\GridView\GridView\GridView\Virtualization\GridViewCellsPanel.cs:line 189
       at Telerik.Windows.Controls.GridView.GridViewCellsPanel.MeasureOverride(Size constraint) in c:\Builds\WPF_Scrum\GridView_WPF_2009_Q3_SP1\Sources\Development\Controls\GridView\GridView\GridView\Virtualization\GridViewCellsPanel.cs:line 86
       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       at System.Windows.UIElement.Measure(Size availableSize)
       at System.Windows.ContextLayoutManager.UpdateLayout()
       at System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)
       at System.Windows.Media.MediaContext.InvokeOnRenderCallback.DoWork()
       at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
       at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
       at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
       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)
  InnerException:

In the same scenerio I found an other bug: when I switch between layouts where
in one layout ShowInsertRow = true and in the other false then I get:

System.NullReferenceException was unhandled by user code
  Message=Object reference not set to an instance of an object.
  Source=Telerik.Windows.Controls.GridView
  StackTrace:
       at Telerik.Windows.Controls.GridView.GridViewCellsPanel.SetDataGridCellPanelWidth(IList children, Double newWidth) in c:\Builds\WPF_Scrum\GridView_WPF_2009_Q3_SP1\Sources\Development\Controls\GridView\GridView\GridView\Virtualization\GridViewCellsPanel.cs:line 1454
       at Telerik.Windows.Controls.GridView.GridViewCellsPanel.ArrangeOverride(Size arrangeSize) in c:\Builds\WPF_Scrum\GridView_WPF_2009_Q3_SP1\Sources\Development\Controls\GridView\GridView\GridView\Virtualization\GridViewCellsPanel.cs:line 1508
       at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
       at System.Windows.UIElement.Arrange(Rect finalRect)
       at MS.Internal.Helper.ArrangeElementWithSingleChild(UIElement element, Size arrangeSize)
       at System.Windows.Controls.ItemsPresenter.ArrangeOverride(Size arrangeSize)
       at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
       at System.Windows.UIElement.Arrange(Rect finalRect)
       at System.Windows.Controls.Grid.ArrangeOverride(Size arrangeSize)
       at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
       at System.Windows.UIElement.Arrange(Rect finalRect)
       at System.Windows.Controls.Control.ArrangeOverride(Size arrangeBounds)
       at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
       at System.Windows.UIElement.Arrange(Rect finalRect)
       at System.Windows.Controls.Grid.ArrangeOverride(Size arrangeSize)
       at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
       at System.Windows.UIElement.Arrange(Rect finalRect)
       at System.Windows.ContextLayoutManager.UpdateLayout()
       at System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)
       at System.Windows.Media.MediaContext.InvokeOnRenderCallback.DoWork()
       at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
       at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
       at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
       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)
  InnerException:



Vlad
Telerik team
 answered on 18 Feb 2010
1 answer
102 views
Hello
I have a datagrid with 30 rows and 30 columns, can I make a selection with the mouse of the column 15 to 20 on lines 8 and 10? And do not select the entire row or column all?
Vlad
Telerik team
 answered on 18 Feb 2010
2 answers
204 views
Hi,

I'm using the RadDocking control and added a handler for PreviewClose to be notified when a RadPane closed.  This is firing ok, however I'm not quite sure how to get the RadPane control more importantly the Name of the control which is being destroyed,  I need this to clean up my data storage behind the scenes.

Please can some one provide me with an example or point me in the right direction?

Kind regards
Neil
Neil
Top achievements
Rank 1
 answered on 18 Feb 2010
1 answer
112 views
Hello
How can i  hide GridViewGroupPanel?
Vlad
Telerik team
 answered on 18 Feb 2010
1 answer
156 views
The list is too long when I set the time interval to 10 or 15 minutes. and set the columns to 3.

Is it possible to have a scrollbar for the dropdown list of timepicker like the datetimepicker in the radscheduler?

Thanks.
Kaloyan
Telerik team
 answered on 18 Feb 2010
1 answer
265 views
Downloaded and installed the Radcontrols for WPF and I want to run the examples locally (so I can disect the code <hehe>) but I'm having a problem with not finding the telerik.windows.examples assembly.

I've gone through all the telerik assemblies and I simply can't find one that remotely seems to be the telerik.windows.examples one.

Thanks
Milan
Telerik team
 answered on 18 Feb 2010
6 answers
442 views
hi guys,

i've been trying out the RadDock control via "RadControls_for_WPF_2009_3_1314_TRIAL.msi" for the past two and something weeks for my company, we're looking to buy docking capabilities to our WPF .Net 3.5 app.
it's looks great, feels great, and easy to program with - NICE work you guys.

some things that i need some help with trying the control:

my basic WPF app - in XAML: i've put a dock panel in a window inside a grid. added an expander (RadExpander of course) docked to the right side. added two RadDock controls one of them docked to the Top and one to the Bottom.

1. i had to set the DockPanel.Dock attached property on both RadDock controls - 
when i set only one to dock to the Top and nothing on the other one - the RadDock didn't show... although it should make the second RadDock fill the available space in the panel, no?

2. i want to be able to resize each of the RadDock controls, 'cause now i can't really control their size as a user on run time. i thought about putting them into a grid with splitter between them, but is that the best way?

3. in that same example - when i drag a pane from the top-docked RadDock control - moving it downwards makes it "hide" behind the bottom-docked RadDock control (that's normal i guess?) but dragging it to the right i can move it, still floated, on top of the RadExpander, it's looks odd 'cause it's hiding behind the bottom-docked RadDock control but on top of the RadExpander,
any ideas of making it look better?

4. the Close button on a pane makes it Hidden (that's great!) but in our app we have the need sometimes to create a lot of floated panes that the user can close and open new ones, i wanna know if there is a way to "really" close the pane i.e. get ride of it, dispose it - whatever, my fear is from large memory usage because some of these panes store lots of data and controls in them,
i'm working on trying big quantities of data and control in panes to see what happens - thought about asking first how to deal with it.

hope i was able to explain myself clearly,
thank you so much in advance.

Lior.

Miroslav Nedyalkov
Telerik team
 answered on 18 Feb 2010
3 answers
208 views
I have a RadGridView bound to a generic ObservableCollection of a class I use in my application.
The class has a public property called ID (int)

I created a sort descriptor to make sure the data is sorted using the ID field
Code:
<Telerik:RadGridView.SortDescriptors>
      <Telerik_Windows_Data:SortDescriptor  Member="ID" SortDirection="Descending"/>          
</Telerik:RadGridView.SortDescriptors>

While working at run-time the code generates an Expression Blend 3 error:
"Invalid property or field - 'ID' for type Object"

I'd appreciate any input on why.


Nils
Top achievements
Rank 1
 answered on 18 Feb 2010
1 answer
104 views
Hi,

I have a grid and am using MVVM Pattern. Now i would like to change a column value in any row and do a short cut to save (like Ctrl+S), then that column value should be updated for all other rows of that column.
Is there any way to achieve this requirement.

Any help is much appreciated.

Regards

Sujith
Vlad
Telerik team
 answered on 18 Feb 2010
3 answers
314 views
I'm looking for any guidelines for optimization of the RadGridView.  Specifically, I'd like to know if such documentation exists which specifies grid options which might be "performance-heavy".  Even though you can load millions of rows into the grid, you still see [the familiar WPF] large spikes in CPU.   I'm interested in turning off all non-essential functions to get more performance out of the grid, and am looking for features or settings which ppl. feel helped the overall performance.   So far I turned off sorting, highlighting/selection, etc.  Each helps / just looking for a general set of principles to really optimize perf.
wpfPerf
Top achievements
Rank 1
 answered on 18 Feb 2010
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
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
WatermarkTextBox
DesktopAlert
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
Licensing
WebCam
CardView
DataBar
FilePathPicker
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?