Home - Forums-.NET - FlyTreeView (ASP.NET) - Microsoft JScript runtime error: 'srcRelative' is null

FlyTreeView (ASP.NET)

Technical support and KB related to the FlyTreeView control

This forum related to following products: FlyTreeView for ASP.NET

Microsoft JScript runtime error: 'srcRelative' is null
Link Posted: 02-Feb-2007 14:01
I'm implementing drag and drop, the both source and target tree views are dynamically populated from server side. when i click on the source tree view, i get the error \"Microsoft JScript runtime error: 'srcRelative' is null or not an object.\". when i create the nodes, i use the text and value properties.

however, i created 2 other static treeviews and i'm able to implement drag and drop on the same page. i only get the error when i click on the source treeview.

TIA
Link Posted: 02-Feb-2007 14:33
What browser do you use?

What are treeview settings? Could you please provide me FlyTreeView tags at your ASPX page?

I've just tested similar case with on demand population (filesystem) + drag and drop. Got no errors here:


    BorderColor=\"Silver\" BorderWidth=\"1px\" Height=\"320px\" Width=\"280px\" Padding=\"3px\"
    OnPopulateNodes=\"flyTreeView_PopulateNodes\" Style=\"display: block\"
    DragDropName=\"1\" DragDropAcceptNames=\"1\">
            Padding=\"1px;3px;3px;1px\" RowHeight=\"16px\" />
            BorderWidth=\"1px\" ForeColor=\"White\" Padding=\"0px;2px;2px;0px\" ImageUrl=\"$classic_folder_open\" />
    
Link Posted: 02-Feb-2007 14:40
browser = IE 6

                        
                      


on the serverside, i then refer to ftvContracts and add the nodes as in
rootnode.childnoes.add(nodes)

hth
Link Posted: 02-Feb-2007 14:45
I copied and pasted your code and renamed the Id to ftvContracts, deleted onpopulateNodes because i dont use it. it looks different but I don't get the error anymore. I guess I missed some of the properties.

thanks for the assist
Link Posted: 02-Feb-2007 22:45
Within your first post you stated that you're using PopulateOnDemand with D&D and this raises the error.

In your example you even do not have OnPopulateNodes handler. How do you populate nodes?

Thank you in advance.