<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server"> <script type="text/javascript"> function FocusMenu(menu, eventArgs) { menu.get_items().getItem(0).get_linkElement().focus(); } </script> </telerik:RadCodeBlock> <telerik:RadGrid ID="RadGridAxOrder" runat="server" DataSourceID="sdsAxOrderView" AllowPaging="True" AllowSorting="True" AllowFilteringByColumn="True" GridLines="None" AutoGenerateColumns="False" onitemcommand="RadGridAxOrder_ItemCommand" onprerender="RadGridAxOrder_PreRender"> <GroupingSettings CaseSensitive="false" /> <ClientSettings AllowKeyboardNavigation="true" > <KeyboardNavigationSettings FocusKey="G" /> </ClientSettings> <MasterTableView AutoGenerateColumns="False" DataSourceID="sdsAxOrderView"> <Columns> <telerik:GridBoundColumn DataField="ordreNr" FilterControlAltText="Filter ordreNr column" HeaderText="Ordrenr." ReadOnly="True" SortExpression="ordreNr" UniqueName="ordreNr"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="ordreNavn" FilterControlAltText="Filter ordreNavn column" HeaderText="Ordrenavn" SortExpression="ordreNavn" UniqueName="ordreNavn"> </telerik:GridBoundColumn> And so on protected void RadGridAxOrder_ItemCommand(object sender, Telerik.Web.UI.GridCommandEventArgs e) { if (e.CommandName == "Edit") { e.Canceled = true; } } protected void RadGridAxOrder_PreRender(object sender, EventArgs e) { RadGridAxOrder.FilterMenu.OnClientShown = "FocusMenu"; } }<telerik:RadChart ID="RadChart1" runat="server" ChartImageFormat="Jpeg" ChartTitle-Visible="True"> <Appearance BarWidthPercent="60" ></Appearance> <Legend Appearance-Position-AlignedPosition="BottomLeft" Appearance-Location="OutsidePlotArea" > <TextBlock Appearance-Position-AlignedPosition="BottomLeft"></TextBlock> </Legend> <ChartTitle TextBlock-Text="Forecast Vs Plan" > </ChartTitle> <Series> <telerik:ChartSeries DataYColumn="Base" Name="Base"> <Appearance FillStyle-MainColor="#ffff66" FillStyle-SecondColor="#ffff66" Border-Color="#000000" Border-PenStyle="Solid"> </Appearance> </telerik:ChartSeries> <telerik:ChartSeries DataYColumn="Plan" Name="Plan"> <Appearance FillStyle-MainColor="#ff0033" FillStyle-SecondColor="#ff0033" Border-Color="#000000" Border-PenStyle="Solid"> </Appearance> </telerik:ChartSeries> <telerik:ChartSeries DataYColumn="ForeCast" Name="ForeCast" > <Appearance FillStyle-MainColor="#6600cc" FillStyle-SecondColor="#6600cc" Border-Color="#000000" Border-PenStyle="Solid"> </Appearance> </telerik:ChartSeries> </Series> <PlotArea Appearance-Position-Y="100"> <XAxis VisibleValues="Positive"> <Appearance MajorGridLines-PenStyle="Solid" MajorGridLines-Color="#000000"> <TextAppearance AutoTextWrap="True" ></TextAppearance> </Appearance> </XAxis> <YAxis VisibleValues="Positive" > <Appearance MajorGridLines-PenStyle="Solid" MajorGridLines-Color="#000000"></Appearance> </YAxis> </PlotArea> </telerik:RadChart>protected void Graph_Load() { decimal Plan, Base, Fore, max = 0; DataSet dsResults = new DataSet(); dsResults = ForeCastBO.loadForeCast(Setinputvalues()); DataTable dt_Graph = new DataTable(); dt_Graph.Columns.Add("Division", typeof(String)); dt_Graph.Columns.Add("Plan", typeof(String)); dt_Graph.Columns.Add("Base", typeof(String)); dt_Graph.Columns.Add("ForeCast", typeof(String)); if (dsResults.Tables[0].Rows.Count > 0) { for (int i = 0; i < dsResults.Tables[0].Rows.Count; i++) { dt_Graph.Rows.Add(dsResults.Tables[0].Rows[i][3].ToString(), Decimal.Round(Convert.ToDecimal(dsResults.Tables[0].Rows[i][2].ToString())), Decimal.Round(Convert.ToDecimal(dsResults.Tables[0].Rows[i][4].ToString())), Decimal.Round(Convert.ToDecimal(dsResults.Tables[0].Rows[i][5].ToString()))); Plan = Decimal.Round(Convert.ToDecimal(dsResults.Tables[0].Rows[i][2].ToString())); Base = Decimal.Round(Convert.ToDecimal(dsResults.Tables[0].Rows[i][4].ToString())); Fore = Decimal.Round(Convert.ToDecimal(dsResults.Tables[0].Rows[i][5].ToString())); if (Plan > Base) max = Plan; else max = Base; if (Fore > max) max = Fore; } RadChart1.DataSource = dt_Graph; RadChart1.PlotArea.XAxis.DataLabelsColumn = dt_Graph.Rows[0].ToString(); int width; width = 120 * (dt_Graph.Rows.Count); RadChart1.Width = width; RadChart1.Height = 400; RadChart1.PlotArea.Appearance.FillStyle.MainColor = System.Drawing.Color.White; RadChart1.PlotArea.Appearance.FillStyle.SecondColor = System.Drawing.Color.White; RadChart1.PlotArea.YAxis.AutoScale = false; RadChart1.PlotArea.YAxis.MaxValue = Convert.ToDouble(max); RadChart1.PlotArea.YAxis.ScaleBreaks.MaxCount = 7; RadChart1.PlotArea.XAxis.Appearance.TextAppearance.TextProperties.Color = System.Drawing.Color.Black; RadChart1.PlotArea.Appearance.Dimensions.Margins.Bottom = Telerik.Charting.Styles.Unit.Pixel(100); // bind to the datasource RadChart1.DataBind(); } }Hi,
I am using the licenced version of Rad controls.
I have created a wizard using aspx pages.
on first page i have a combobox and next button. and on 2nd page i have a previous button. Previous button has code
"window.history.back(-1);" OnClientClicked event.
From first page I select item from combobox and click on next button. As a result request is redirected to 2nd page where i click on the previous button. So request is redirected to 1st page. And it shows the selected value in combobox.
But when i access the combobox selectedvalue it shows value at 0 index not the selected one.
Please suggest solution.
I'm thinking this is only something I need to worry about in my development environment, but I'd like to be sure, and if possible, find a way to supress the error.
If I have the page loaded with the Async Upload control on it, and I (1) make any change to the page, or (2) recycle the app pool, or (3) restart the application by changing the web.config, the next postback causes a huge alert window to open that shows the following:
RadUpload Ajax callback error. Source url returned invalid content: <html> <head> <title>The resource cannot be found.</title> <style> body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;} p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px} b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px} H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red } H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon } pre {font-family:"Lucida Console";font-size: .9em} .marker {font-weight: bold; color: black;text-decoration: none;} .version {color: gray;} .error {margin-bottom: 10px;} .expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; } </style> </head> <body bgcolor="white"> <span><H1>Server Error in '/CABS_Dev' Application.<hr width=100% size=1 color=silver></H1> <h2> <i>The resource cannot be found.</i> </h2></span> <font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "> <b> Description: </b>HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly. <br><br> <b> Requested URL: </b>/CABS_Dev/Telerik.RadUploadProgressHandler.ashx<br><br> <hr width=100% size=1 color=silver> <b>Version Information:</b> Microsoft .NET Framework Version:2.0.50727.4952; ASP.NET Version:2.0.50727.4955 </font> </body> </html> <!-- [HttpException]: The file '/CABS_Dev/Telerik.RadUploadProgressHandler.ashx' does not exist. at System.Web.UI.Util.CheckVirtualFileExists(VirtualPath virtualPath) at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.Compilation.BuildManager.GetVPathBuildResult(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.UI.SimpleHandlerFactory.System.Web.IHttpHandlerFactory2.GetHandler(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) at System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig) at System.Web.HttpApplication.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) --> ../Telerik.RadUploadProgressHandler.ashx?RadUrid=ddbc8bc9-8901-4652-8b85-9c7590f67636 Did you register the RadUploadProgressHandler in web.config? Please, see the help for more details: RadUpload for ASP.NET Ajax - Configuration - RadUploadProgressHandler.