Welcome Guest Search | Active Topics | Sign In | Register

DatePicker does not fire SelectionChanged Event inside DataGrid or GridView Options
Wayne
Posted: Tuesday, May 1, 2012 2:15:09 AM
Rank: Newbie
Groups: Member

Joined: 5/1/2012
Posts: 1
I have DatePickers inside a DataGrid control.
When a date is selected the page posts back but the SelectionChanged event is not fired.
What is strage is the Scroll event is fired.

To test I placed another datepicker on the page outside the DataGrid and they work fine.
I also tested using the GridView control and the same issue occurs.


The datepicker is declared as follows.
<eo:DatePicker ID="eodpPkgDate" runat="server" OnScroll="eodpPkgDate_Scroll" OnSelectionChanged="eodpPkgDate_SelectionChanged" />
eo_support
Posted: Tuesday, May 1, 2012 9:18:55 AM
Rank: Administration
Groups: Administration

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

We tested this feature and it works fine. The code as you posted wouldn't fire any server event at all. In order for the DatePicker to fire Scroll event, you must set AutoPostBackOnScroll to true; In order for the DatePicker to fire SelectionChanged event, you must set AutoPostBackOnSelect to true. Both are false by default.

Check whether you have repopulated your DataGrid in Page_Load. You should do that only if the Page.IsPostBack is false. If you do not check that, then the Grid will be refreshed and all state data be wiped out before any event on the DatePicker can be fired, that can cause a lot of strange issues.

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.