Rank: Member Groups: Member
Joined: 1/6/2010 Posts: 12
|
Hai,
I am using eo scheduler in my application and i tried to open a pop-up with different data regarding the date that i selected , for that i used onselectionchanged event but its not working. Below is the code that i used
protected void Calendar1_SelectionChanged(object sender, EventArgs e) { string projectDate = Calendar1.SelectedDate.ToString(); Calendar1.Attributes.Add("onClick", "return projectAndEmirate('" + projectDate + "')");
}
<eo:Calendar id="Calendar1" runat="server" TitleTemplateScope="TextOnly" ....
OnSelectionChanged="Calendar1_SelectionChanged"> ..... </eo:Calendar>
The onselectionchanged event itself not firing.kindly help me in this...
Thanks in advance
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,201
|
Hi,
SelectionChanged only works when the page posts back. You can either set the Calendar's AutoPostBackOnSelect to true to trigger a post back on select, or post back the page through other means (such as a standard button).
Thanks!
|