Callback Panel with Master Pages

Has anyone had any problems with using the Callback Panel with Master Pages in ASP.NET 2.0? I have a content panel with a callback panel and in the callback panel I have a treeview and a diagram control. The treeview control has a list of "canvas" files that I load into the diagram when the user clicks a node. I have the javascript function to get the info from the node (ie, a reference to a .edd file) and a alert box lets me know that I am passing the correct info. However, when I call __sfCallbackPanel1.callback() I get a undefined error. If I do a sample in a simple form with just the CallBack panel, treeview, diagrammer it works. I tried moving the Javascript from the Master page to the content page but the same thing happens.

Thanks.
David.

2 Replies

AD Administrator Syncfusion Team October 6, 2006 12:28 AM UTC

Hi David,

I have attached a sample that illustrates solution for your problem.
CallbackWithMasterPage
When using the CallbackPanel under the MasterPage, replace the __sfCallbackPanel1.callback() to __sfctl00_ContentPlaceHolder1_CallbackPanel1.callback().

In the sample, i have explained the usage of callbackPanel under MasterPage.So, have a look into it and let me know any further queries you have.

Thanks,
G.Pradeep.


DA David A. Gonzales October 6, 2006 03:58 AM UTC

Thanks. I was close, I figured out it should be something like ctl00_Content... I forgot the __sf. Thanks again.

David

Loader.
Up arrow icon