Welcome Guest Search | Active Topics | Sign In | Register

treeview error moving node that cotains nodes Options
BQuick
Posted: Wednesday, March 19, 2008 7:08:38 AM
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

eo_support
Posted: Wednesday, March 19, 2008 7:16:04 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
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
BQuick
Posted: Wednesday, March 19, 2008 7:33:34 AM
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?
eo_support
Posted: Wednesday, March 19, 2008 7:37:05 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
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.
MHLS
Posted: Wednesday, March 19, 2008 10:06:30 AM
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




eo_support
Posted: Wednesday, March 19, 2008 10:08:45 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
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.
MHLS
Posted: Sunday, March 23, 2008 7:58:23 AM
Rank: Newbie
Groups: Member

Joined: 3/14/2008
Posts: 5
Where do we stand on this issue?
eo_support
Posted: Sunday, March 23, 2008 8:04:50 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
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
MHLS
Posted: Sunday, March 23, 2008 9:41:34 AM
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!
eo_support
Posted: Sunday, March 23, 2008 9:48:12 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
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.
BQuick
Posted: Tuesday, March 25, 2008 3:39:13 AM
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


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.