Telerik Forums
UI for WPF Forum
2 answers
281 views
Hello To Everybody:

How Can I get the index of a row and a colum in the gridview???

Please Help me
Oscar Zapata
Top achievements
Rank 1
 answered on 22 Feb 2010
0 answers
81 views
flood
nimiaj ejoker
Top achievements
Rank 1
 asked on 19 Feb 2010
3 answers
117 views
if I use the ScrollIntoView method at some random point when resetting the ItemsSource I will get a null reference exception.  See attach screen shot.  I am using the latest internal build of q3.  It makes no difference if I use a generic List object or an

ObservableCollection as I've seen suggested to be used in another post.



This is my Code

Document 

 

currentRec = (Document)gvMainWorkQueue.SelectedItem;

 

 

 

 

gvMainWorkQueue.ItemsSource = Progressive.Document.

DataLayer.GetUnprocessedDocuments(userDepartment, userRole);

 

 

 

 

 

 

try

 

{

 

     

if (currentRec != null)

 

     {

         

for (int x = 0; x < gvMainWorkQueue.Items.Count; x++)

 

         {

             

if ((gvMainWorkQueue.Items[x] as Document).DocumentId == currentRec.DocumentId)

 

             {

                gvMainWorkQueue.SelectedItem = gvMainWorkQueue.Items[x];

                 

if (gvMainWorkQueue.SelectedItem != null)

 

                 {

                        gvMainWorkQueue.ScrollIntoView(gvMainWorkQueue.SelectedItem);

                 }

                 

break;

 

 

             }

        }

    }

 

}

 

catch (System.Exception ex)

 

 

{

 

}

 

 

 

Vlad
Telerik team
 answered on 19 Feb 2010
9 answers
125 views
For some reason I am loosing the ability to select rows in a GridView once I create a custom RowStyle (which changes the control template for the row).
What do I do wrong?
Nick Polyak
Top achievements
Rank 1
 answered on 19 Feb 2010
2 answers
87 views
Hi,

I'm adding additional title bar buttons to the RadPane using the example in your documentation.   In order to get events when the buttons are clicked I am using the routed events mechanism as described in the same section. 

This is working well, when a button is pressed the event is fired in the application.      The hard part solved I guess, what I can't seem to figure out is quite how to identify the RadPane control which the button was fired on?

My RadPanes are all dynamically created along with the RadDocking control.

I was looking for events to be fired when a RadPane becomes selected but I couldn't get this to work either.   Any suggestions would be welcomed.

Kind regards
Neil
Neil
Top achievements
Rank 1
 answered on 19 Feb 2010
1 answer
108 views
Hi,

I have the following problem: I have a GridViewDataColumn with a custom CellTemplate. This works OK for the display of the data. This template is also used in the filter popup for the column, but when I group by this column, then in the group header this template isn't used. Instead the ToString()-representation of the databound object is used.
Why is the custom CellTemplate is not used for the group header or which Template must be customized?

Thanks,

Dany
Kalin Milanov
Telerik team
 answered on 19 Feb 2010
2 answers
92 views
Hello,
    I want to change the color of the combobox as it appears when not selected. Right now it's a gray color. I am not talking about the brackground or the foreground.
Thanks
Jorge Gonzalez
Top achievements
Rank 1
 answered on 18 Feb 2010
2 answers
246 views
Can RadGridView columns be placed in a ResourceDirectory assigned to the GridViewColumnCollection or does one have to use a control template to accomplish this?

Thanks.
Larry
Top achievements
Rank 1
 answered on 18 Feb 2010
1 answer
73 views
Hello again :)
Imagining that I have a Customer class, and the client has a List <> with the days he was in the store, can I create a line for each client and the columns by the List <>?
Rossen Hristov
Telerik team
 answered on 18 Feb 2010
6 answers
209 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
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
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
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
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?