or
<script type="text/javascript"> function onRequestStart(sender, args) { if (args.get_eventTarget().indexOf("ExportToExcelButton") >= 0 || args.get_eventTarget().indexOf("ExportToWordButton") >= 0 || args.get_eventTarget().indexOf("ExportToCsvButton") >= 0 || args.get_eventTarget().indexOf("ExportToPdfButton") >= 0) { args.set_enableAjax(false); } if (args.get_eventTarget().indexOf("FilesMenu") >= 0) { alert("ET: " + args.get_eventTarget()); alert("EA: " + args.get_eventArgument()); alert("ETE ID: " +args.get_eventTargetElement().id); args.set_enableAjax(false); } } </script>if (RadGridOSPProposal.Style["display"] != null && RadGridOSPProposal.Style["display"].ToString() == "none") RadGridOSPProposal.Style["display"] = ""; else RadGridOSPProposal.Style.Add("display", "none");
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"> <title></title></head><body> <form id="form1" runat="server"> <div> <asp:ScriptManager ID="ScriptManager1" runat="server" /> <telerik:RadFileExplorer ID="RadFileExplorer1" runat="server"> <Configuration UploadPaths="/Uploads/examples" ViewPaths="/Uploads/examples" DeletePaths="/Uploads/examples" MaxUploadFileSize="2097151000" SearchPatterns=".jpg" /> </telerik:RadFileExplorer> </div> </form></body></html>private void LoopEvents(){ RadListBox rlbResources = PanelBar.Items[0].Items[0].FindControl("rlbResources") as RadListBox; DataTable dt; string canceled = "Canceled"; string sql = "SELECT * FROM AppointmentResource"; string errString = ""; DateTime currdt = Convert.ToDateTime("1/1/1901"); dt = PageData.GetData(sql, ref errString).Tables[0]; if (rlbResources.Items.Count == 0) rlbResources.DataBind(); foreach (Telerik.Web.UI.RadDate rd in RadCalendar1.SelectedDates) { foreach (Telerik.Web.UI.Appointment a in RadScheduler1.Appointments) { foreach (Telerik.Web.UI.RadListBoxItem l in rlbResources.Items) { if (l.Checked & a.Resources.GetResource("Resource", Convert.ToInt32(l.Value)) != null) { //Occurrences of a recurrence master are not generated untill they //are within RadScheduler's visible range. This mandates the occurrences //information to be extracted from the Master's recurrence rule as follows: if ((a.RecurrenceState == RecurrenceState.Master) & RadCalendar1.SelectedDates.Count > 1) { RecurrenceRule parsedRule; RecurrenceRule.TryParse(a.RecurrenceRule.ToString(), out parsedRule); //If a recurring appointment does not have specified end time it will have //endless occurrences. In this case you can explicitly put a restriction: if (RadCalendar1.SelectedDates.Count > 1) parsedRule.SetEffectiveRange(RadCalendar1.SelectedDates[0].Date, RadCalendar1.SelectedDates[RadCalendar1.SelectedDates.Count - 1].Date); else parsedRule.SetEffectiveRange(RadCalendar1.SelectedDate.AddDays(-1), RadCalendar1.SelectedDate.AddDays(1)); foreach (DateTime occurrence in parsedRule.Occurrences) { if (occurrence.ToShortDateString() == rd.Date.ToShortDateString()) { //We have a match } } } else //Get the rest of the appointments //If the SelectedDate of RadScheduler is set so that the visible range encompasses occurences of //a recurring appointement, these occurences will be generated now so they will be added once again //to the DataTable. To prevent this, we use the following check: //if (a.RecurrenceState != RecurrenceState.Occurrence) //{ if (WithinDate(a.Start, a.End, rd.Date)) { //We have a match } //} } } } }}