Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
155
Select rows combined with paging
posted

Hi,

I use the following xaml in a xamWebGrid to select a row on a cellclick:

<igGrid:XamWebGrid.SelectionSettings>
                    <igGrid:SelectionSettings CellSelection="None" CellClickAction="SelectRow"
                        ColumnSelection="None" RowSelection="Single"/>
                </igGrid:XamWebGrid.SelectionSettings>

The codebehind loads the data from a RIA services but that is all the functionality the page contains. But when paging is enabled and I switch to page 2, I get this exception:

Error: Unhandled Error in Silverlight Application Code: 4004   

Category: ManagedRuntimeError      

Message: System.NullReferenceException: Object reference not set to an instance of an object.
   at Infragistics.Silverlight.AutomationPeers.CellsPanelAutomationPeer.b(Object A_0, PropertyChangedEventArgs A_1)
   at System.ComponentModel.PropertyChangedEventHandler.Invoke(Object sender, PropertyChangedEventArgs e)
   at Infragistics.Silverlight.RecyclingContainer`1.OnPropertyChanged(String name)
   at Infragistics.Silverlight.Controls.Row.SetSelected(Boolean isSelected)
   at Infragistics.Silverlight.Controls.Row.Infragistics.Silverlight.ISelectableItem.SetSelected(Boolean isSelected)
   at Infragistics.Silverlight.Controls.SelectedCollectionBase`1.a()
   at Infragistics.Silverlight.Controls.XamWebGrid.SelectRow(Row row, InvokeAction action)
   at Infragistics.Silverlight.Controls.XamWebGrid.SelectCell(Cell cell, InvokeAction action)
   at Infragistics.Silverlight.Controls.Cell.OnCellMouseDown(MouseEventArgs e)
   at Infragistics.Silverlight.Controls.XamWebGrid.c(Object A_0, MouseButtonEventArgs A_1)
   at MS.Internal.CoreInvokeHandler.InvokeEventHandler(Int32 typeIndex, Delegate handlerDelegate, Object sender, Object args)
   at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, String eventName)  

This is version V2010.1 with the latest SR applied and with VS2010 Silverlight 4. I used the standard business application template and added a ADO entity model and a domain service to the web project to load the data.

Can anyone confirm this behaviour or am I doing something wrong?

Remko

Parents
No Data
Reply
  • 4666
    posted

    Hi Remko,
    I have tried this scenario with the same version of the XamWebGrid , used Ria Services with ADO entity model and everything works. Could you provide a more detail information or attach the sample project to be possible to isolate the issue. Youe approach look fine and it must work.

    Best!

    Mihail

Children
No Data