To my loving Telerik Community:
I write this post just in case there are others who get themselves into a situation as did I.
I have been using 2009 Q1 release since purchasing the Telerik suite of controls. The steps I took to upgrade to 2009 Q2 gave me a bit of a headache and took 2 days of productive time away. Here are the steps I took and advice what not to do.
| function RunReport(viewId) { |
| var reportWindow = window.open('DisplayView.aspx?viewId=' + viewId, '_blank', "height=700,width=900,left=20,top=20,scrollbars=auto,status=no,resizable=yes,toolbar=no,menubar=no,location=no"); |
| } |
| protected void testReport_Click(object sender, EventArgs e) |
| { |
| radViewAjaxManager.ResponseScripts.Add(string.Format("RunReport(\"{0}\");", workingView.Id)); |
| } |
Hello All,
Is it possible to code using Telerik components a dynamic BreadCrumb without any fancy Menus and get those BreadCrumb items from URLs not from xml files or Database? Like below, and those items should be links.
Home > Customer Search > Customer Results > Customer
I looked basic SiteMap control from asp.net but it seemed to have so tight connection to xml/databases.
So, has Telerik ASP.NET Ajax components have anything to offer to this issue?
I would be very glad to find a sample and/or article how to impelment it.
Cheers.
MiK
| <telerik:RadGrid ID="RadGrid1" AllowSorting="true" AllowPaging="true" AllowFilteringByColumn="true" |
| AutoGenerateColumns="false" runat="server"> |
| <MasterTableView> |
| <Columns> |
| <telerik:GridBoundColumn DataField="Id" HeaderText="Id" DataType="System.Guid" Visible="false" /> |
| <telerik:GridBoundColumn DataField="Title" HeaderText="Title" /> |
| <telerik:GridBoundColumn DataField="Cause.Name" HeaderText="Cause"/> |
| <telerik:GridBoundColumn DataField="StartDate" HeaderText="Start Date" DataFormatString="{0:d}" DataType="System.DateTime"/> |
| </Columns> |
| </MasterTableView> |
| <PagerStyle AlwaysVisible="true" /> |
| <ClientSettings> |
| <DataBinding Location="WebService.asmx" |
| SelectMethod="GetEvents" SelectCountMethod="GetEventCount" /> |
| </ClientSettings> |
| </telerik:RadGrid> |
| {"d":{"__type":"EventDTO","EntityId":"20669908-bf86-4d72-90b0-38239eb6dfa5", |
| "Type":{"Name":"Entertainment","Description":"Test","Id":"1228a7b5-43e1-4cd5-b66d-b4afd43004b7", "CreateDate":"\/Date(1240385834617)\/","LastUpdatedDate":"\/Date(1240385834617)\/","DeletedDate":null,"TimeStamp":[0,0,0,0,0,0,35,152]}, |
| "Cause":{"Name":"Global Warming1","Description":"Test","Id":"399fcb2e-0bdc-4e4b-879f-0ee0e97a5db5", |
| "CreateDate":"\/Date(1240384333727)\/","LastUpdatedDate":"\/Date(1248085361140)\/","DeletedDate":null,"TimeStamp":[0,0,0,0,0,0,164,19]},"Title":"97979978978","Sites":null,"Location":"Pakistan","Description":"Testing Description \n", "StartDate":"\/Date(1240574400000)\/","CompletionDate":"\/Date(1246230000000)\/","RequiresVolunteerApproval":false,"Id":"0da73022-7d8d-4f79-a108-61c916a49fe8","CreateDate":"\/Date(1240389765160)\/","LastUpdatedDate":"\/Date(1240389765160)\/","DeletedDate":null,"TimeStamp":[0,0,0,0,0,0,148,192]}} |
| protected void SelectedDateChange(object sender, Telerik.WebControls.Base.Calendar.Events.SelectedDatesEventArgs e) |
| { |
| objDailyReportBL = new DailyReportBL(); |
| objDailyReportSchema = new DailyReportSchema(); |
| objRoleMasterBL = new RoleMasterBL(); |
| objRoleMasterSchema = new RoleMasterSchema(); |
| if (e.SelectedDates.Count > 0) |
| { |
| IsHoliday = false; |
| if (e.SelectedDates[0].Date.DayOfWeek == DayOfWeek.Sunday) |
| { |
| IsHoliday = true; |
| } |
| else |
| { |
| if (dstHolidayList != null) |
| { |
| if (dstHolidayList.Tables.Count > 0) |
| { |
| if (dstHolidayList.Tables[0].Rows.Count > 0) |
| { |
| DataRow[] foundRows = dstHolidayList.Tables[0].Select("HolidayDate='" + e.SelectedDates[0].Date + "'"); |
| if (foundRows.Length != 0) |
| { |
| IsHoliday = true; |
| } |
| } |
| } |
| } |
| } |
| if (QueryStringProfileEmployeeID != Guid.Empty) |
| { |
| if (SessionRoleName != MasterDataHelper.USER_BDE && SessionRoleName != MasterDataHelper.USER_ADMIN) |
| { |
| if (e.SelectedDates[0].Date > SessionLastSubmittedDate || SessionLastSubmittedDate.IsNull) |
| { |
| Response.Write("<script language=javascript>alert(' " + MoleKule.Resources.Molekule.SuperiorCantViewDailyReportUntilSelfSubmits + "');self.location=('DailyReport.aspx?pid=" + GetProfileEmployeeID.ToString() + "');</script>"); |
| return; |
| } |
| } |
| objDailyReportSchema = objDailyReportBL.DailyReportRetrieve(SqlDateTime.Parse(e.SelectedDates[0].Date.ToString()), QueryStringProfileEmployeeID); |
| if ((objDailyReportSchema != null) && (objDailyReportSchema.IsReportSubmitted)) |
| { |
| Response.Redirect(MasterDataHelper.NAVIGATE_DAILYREPORT + (e.SelectedDates[0]).Date.ToString() + "&pid=" + GetProfileEmployeeID.ToString() + "&holiday=" + IsHoliday); |
| } |
| else |
| { |
| Response.Write("<script language=javascript>alert(' " + MoleKule.Resources.Molekule.DailyReportNotYetSubmitted + "');self.location=('DailyReport.aspx?pid=" + GetProfileEmployeeID.ToString() + "');</script>"); |
| //Response.Redirect(MasterDataHelper.NAVIGATE_CLIENT_DAILYREPORT + "?pid=" + QueryStringProfileEmployeeID.ToString()); |
| } |
| } |
| else |
| { |
| SqlDateTime WebConfigDT, ReportStartDate, DOJ, DateOfAct, PreDt; |
| DateOfAct = SqlDateTime.Null; |
| DOJ = SqlDateTime.Null; |
| DataSet dstDailyReport; |
| objDailyReportBL = new DailyReportBL(); |
| dstDailyReport = objDailyReportBL.DailyReportGetDOJAndDtOfActivation(SessionProfileEmployeeID); |
| if (dstDailyReport.Tables.Count > 0) |
| if (dstDailyReport.Tables[0].Rows.Count > 0) |
| { |
| DateOfAct = SqlDateTime.Parse(dstDailyReport.Tables[0].Rows[0]["ActivationDate"].ToString()); |
| DOJ = SqlDateTime.Parse(dstDailyReport.Tables[0].Rows[0]["JoiningDate"].ToString()); |
| } |
| try |
| { |
| WebConfigDT = SqlDateTime.Parse(ConfigurationManager.AppSettings["DailyReportStartDate"].ToString()); |
| } |
| catch (Exception) |
| { |
| Response.Write("<script language=javascript>alert(' " + "Report can't submit. Contact Admin." + "');self.location=('DailyReport.aspx');</script>"); |
| //WebConfigDT = SqlDateTime.Null; |
| return; |
| } |
| if (!WebConfigDT.IsNull) |
| { |
| ReportStartDate = WebConfigDT; |
| if (DOJ > ReportStartDate) |
| ReportStartDate = DOJ; |
| if (DateOfAct > ReportStartDate) |
| ReportStartDate = DateOfAct; |
| if (e.SelectedDates[0].Date < ReportStartDate) |
| { |
| DateTime tmp = Convert.ToDateTime(ReportStartDate.ToString()); |
| Response.Write("<script language=javascript>alert(' " + "Your start date of daily report is " + tmp.ToString("dd/MM/yyyy") + ". You can create report from " + tmp.ToString("dd/MM/yyyy") + " onwards." + "');self.location=('DailyReport.aspx');</script>"); |
| //Response.Redirect("DailyReport.aspx"); |
| return; |
| } |
| } |
| else |
| { |
| Response.Write("<script language=javascript>alert(' " + "Report can't submit. Contact Admin." + "');self.location=('DailyReport.aspx');</script>"); |
| return; |
| } |
| objRoleMasterSchema = objRoleMasterBL.RoleMasterRetrieveByProfileEmployeeID(SessionProfileEmployeeID); |
| if (objRoleMasterSchema.RoleName != MasterDataHelper.USER_ADMIN) |
| { |
| Response.Redirect(MasterDataHelper.NAVIGATE_DAILYREPORT + (e.SelectedDates[0]).Date.ToString() + "&holiday=" + IsHoliday); |
| } |
| } |
| } |
| } |
if (args.get_eventTarget().indexOf("DownloadPDF") > 0)
args.set_enableAjax(
false);
ClientEvents-OnRequestStart
="requestStart"
