Welcome Guest Search | Active Topics | Sign In | Register

DatePicker SelectionChanged event problem Options
AssuranceAmerica
Posted: Tuesday, July 17, 2007 12:44:12 PM
Rank: Newbie
Groups: Member

Joined: 7/17/2007
Posts: 3
Hi,

While evaluating your controls, we have come up with a problem with the DatePicker that we cannot seem to get around. When the date is changed using the button the SelectionChanged event fires, but when the date is changed by typing in the textbox the event does not fire. Is there a way to have the event fire regardless of how the date is changed? I feel like I must be missing a setting or something.

Thanks,
Kirk
eo_support
Posted: Tuesday, July 17, 2007 1:02:57 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,217
Hi Kirk,

We tried with the latest version (4.0.23) and it seems to work fine. Our test is:

1. Put a DatePicker and a Button in the page;
2. Create a handler for the DatePicker's SelectionChanged event;
3. Set a break point in that handler;

We then ran the page, typed in a date in the DatePicker and click the button to submit the page and the breakpoint is hit.

Would you mind to try the same and see if it works on your side?

Thanks
AssuranceAmerica
Posted: Tuesday, July 17, 2007 2:01:17 PM
Rank: Newbie
Groups: Member

Joined: 7/17/2007
Posts: 3
Thanks for the quick response.

I can duplicate the test that you listed, but unfortunately the web page that we were testing it on is supposed to update itself without the use of a submit button.

The web page that we were trying the DatePicker in has an asp:textbox control in which the user enters a date. The autopostback property is set to true on that textbox to allows us to handle the TextChanged event when the user enters the date and then tabs off to the next control, or clicks somewhere else. We were trying to simulate this same functionality with the DatePicker, and it worked when we changed the date by using the popup calendar, but not when the textbox was changed.

eo_support
Posted: Tuesday, July 17, 2007 2:40:07 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,217
Thanks for the additional information. We looked into the issue and noticed that the Calendar currently does not have an equivalent of the AutoPostBack property on a TextBox control. Calendar has two properties: AutoPostBackOnScroll and AutoPostBackOnSelect. AutoPostBackOnSelect is the closest of AutoPostBack on a TextBox.

One option is for us to extend AutoPostBackOnSelect to cover situation that AutoPostBack covers for a TextBox: contents changed after user has tabbed away from the control. That way the page will go back to the server (thus triggers SelectionChanged event) when the user has changed the date and the focus leaves the DatePicker. Please confirm whether this is your situation. If this is the situation, we should be able to make an update build for you very soon.

Thanks
AssuranceAmerica
Posted: Wednesday, July 18, 2007 5:30:25 AM
Rank: Newbie
Groups: Member

Joined: 7/17/2007
Posts: 3
Yes, that is the situation. I look forward to trying the update when it is available. Other than this one situation, we have been pleased with what we have seen with this product.

Thanks for the support.
eo_support
Posted: Wednesday, July 18, 2007 6:23:46 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,217
Great. We will let you know once the update is available.


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.