Welcome Guest Search | Active Topics | Sign In | Register

Tabstrip with Callbackpanel Options
pwellar
Posted: Thursday, March 25, 2010 4:05:08 PM
Rank: Member
Groups: Member

Joined: 5/26/2008
Posts: 22
I'm running into the problem where my page is way to large and the callbackpanel is now getting very slow. I'm wondering if it is possible to do the following.

I have 5 Tabstrips but only two of them include callbackpanels. On those two panels is it possible to have the code run in a separate page so the post pack of the panel doesn't have to reload everything? Hope this makes sense.

Thanks,
Paul
eo_support
Posted: Thursday, March 25, 2010 4:27:27 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

As soon as you are looking into a separate page, you would need to use iframe. You can put an iframe inside a PageView and then point that iframe to any page you would like.

Thanks!
pwellar
Posted: Thursday, March 25, 2010 4:36:38 PM
Rank: Member
Groups: Member

Joined: 5/26/2008
Posts: 22
So then the callback would only be for the code in the new page? Would all the information be loaded upon first load of the original page? Also would it be possible to access information from the main page to the new page? Sorry I'm not an expert web developer. Here is a nutshell of how I am using it now. First tabstrip has all the choices with a callbackpanel so when they flip between options it loads different lists to choose from. After they do all there selections and hit the submit the other tabs are populated with a table, graph and map depending on the choices. Would this be possible using the iframe? Would I see quicker response times?

Thanks!
eo_support
Posted: Thursday, March 25, 2010 4:43:54 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

Just keep in mind that these are two different pages. When you have everything inside the same page, you can use server control and CallbackPanel and interact with each other because they are within the same page. When you have two different pages, you can pass information whichever way available to pass information between two pages, such as cookies, query strings, etc. The fact that one sits inside another doesn't really matter. They are still two different pages.

Thanks!
pwellar
Posted: Thursday, March 25, 2010 5:08:32 PM
Rank: Member
Groups: Member

Joined: 5/26/2008
Posts: 22
Yikes I don't think that is going to work as there is too much information to pass back and forth. Is there anyway to find out what is bogging the callback down? I'm seeing instances where it is taking 5 seconds. I am disabling entry into the callbackpanel when posted but I've seen cases when I'm getting back partial access to the callbackpanel then the rest comes back 1-2 seconds later.

Thanks,
Paul
eo_support
Posted: Thursday, March 25, 2010 5:19:20 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

You will have to try to comment out your code block by block to find out the bottleneck.

Thanks!
pwellar
Posted: Thursday, March 25, 2010 6:02:29 PM
Rank: Member
Groups: Member

Joined: 5/26/2008
Posts: 22
I might be able to do this all in javascript. However, is there a way to access TreeView through javascript that are defined as Visble="False". It seems that these are created in the html code?

Thanks!
eo_support
Posted: Thursday, March 25, 2010 6:06:49 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
No.
pwellar
Posted: Friday, March 26, 2010 12:36:26 PM
Rank: Member
Groups: Member

Joined: 5/26/2008
Posts: 22
I found one of the controls that was really bogging down the callbackpanel, once removed it has vastly improved the performance. However, now I'm sometimes coming across a new problem with the callback. I have autodisablecontents set to true. In the callback I'm hiding a couple of TreeViews and showing some TreeViews. However, when the callback returns some of the controls are being enable before others. I have 5 active treeviews on the screen and a radiobuttonlist. Two of the treeviews and the radiobuttonlist are taking about 1-2 second longer to become enabled. This isn't happening consistently but i've seen it many times. Is there a known issue? I'm running 2007.2.

Thanks,
Paul
eo_support
Posted: Friday, March 26, 2010 2:13:42 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

I don't believe this is an issue of any control. It just takes time to load all controls and initializes them.

Thanks
pwellar
Posted: Friday, March 26, 2010 3:06:05 PM
Rank: Member
Groups: Member

Joined: 5/26/2008
Posts: 22
Is that why it's more prevelant on certain computers than others, depending on how bogged down each computer is at the time of request?

Thanks for all your help, very quick and efficient. Greatly appreciated.
eo_support
Posted: Friday, March 26, 2010 3:10:13 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

You are getting too much into general programming/troubleshooting rather than specific issues or questions related to our product. We are not in a position to give you any advice on those issues. Sorry about that!

Thanks!
pwellar
Posted: Friday, March 26, 2010 3:42:15 PM
Rank: Member
Groups: Member

Joined: 5/26/2008
Posts: 22
Sorry I'm just trying to understand how your software works. Does your callbackpanel enable the controls as soon as it returns from the server? Or does it wait until the page is loaded? Which event is this being triggered back on?

Thanks
eo_support
Posted: Friday, March 26, 2010 3:46:58 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

CallbackPanel just updates HTML. There is no such thing as "control" or "control loaded" from the browser point of view. Browsers load and parse HTML. Control is an ASP.NET concept and it only exists on the server side.

Please try to troubleshoot such problems by yourself in the future. We have tried to give you as much information as possible but you should not rely on us to troubleshoot or clarify general Web programming issues or concept for you.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.