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. Image for the cookie policy date

Callback panel inside usercontrol

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

8 Replies

AD Administrator Syncfusion Team 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


AD Administrator Syncfusion Team 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


AD Administrator Syncfusion Team October 16, 2006 02:31 PM UTC

Maurice,

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

Regards
Sureshsekaran


AD Administrator Syncfusion Team 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


AD Administrator Syncfusion Team 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


AD Administrator Syncfusion Team 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


AD Administrator Syncfusion Team October 17, 2006 10:42 AM UTC

Hi Maurice,

Sorry for the broken link.

Here it is...

CallbackPanelInWebUserControl.zip

Regards

Sureshsekaran


AD Administrator Syncfusion Team 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

Loader.
Live Chat Icon For mobile
Up arrow icon