This is a migrated thread and some comments may be shown as answers.

Error in nodeEdit postback

2 Answers 46 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Dale
Top achievements
Rank 1
Dale asked on 16 Sep 2010, 03:57 AM

When the treeview tries to do a postback after a node edit with this dynamic code:

__doPostBack(

 

'ctl00$ContentPlaceHolder1$SectionsTreeView','{"commandName":"NodeEdit","index":"0","nodeEditText":"BRASS%20Monkey"}')

we get a 'Microsoft JScript runtime error: Object expected'

The html for the start of the treeview is

 

<div id="ctl00_ContentPlaceHolder1_SectionsTreeView" class="RadTreeView RadTreeView_WebBlue">

 

 

 

 

 so the object name seems OK.

What's going wrong and more impartantly how do I fix it?

2 Answers, 1 is accepted

Sort by
0
Simon
Telerik team
answered on 16 Sep 2010, 11:35 AM
Hi Dale,

On which line exactly does the error appear? Is it on the __doPostBack call or somewhere else?

Kind regards,
Simon
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Dale
Top achievements
Rank 1
answered on 19 Sep 2010, 11:46 PM
Thanks for your reply.

It had something to do with the window object not being created.

I rebuilt the web site from scratch and the problem has gone away.
Tags
TreeView
Asked by
Dale
Top achievements
Rank 1
Answers by
Simon
Telerik team
Dale
Top achievements
Rank 1
Share this question
or