search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

scheduler reload requirements

Asked by Ed
24 days ago.

Hi,

Sorry…title is a bit vague but not exactly sure how to word it. I have several schedulers within my webforms-based site, and I use modals with update panels for adding/editing/etc. events within the schedule. My modals have sections contained within update panels so staff can update parts of various records quickly and without having to wait for a full round-trip to/from the server, etc.

I’m having an issue where the scheduler appears to have to be refreshed whenever any submit control (button, link button, checkbox, etc.) is clicked within the modal…even if the control doesn’t run any code that actively changes the dataset for the scheduler.

For example, my modal has a standard-looking “X” gif in the upper right-hand corner to close it out if no action was taken on the data displayed within the modal. The “X” does call a sub in the code-behind but that sub is only cleaning up form fields, etc. within the modal and then closing the modal. The “X” lives inside of an update panel that is contained within the modal, and I’ve got the “X” set as an async trigger for the update panel. However, if I do not have a command with the sub (called by the “X”) that refreshes / reloads the scheduler data I get an “Object reference not set to an instance of an object.” error when I click the “X”.

Historically when I’ve used modals and update panels I don’t think I’ve had this kind of issue - is there something in the scheduler I need to adjust?

Thanks - EW

Answer posted by Dan Letecky [DayPilot]
18 days ago.

The Scheduler doesn’t require any special treatment and it behaves like a standard ASP.NET control. In this case, it refreshes when it receives a PostBack request. I would probably focus on the close button and check whether it correctly invokes a PostBack for the target UpdatePanel only.

Comment posted by Ed
18 days ago.

Hey Dan, yup…think I figured it out - my update panel/panel structure needed some refining. I think I have that part of it straightened out.

Thanks again!

New Reply
This reply is
Attachments:
or drop files here
Your name (optional):