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.
Unfortunately, activation email could not send to your email. Please try again.

CallbackPanel in a ContentPlaceholder Ver. 5

Thread ID:

Created:

Updated:

Platform:

Replies:

64453 Jul 20,2007 01:05 PM Aug 3,2007 08:52 AM ASP.NET Web Forms (Classic) 9
loading
Tags: Tools
James
Asked On July 20, 2007 01:05 PM

I have followed several posts and sources with no luck. I am simply trying to get the callback to fire on the callbackpanel. On a page that is linked to a master page, with the second contentplaceholder, I have tried to get that to work.

function OnUpdateClick(param)
{
__sfct100_ContentPlaceHolder2_CallbackPanel1.callback(param)
}

Every time I click the button that triggers this function, I get the
__sfct100_ContentPlaceHolder2_CallbackPanel1 is undefined error.

I have the latest version. Version 5.

James
Replied On July 20, 2007 02:02 PM

I found that ct100_ContentPlaceHolder2_CallbackPanel1.callback(param) does get to the object, but i get an error saying that the object does not support the property or method.


>I have followed several posts and sources with no luck. I am simply trying to get the callback to fire on the callbackpanel. On a page that is linked to a master page, with the second contentplaceholder, I have tried to get that to work.

function OnUpdateClick(param)
{
__sfct100_ContentPlaceHolder2_CallbackPanel1.callback(param)
}

Every time I click the button that triggers this function, I get the
__sfct100_ContentPlaceHolder2_CallbackPanel1 is undefined error.

I have the latest version. Version 5.

Valli [Syncfusion]
Replied On July 23, 2007 08:34 AM

Hi James,

Thank you for choosing Syncfusion products.

Attached is the sample as per your requirement.

http://www.syncfusion.com/Support/user/uploads/Forum64453_607d1f25.zip

In the sample CallbackPanel is placed inside the ContentPlaceHolder of the MasterPlace,is referred by using its
'ClientObjectId'.

for eg: it is referred as

CallbackPanel1.callback(param);

instead referring it as __sfct100_ContentPlaceHolder2_CallbackPanel1.callback(param).

Here the CallbackPanel1 is the ClientObjectId.

Please try running the sample and let us know if it helps you.

Regards,
Valli

James
Replied On July 23, 2007 08:52 AM

Thanks for the reply. I have been able to finally get the object and the procedure to fire properly. At this time, I am having an issue with the grid refreshing. I have an external SQL source, dropdowncalendercontrol, button for to trigger the load, a callbackpanel with a gridgroupingcontrol that has a visible property of false. On btnLoad click, I reference the date and get the data from the sql source. Then I do a databind to a datatable in memory, and make the visible property to true. This is not working. The callbackpanel keeps the window.status = "Refreshing..." I put a breakpoint in the code and it seams to finish the CallbackRefresh procedure without changing the page.

I initially had the page just constantly doing postbacks and reloading the page. I thought I would try using a callbackpanel so that the page wouldn't be refreshing. Any help would be appreciated.



>Hi James,

Thank you for choosing Syncfusion products.

Attached is the sample as per your requirement.

http://www.syncfusion.com/Support/user/uploads/Forum64453_607d1f25.zip

In the sample CallbackPanel is placed inside the ContentPlaceHolder of the MasterPlace,is referred by using its
'ClientObjectId'.

for eg: it is referred as

CallbackPanel1.callback(param);

instead referring it as __sfct100_ContentPlaceHolder2_CallbackPanel1.callback(param).

Here the CallbackPanel1 is the ClientObjectId.

Please try running the sample and let us know if it helps you.

Regards,
Valli

James
Replied On July 23, 2007 09:46 AM

Ok. I have it now. I was still in the Windows form mindset. I had two lines of code trying to update the page title and update the window.status on callback. I guess they don't work. Once I commented them out, the grid started working. Now I have to get the scrollbars working. Plugging away....


>Thanks for the reply. I have been able to finally get the object and the procedure to fire properly. At this time, I am having an issue with the grid refreshing. I have an external SQL source, dropdowncalendercontrol, button for to trigger the load, a callbackpanel with a gridgroupingcontrol that has a visible property of false. On btnLoad click, I reference the date and get the data from the sql source. Then I do a databind to a datatable in memory, and make the visible property to true. This is not working. The callbackpanel keeps the window.status = "Refreshing..." I put a breakpoint in the code and it seams to finish the CallbackRefresh procedure without changing the page.

I initially had the page just constantly doing postbacks and reloading the page. I thought I would try using a callbackpanel so that the page wouldn't be refreshing. Any help would be appreciated.



>Hi James,

Thank you for choosing Syncfusion products.

Attached is the sample as per your requirement.

http://www.syncfusion.com/Support/user/uploads/Forum64453_607d1f25.zip

In the sample CallbackPanel is placed inside the ContentPlaceHolder of the MasterPlace,is referred by using its
'ClientObjectId'.

for eg: it is referred as

CallbackPanel1.callback(param);

instead referring it as __sfct100_ContentPlaceHolder2_CallbackPanel1.callback(param).

Here the CallbackPanel1 is the ClientObjectId.

Please try running the sample and let us know if it helps you.

Regards,
Valli

James
Replied On July 23, 2007 02:50 PM

I have a related issue. Why am I unable to referenc the DropDownCalendarControl.Text or Value? What I am trying to do is change the window.status in Javascript. See the following.



It displays in the status area, but the value is "undefined".


>Ok. I have it now. I was still in the Windows form mindset. I had two lines of code trying to update the page title and update the window.status on callback. I guess they don't work. Once I commented them out, the grid started working. Now I have to get the scrollbars working. Plugging away....


>Thanks for the reply. I have been able to finally get the object and the procedure to fire properly. At this time, I am having an issue with the grid refreshing. I have an external SQL source, dropdowncalendercontrol, button for to trigger the load, a callbackpanel with a gridgroupingcontrol that has a visible property of false. On btnLoad click, I reference the date and get the data from the sql source. Then I do a databind to a datatable in memory, and make the visible property to true. This is not working. The callbackpanel keeps the window.status = "Refreshing..." I put a breakpoint in the code and it seams to finish the CallbackRefresh procedure without changing the page.

I initially had the page just constantly doing postbacks and reloading the page. I thought I would try using a callbackpanel so that the page wouldn't be refreshing. Any help would be appreciated.



>Hi James,

Thank you for choosing Syncfusion products.

Attached is the sample as per your requirement.

http://www.syncfusion.com/Support/user/uploads/Forum64453_607d1f25.zip

In the sample CallbackPanel is placed inside the ContentPlaceHolder of the MasterPlace,is referred by using its
'ClientObjectId'.

for eg: it is referred as

CallbackPanel1.callback(param);

instead referring it as __sfct100_ContentPlaceHolder2_CallbackPanel1.callback(param).

Here the CallbackPanel1 is the ClientObjectId.

Please try running the sample and let us know if it helps you.

Regards,
Valli

Valli [Syncfusion]
Replied On August 1, 2007 09:00 AM

Hi James,

Could you please refer the below forum thread,

http://www.syncfusion.com/support/Forums/message.aspx?&MessageID=64993

to change the window status.

Thank you for your patience.

Regards,
Valli

James
Replied On August 2, 2007 02:54 PM

The sample page didn't do anything except change the date in the calendercontrol.


>Hi James,

Could you please refer the below forum thread,

http://www.syncfusion.com/support/Forums/message.aspx?&MessageID=64993

to change the window status.

Thank you for your patience.

Regards,
Valli

Valli [Syncfusion]
Replied On August 3, 2007 05:41 AM

Hi James,

I am able to reproduce the problem specified by you.

When you open the link,

http://websamples.syncfusion.com/samples/Tools.Web/5.1.0.51/Forum-64993/main.htm

directly in our browser[IE7] you couldn't get the status text displayed at the bottom. Whereas the status text gets displayed correctly in IE6.

Could you please do the following

1. Download the folder Callback.zip in the link .

http://websamples.syncfusion.com/samples/Tools.Web/5.1.0.51/Forum-64993/main.htm

2. Unzip and run the application in your local machine and please let us know if you are able to view the status bar text in both IE6 and IE7 browsers.

Thank you for your patience.

Regards,
Valli

James
Replied On August 3, 2007 08:52 AM

This didn't accomplish it. The message last under a second and isn't seen. My workaround, written earlier is the closest. I need the "Refreshing..." message changed during callback, Not after callback, as shown in my workaround.

>Hi James,

I am able to reproduce the problem specified by you.

When you open the link,

http://websamples.syncfusion.com/samples/Tools.Web/5.1.0.51/Forum-64993/main.htm

directly in our browser[IE7] you couldn't get the status text displayed at the bottom. Whereas the status text gets displayed correctly in IE6.

Could you please do the following

1. Download the folder Callback.zip in the link .

http://websamples.syncfusion.com/samples/Tools.Web/5.1.0.51/Forum-64993/main.htm

2. Unzip and run the application in your local machine and please let us know if you are able to view the status bar text in both IE6 and IE7 browsers.

Thank you for your patience.

Regards,
Valli

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.

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.

;