TreeView select in UpdatePanel refreshes page

I am trying to put a TreeView control in a GenericDropDown control. These are both in an UpdatePanel. When the TreeViewNode is selected the whole page is refreshed even though the previous dropdown control was able to update the UpdatePanel individually.

Are syncfusion's controls compatible with ASP.Net AJAX controls? Is there a way around refreshing the whole page?

Thanks for any help or direction.

Sean

3 Replies

RS Rajarajeswari S Syncfusion Team October 18, 2007 01:31 PM UTC



Hi Sean,

Yes, Syncfusion's controls are compatible with ASP.Net AJAX controls. The CallbackPanel control of Syncfusion is a panel derived class that lets you invoke AJAX style callbacks from the client and refresh only the contents of the panel in the server.

The common usage for this control is very simple.

• Drag and drop this control from the toolbox onto your page.
• Fill more controls within this panel.
• Decide when to invoke a callback on this panel. For example, on a button click or listbox selection change.
• Write java script code to invoke the callback on the panel, from the button element's click, for example, as follows:

_sfCallbackPanel1.callback('some args');

• This will load the page on the server and will call the CallbackPanel's CallbackRefresh event. In this event handler, the new values selected/changed by the user in the page are available based on which you can update the CallbackPanel's content.

protected void CallbackPanel1_CallbackRefresh(object sender, Syncfusion.Web.UI.WebControls.CancellableCallbackEventArgs e)
{
// Update CallbackPanel1 contents here.
}

So you can place the TreeView control inside the Callback panel and can refresh only the Treeview control.

Please refer the sample browser sample from the below link which illustrating the use of callback panel.

C:\Documents and Settings\User Name\My Documents\Syncfusion\EssentialStudio\5.2.0.25\Web\tools.web\Samples\2.0\CallbackPackage

Please let me know if this helps you.

Regards,
S.Rajarajeswari


SE sean.ullyatt October 18, 2007 04:14 PM UTC

Thanks for the reply, but that doesn't really answer my question. I have an existing page with multiple UpdatePanels and .NET controls. For example:

...





...

All I want to do is replace the DropDownList with Syncfusions Generic dropdown and have the page maintain the same AJAX functionality that I had before. So I modified the code as follows:

...







...

The problem I encounted was when I made this change, instead of getting a partial redraw of the page on the NodeSelected event, I got a full postback and page refresh. So what I want to know is, can I accomplish what I want using only the ASP.NET UpdatePanel, or do I have to convert all my AJAX controls to Syncfusion?



RS Rajarajeswari S Syncfusion Team October 26, 2007 11:28 AM UTC



Hi Sean,

Sorry for the delay in response.

Thank you for your interest in Syncfusion products. The issue of UpdatePanel with GenericDropDown is suspected to be a defect. Please create a new incident regarding this issue, so that we can provide you more information on the fix for this issue.

Please let me know if you have any other doubts.

Regards,
S.Rajarajeswari

Loader.
Up arrow icon