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

Callback panel inside usercontrol

Thread ID:

Created:

Updated:

Platform:

Replies:

50561 Oct 14,2006 03:19 AM UTC Oct 17,2006 11:00 PM UTC ASP.NET Web Forms (Classic) 8
loading
Tags: Tools
Maurice
Asked On October 14, 2006 03:19 AM UTC

I can''t seem to make a call back when I have a callback panel inside a user control

am I missing something?



usercontrol0.zip

Administrator [Syncfusion]
Replied On October 14, 2006 12:53 PM UTC

Hi Maurice,

When CallbackPanel is placed inside any user control, callback should be invoked as
'__sfWebUserControl1_CallbackPanel1.callback();'
For usercontrol0.zip call like
'__sfWebUserControl1_customerhistoryPanel.callback();'


For your information, ClientObjectID property has been implemented in CallBackPanel which allows you to specify custom client side script object identifier. It will be available with the upcoming packs which will avoid the above inconvenience.

Regards
Sureshsekaran

Administrator [Syncfusion]
Replied On October 16, 2006 11:31 AM UTC

This isn't working as I didn't mention in my example that the user control is add dynamically there for it's doesn't have a parent id until it is render but I don't know what it is...is this still possible?

>Hi Maurice,

When CallbackPanel is placed inside any user control, callback should be invoked as
'__sfWebUserControl1_CallbackPanel1.callback();'
For usercontrol0.zip call like
'__sfWebUserControl1_customerhistoryPanel.callback();'


For your information, ClientObjectID property has been implemented in CallBackPanel which allows you to specify custom client side script object identifier. It will be available with the upcoming packs which will avoid the above inconvenience.

Regards
Sureshsekaran

Administrator [Syncfusion]
Replied On October 16, 2006 02:31 PM UTC

Maurice,

We are looking into this, we will get back to you shortly.

Regards
Sureshsekaran

Administrator [Syncfusion]
Replied On October 17, 2006 12:07 AM UTC

would setting the clientId of the usercontrol in code when it is added solve the issue? I am unable to test as I am not in fron ot my development machine

>Maurice,

We are looking into this, we will get back to you shortly.

Regards
Sureshsekaran

Administrator [Syncfusion]
Replied On October 17, 2006 08:18 AM UTC

I have solved it the problem is my inexperience with javascript

function selectcusthist(param)
{


__sfhistlist_customerhistoryPanel.callback(param);

return false;
}


>would setting the clientId of the usercontrol in code when it is added solve the issue? I am unable to test as I am not in fron ot my development machine

>Maurice,

We are looking into this, we will get back to you shortly.

Regards
Sureshsekaran

Administrator [Syncfusion]
Replied On October 17, 2006 09:59 AM UTC

Hi Maurice,

Glad to hear that you have resolved the problem.
As said in the earlier post, have attached a sample illustrating to add WebUserControl dynamically.

CallbackPanelInWebUserControl.zip

Regards,

Sureshsekaran

Administrator [Syncfusion]
Replied On October 17, 2006 10:42 AM UTC

Hi Maurice,

Sorry for the broken link.

Here it is...

CallbackPanelInWebUserControl.zip

Regards

Sureshsekaran

Administrator [Syncfusion]
Replied On October 17, 2006 11:00 PM UTC

the key to getting this to work is setting the controls id so you can refer to it later thanks guys the great support you guys give has also helped me make my decision in purchasing your products the product is only as good as the support.

>Hi Maurice,

Sorry for the broken link.

Here it is...

CallbackPanelInWebUserControl.zip

Regards

Sureshsekaran

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.

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

;