Completed
Last Updated: 17 Feb 2012 04:57 by ADMIN
ADMIN
Julian Benkov
Created on: 17 Feb 2012 04:57
Category: GridView
Type: Bug Report
0
FIX: Self Reference throw exception with different types of Parent and Child columns or when the value is null
Selfreference:
Item.ID
Item.Propertys.ParentID 

If Parent ID == null then since the new Update I will recive :


bei Telerik.WinControls.UI.GridViewSelfReferenceComparer.Compare(GridViewRowInfo x, GridViewRowInfo y) 

bei Telerik.Collections.Generic.AvlTree`1.LastIndex(ValueT value) 

bei Telerik.Collections.Generic.AvlTree`1.InsertWithDuplicates(ValueT value) 

bei Telerik.Collections.Generic.AvlTree`1.Add(ValueT item) 

bei Telerik.WinControls.UI.GridViewSelfReferenceDataProvider.Refresh() 

bei Telerik.WinControls.UI.GridViewTemplate.Telerik.WinControls.Data.IDataItemSource.Initialize() 

bei Telerik.WinControls.Data.RadListSource`1.Initialize() 

bei Telerik.WinControls.Data.RadListSource`1.Bind(Object dataSource, String dataMember) 

bei Telerik.WinControls.Data.RadListSource`1.set_DataSource(Object value) 

bei Telerik.WinControls.UI.GridViewTemplate.set_DataSource(Object value) 

bei Telerik.WinControls.UI.RadGridView.set_DataSource(Object value) 

bei LocalSimulation.Form1.worker_RunWorkerCompleted(Object sender, RunWorkerCompletedEventArgs e) in D:\Programming\REPOSITORY\trunk\AAARISK WEBAPP\LocalSimulation\Form1.cs:Zeile 142. 

bei System.ComponentModel.BackgroundWorker.OnRunWorkerCompleted(RunWorkerCompletedEventArgs e) 

bei System.ComponentModel.BackgroundWorker.AsyncOperationCompleted(Object arg) 



So I changed Parent = null to Parent =0 and it works .
0 comments