Telerik Forums
UI for WPF Forum
0 answers
72 views
flood
nimiaj ejoker
Top achievements
Rank 1
 asked on 19 Feb 2010
3 answers
104 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
118 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
74 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
95 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
81 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
229 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
61 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
177 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
100 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?