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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

TreeView select in UpdatePanel refreshes page

Thread ID:

Created:

Updated:

Platform:

Replies:

69192 Oct 17,2007 11:17 PM UTC Oct 26,2007 11:28 AM UTC ASP.NET Web Forms (Classic) 3
loading
Tags: Tools
sean.ullyatt
Asked On October 17, 2007 11:17 PM UTC

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

Rajarajeswari S [Syncfusion]
Replied On 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

sean.ullyatt
Replied On 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?


Rajarajeswari S [Syncfusion]
Replied On 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

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.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon 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.Close Icon

;