We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Error callbackpanel and treeview-Control

Thread ID:

Created:

Updated:

Platform:

Replies:

67333 Aug 14,2007 09:31 AM Aug 21,2007 08:57 AM ASP.NET Web Forms (Classic) 2
loading
Tags: Tools
Mr. Sascha Wald
Asked On August 14, 2007 09:31 AM

Hi there,

using 5.1.1 I have a page with a GridGroupingControl an a callbackpanel. In this callback-panel I have a placeholdercontrol.

When the user select an Item (Hyperlink) in the Grid, the placeholder is filled with the corresponding control (only 1, e.g. a textbox, a listbox...). this works great, except with the syncfusion treeview.

I used your "Load On Demand" example (Toolsweb) to prepare the treeview, but get an error:
"Microsoft JScript runtime error: 'hdnField' is null or not an object"

here is some code:

Dim parameterTree As New Syncfusion.Web.UI.WebControls.Tools.TreeView

Dim parameterControl As New Control
parameterTree = CreateTreeView() '--> from your example
parameterTree.EnableCallbacks = True
parameterControl = CType(parameterTree, Control)
ParameterPlaceHolder.Controls.Clear()
ParameterPlaceHolder.Controls.Add(parameterControl) '--> crash

If I am using the treeview-Control outside the placeholder, everything works fine. The problem there is, that visibility is not switched, so the treeview-control is visible all the time...


any suggestions?


thanks
sascha


Sascha Wald
Replied On August 16, 2007 11:35 AM

hm...

after these tremendous count of possible causes I tried today to build a workaround:
I generated via code a genericdropdown in the callback-panel-refresh-procedure: the control was shown successfully.
Next i tried to add a treeviewcontrol into this genericdropdown, added some nodes via code -> error "Microsoft JScript runtime error: 'hdnField' is null or not an object".
Next I tried same procedure without adding nodes. --> same crash.

what now? Please send me a hint.

regards sascha




Melba Winshia [Syncfusion]
Replied On August 21, 2007 08:57 AM

Hi Sascha,

Thank you for posting your query to us.

I am afraid that I was not able to reproduce the issue. Please refer to the following steps that I tried to reproduce it.

1. Created a sample with callback panel and genericdropdown
2. Then added a treeviewcontrol into this genericdropdown
3. Added some nodes in the callback-panel-refresh-procedure
4. Run the sample
5. No issues.

Also I have created a simple sample to test this issue and it is available in the following link.

http://websamples.syncfusion.com/samples/Tools.Web/5.1.1.0/66333_1/main.htm

Please have a look at the above sample and if still the issue exists, could you please try reproducing it in the above sample or send us the reproducing steps so that we could sort out the cause of the issue and provide you a solution?

Thanks,
Melba

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;