Welcome Guest Search | Active Topics | Sign In | Register

Performance issues with too many Calendar objects Options
aa146214
Posted: Monday, December 14, 2009 11:30:18 AM
Rank: Newbie
Groups: Member

Joined: 12/14/2009
Posts: 1
I am evaluating the Calendar UI, but have noticed a performance issue. I have around 100 calendar fields using the Calendar UI and the page is really slow.

Doing web profiling, the cause is the Calendar. Is there a limit of how many objects we can use, or a better way to implement it.

At the minute it is creating a lot of duplication and I think is the reason for the slowness. If there was just one object for all the fields, I am sure it would be faster.

Thanks

Andrew
eo_support
Posted: Monday, December 14, 2009 2:33:52 PM
Rank: Administration
Groups: Administration

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

Thanks for posting in the forum. You definitely do not want to have 100 Calendar inside the same page because at any given time there will only be a single Calendar popup visible and the popup is what's "heavy" about the Calendar control. There are several options. But almost all of them come down to reducing number of Calendar/Popup in your page.

If you do not need user to enter the date directly, you can re-use a single popup in the page. Here is an example:

http://demo.essentialobjects.com/Default.aspx?path=Calendar\_i1\_i5

The above demo uses a single PopupCalendar control no matter how many rows you have.

Another option is to use a single DatePicker, but then move the DatePicker to the desired place when you need to edit the date. Our Grid uses it this way:

http://demo.essentialobjects.com/Default.aspx?path=Grid\_i1\_i6

If you use our Grid, then you do not need to do anything special at all. If you wish to use it this way with your own UI, then you will need to do some JavaScript coding to move the DatePicker. In practice, it's easier to put the DatePicker inside a DIV and then move that DIV.

Please feel free to let us know if you still have more questions.

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.