|
Rank: Newbie Groups: Member
Joined: 3/17/2008 Posts: 5
|
My treeview is bound to a dataset. Moving a single node with no children works fine. moving a node that has children, generate the itemMoved event, then before the page_load event i gets the following error. I moved your demo drag and drop with reording onto the same page, and it works fine. it seems to be when bound to a data set? using version 5.0.43.2
Server Error in '/ESTreeControl' Application.
Object reference not set to an instance of an object. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[NullReferenceException: Object reference not set to an instance of an object.] EO.Web.NavigationItem.f() +451 EO.Web.NavigationItem.f() +258 EO.Web.NavigationItem.f() +258 EO.Web.NavigationItem.f() +258 EO.Web.BaseNavigator.a(Object A_0) +49 System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +186 System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +136 System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +224 System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +136 System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +224 System.Web.UI.Page.LoadAllState() +439 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1092
http://localhost:2536/ESTreeControl/Default.aspx
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,218
|
Hi,
It shouldn't have anything to do with data binding itself, but it might have to do with your data contents. Is it possible for you to create a sample project that demonstrate the problem? Once we have that, we can run and debug it to find out why.
Thanks
|
|
Rank: Newbie Groups: Member
Joined: 3/17/2008 Posts: 5
|
i can zip up this project...and send it to you... never done this, where do you want it sent?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,218
|
I've sent you a private message as where to send. Make sure the project runs, we will need to debug it so we won't be able to do anything with it unless it runs.
|
|
Rank: Newbie Groups: Member
Joined: 3/14/2008 Posts: 5
|
I have also noticed this.
If I use the code you supplied to generate a dataset.........
*************************************************************** Dim table As DataTable = ds.Tables.Add("Folders") Dim folderID As DataColumn = _ table.Columns.Add("FolderID", GetType(Integer)) Dim parentFolderID As DataColumn = _ table.Columns.Add("ParentFolderID", GetType(Integer)) Dim folderName As DataColumn = _ table.Columns.Add("FolderName", GetType(String)) table.Rows.Add(New Object() {1, Nothing, "Root"}) table.Rows.Add(New Object() {2, 1, "My Documents"}) table.Rows.Add(New Object() {3, 1, "Windows"}) table.Rows.Add(New Object() {4, 3, "System32"}) table.Rows.Add(New Object() {5, 3, "Temp"})
'Define relations
Dim r As DataRelation = ds.Relations.Add(folderID, parentFolderID) r.Nested = True
*****************************************************************
Then I bind this to the treeview and turn on "AllowDragDrop" and "AllowDragReordering" and also put "RaiseServerEvent" to true when I attempt to reorder the children of the Root then I get the following error "Object Reference not set to an instance of an object".
I am using VS2008.
Thanks
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,218
|
Thanks for the additional information. We have received your test project and will be looking into shortly. It appears to be a bug so we will try to get it addressed it as soon as possible.
|
|
Rank: Newbie Groups: Member
Joined: 3/14/2008 Posts: 5
|
Where do we stand on this issue?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,218
|
Hi,
We have fixed the problem and replied your email (the one you sent us the test project) last Thursday with download link for the fixed build. Can you check to see if you have received it?
Thanks
|
|
Rank: Newbie Groups: Member
Joined: 3/14/2008 Posts: 5
|
I did not send you an email, I think that was BQuick. I used your code (in above message) and received a similar error. Anyways I guess the latest build fixes the problem, I will download it and give it a try.
Thanks!
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,218
|
MHLS wrote:I did not send you an email, I think that was BQuick. I used your code (in above message) and received a similar error. Anyways I guess the latest build fixes the problem, I will download it and give it a try.
Thanks! Sorry for having confused you with BQuick. We have sent you a private message with the download location of the new build.
|
|
Rank: Newbie Groups: Member
Joined: 3/17/2008 Posts: 5
|
Sorry i did not get back to you sooner, but the fix works great...Problem sovled
|
|