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" />
|
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!
|