Hi,
Good Morning to all!!!
I'm newbie for website projects development. So please guide me to do my task successfully.
My Questions is how to set the border style for the selected date of telerik Rad scheduler month view?
If any clarification on my question, please let me know.
Thanks in advance!!!
Sathy Jay
Hi
I need help, I have a DatePicker in my web form, I assign the value on the client side and after postback the value is lost.
In try put RadDatePicker inside the update panel and this not fix the problem.
Regards
Hello,
We are using the control asp net, radchart .
All generated from the code behind , is fully dynamic control .
The code and data extraction is fast , but when rendering the graph takes between 30 sec and 1 min . With LESS than 200 records. And when you start using will have more than 2000 records
**Sql table columns are plotted.**
**Tooltips necessarily be used.**
The shape that is made is:
tipoReporte = Telerik.Charting.ChartSeriesType.Line;RadChart1.PlotArea.XAxis.Clear();RadChart1.PlotArea.XAxis.IsZeroBased = false;RadChart1.PlotArea.YAxis.AxisMode = Telerik.Charting.ChartYAxisMode.Extended;RadChart1.PlotArea.XAxis.AutoScale = false;RadChart1.PlotArea.XAxis.AutoShrink = true;RadChart1.PlotArea.XAxis.AxisLabel.TextBlock.Text = objRep.ColumnasId[0].Text;RadChart1.PlotArea.XAxis.AxisLabel.Visible = true;for (int i = 0; i < dataSource.Tables[0].Rows.Count; i++){ RadChart1.PlotArea.XAxis.AddItem(dataSource.Tables[0].Rows[i][0].ToString()); RadChart1.PlotArea.XAxis[i].TextBlock.Text = dataSource.Tables[0].Rows[i][0].ToString(); RadChart1.PlotArea.XAxis[i].Visible = false;}RadChart1.PlotArea.XAxis.AxisLabel.Visible = false;RadChart1.Legend.Visible = false;//If there are columns to graph.if (objRep.FuncionesId.Length > 0){ #region LineaMaximo Telerik.Charting.ChartSeries chartSeries1 = new Telerik.Charting.ChartSeries(); chartSeries1.Name = "Maximo"; chartSeries1.Type = tipoReporte; chartSeries1.YAxisType = Telerik.Charting.ChartYAxisType.Primary; chartSeries1.Appearance.TextAppearance.Visible = false; chartSeries1.Appearance.FillStyle.MainColor = System.Drawing.Color.FromName("Black"); int NoPts = dataSource.Tables[0].Rows.Count; for (int y = 0; y < NoPts; y++) { Telerik.Charting.ChartSeriesItem chartItem; chartItem = new Telerik.Charting.ChartSeriesItem(100); chartSeries1.AddItem(chartItem); } chartSeries1.Appearance.PointMark.Dimensions.Width = 5; chartSeries1.Appearance.PointMark.Dimensions.Height = 5; chartSeries1.Appearance.PointMark.Visible = true; RadChart1.Series.Add(chartSeries1); #endregion #region LineaMinimo Telerik.Charting.ChartSeries chartSeries2 = new Telerik.Charting.ChartSeries(); chartSeries2.Name = "Minimo"; chartSeries2.Type = tipoReporte; chartSeries2.YAxisType = Telerik.Charting.ChartYAxisType.Primary; chartSeries2.Appearance.TextAppearance.Visible = false; chartSeries2.Appearance.FillStyle.MainColor = System.Drawing.Color.FromName("Black"); int NoPts2 = dataSource.Tables[0].Rows.Count; for (int y = 0; y < NoPts; y++) { Telerik.Charting.ChartSeriesItem chartItem; chartItem = new Telerik.Charting.ChartSeriesItem(-100); chartSeries2.AddItem(chartItem); } chartSeries2.Appearance.PointMark.Dimensions.Width = 5; chartSeries2.Appearance.PointMark.Dimensions.Height = 5; chartSeries2.Appearance.PointMark.Visible = true; RadChart1.Series.Add(chartSeries2); #endregion #region LineaNeutral Telerik.Charting.ChartSeries chartSeries3 = new Telerik.Charting.ChartSeries(); chartSeries3.Name = "Neutral"; chartSeries3.Type = tipoReporte; chartSeries3.YAxisType = Telerik.Charting.ChartYAxisType.Primary; chartSeries3.Appearance.TextAppearance.Visible = false; chartSeries3.Appearance.FillStyle.MainColor = System.Drawing.Color.FromName("Black"); int NoPts3 = dataSource.Tables[0].Rows.Count; for (int y = 0; y < NoPts; y++) { Telerik.Charting.ChartSeriesItem chartItem; chartItem = new Telerik.Charting.ChartSeriesItem(0); chartSeries3.AddItem(chartItem); } chartSeries3.Appearance.PointMark.Dimensions.Width = 5; chartSeries3.Appearance.PointMark.Dimensions.Height = 5; chartSeries3.Appearance.PointMark.FillStyle.FillSettings.HatchStyle = System.Drawing.Drawing2D.HatchStyle.DashedHorizontal; chartSeries3.Appearance.PointMark.Visible = true; RadChart1.Series.Add(chartSeries3); #endregion}RadChart1.PlotArea.XAxis.DataLabelsColumn = objRep.ColumnasId[0].Text;for (int i = 0; i < objRep.FuncionesId.Length; i++){ Telerik.Charting.ChartSeries chartSeries = new Telerik.Charting.ChartSeries(); chartSeries.Name = objRep.FuncionesId[i].Text; chartSeries.Type = tipoReporte; chartSeries.YAxisType = Telerik.Charting.ChartYAxisType.Primary; chartSeries.Appearance.TextAppearance.Visible = false; for (int j = 0; j <= dataSource.Tables[0].Rows.Count - 1; j++) { Telerik.Charting.ChartSeriesItem chartItem; if (dataProrrateo.Tables.Count > 0) { decimal valueNull = myFunctions.FormatMoneyNull(dataProrrateo.Tables[0].Rows[j][objRep.FuncionesId[i].Text].ToString()); double value = double.Parse(valueNull.ToString()); chartItem = new Telerik.Charting.ChartSeriesItem(value, value.ToString()); chartItem.ActiveRegion.Tooltip = objRep.FuncionesId[i].Text + ": " + dataSource.Tables[0].Rows[j][objRep.FuncionesId[i].Text].ToString(); chartSeries.AddItem(chartItem); } else { decimal valueNull = myFunctions.FormatMoneyNull(dataSource.Tables[0].Rows[j][objRep.FuncionesId[i].Text].ToString()); double value = double.Parse(valueNull.ToString()); chartItem = new Telerik.Charting.ChartSeriesItem(value, value.ToString()); chartItem.ActiveRegion.Tooltip = objRep.FuncionesId[i].Text + ": " + dataSource.Tables[0].Rows[j][objRep.FuncionesId[i].Text].ToString(); chartSeries.AddItem(chartItem); } } chartSeries.Appearance.PointMark.Dimensions.Width = 5; chartSeries.Appearance.PointMark.Dimensions.Height = 5; chartSeries.Appearance.PointMark.Visible = true; RadChart1.Series.Add(chartSeries);}RadChart1.PlotArea.YAxis.AxisLabel.TextBlock.Text = " ";RadChart1.PlotArea.YAxis.AxisLabel.Visible = true;RadChart1.PlotArea.YAxis.AutoScale = false;RadChart1.PlotArea.YAxis.MinValue = -120;RadChart1.PlotArea.YAxis.MaxValue = 120;RadChart1.PlotArea.YAxis.Step = 20;RadChart1.PlotArea.XAxis.Appearance.LabelAppearance.Visible = false;RadChart1.DataBind();<telerik:RadGrid ID="radgrid1" runat="server" Visible="False" MasterTableView-EnableNoRecordsTemplate="true" DataSourceID="" AllowPaging="True" PageSize="20" OnItemDataBound="radgrid1_ItemDataBound"> <MasterTableView></MasterTableView></telerik:RadGrid>If (TypeOf e.Item Is GridDataItem) Then Dim dataItem As GridDataItem = CType(e.Item, GridDataItem) dataItem("SSN4").ToolTip = dataItem("SSN").Text dataItem("Client").ToolTip = dataItem("Description").Text dataItem("Status").ToolTip = "Change date: " & dataItem("StatusChangeDate").TextEnd If<form id="form1" runat="server"> <telerik:RadScriptManager ID="scriptManagerExc" runat="server"> <Scripts> <%--Needed for JavaScript IntelliSense in VS2010--%> <%--For VS2008 replace RadScriptManager with ScriptManager--%> <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" /> <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" /> <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" /> </Scripts> </telerik:RadScriptManager> <telerik:RadAjaxLoadingPanel ID="alpExc" runat="server" EnableSkinTransparency="true" Skin="Office2007" BackgroundPosition="TopLeft"> </telerik:RadAjaxLoadingPanel><telerik:RadListView ID="lvExc" runat="server" ItemPlaceholderID="PlaceHolder1" AllowMultiFieldSorting="true" AllowPaging="true" Skin="Office2007" OnNeedDataSource="lvExc_NeedDataSource" onprerender="lvExc_PreRender"> <LayoutTemplate> <div class="RadListView RadListView_Office2007"> <table cellspacing="0"> <thead> <tr class="rlvHeader"> <th style="text-align: center;width:190px;"> Portfolio </th> <th style="text-align: center;width:100px;"> Average Actuals (SM/M) </th> <th style="text-align: center;width:100px;"> Average Pgm Plan (SM/M) </th> <th style="text-align: center;width:100px;"> Average Grp Plan (SM/M) </th> <th style="text-align: center;width:100px;"> Pgm Plan minus Grp Plan (SM/M) </th> </tr> </thead> <tfoot> <tr> <td colspan="5"> <telerik:RadDataPager ID="RadDataPager1" runat="server" PageSize="15" PagedControlID="lvExc" Skin="Office2007"> <Fields> <telerik:RadDataPagerButtonField FieldType="FirstPrev" /> <telerik:RadDataPagerButtonField FieldType="Numeric" /> <telerik:RadDataPagerButtonField FieldType="NextLast" /> <telerik:RadDataPagerPageSizeField PageSizeText="Page size: " /> <telerik:RadDataPagerTemplatePageField> <PagerTemplate> <div style="float: right"> <strong>Items <asp:Label runat="server" ID="CurrentPageLabel" Text="<%# Container.Owner.StartRowIndex+1%>" /> to <asp:Label runat="server" ID="TotalPagesLabel" Text="<%# Container.Owner.TotalRowCount > (Container.Owner.StartRowIndex+Container.Owner.PageSize) ? Container.Owner.StartRowIndex+Container.Owner.PageSize : Container.Owner.TotalRowCount %>" /> of <asp:Label runat="server" ID="TotalItemsLabel" Text="<%# Container.Owner.TotalRowCount%>" /> <br /> </strong> </div> </PagerTemplate> </telerik:RadDataPagerTemplatePageField> </Fields> </telerik:RadDataPager> </td> </tr> </tfoot> <tbody> <tr style="background-color: #9AB5DB;"> <td style="padding: 5px 7px 4px; text-align: right;"> Grand Total: </td> <td style="text-align: center; padding: 5px 7px 4px;"> <asp:Label ID="lblTotAvgAct" runat="server" /> </td> <td style="text-align: center; padding: 5px 7px 4px;"> <asp:Label ID="lblTotAvgPgm" runat="server" /> </td> <td style="text-align: center; padding: 5px 7px 4px;"> <asp:Label ID="lblTotAvgGrp" runat="server" /> </td> <td style="text-align: center; padding: 5px 7px 4px;"> <asp:Label ID="lblTotAvgPgmGrp" runat="server" /> </td> </tr> <tr id="PlaceHolder1" runat="server"> </tr> </tbody> </table> </div> </LayoutTemplate> <ItemTemplate> <tr class="rlvI"> <td style="width:190px;text-align: left;"> <asp:HyperLink ID="HyperLink1" NavigateUrl='<%# CreateHyperlink(Eval("PORTFOLIO").ToString()) %>' runat="server" Text='<%# Eval("PORTFOLIO").ToString() %>'></asp:HyperLink> </td> <td style="width:100px;text-align: center;"> <asp:Label ID="AvgActualsLabel" runat="server" Text='<%# Eval("AvgActuals") %>' /> </td> <td style="width:100px;text-align: center;"> <asp:Label ID="ProgramPlanLabel" runat="server" Text='<%# Eval("ProgramPlan") %>' /> </td> <td style="width:100px;text-align: center;"> <asp:Label ID="GroupPlanLabel" runat="server" Text='<%# Eval("GroupPlan") %>' /> </td> <td style="width:100px;text-align: center;"> <asp:Label ID="lblPgmGrpVariance" runat="server" Text='<%# Eval("PgmVsGrp") %>' /> </td> </tr> </ItemTemplate> <AlternatingItemTemplate> <tr class="rlvA"> <td style="width:190px;text-align: left;"> <asp:HyperLink ID="HyperLink1" NavigateUrl='<%# CreateHyperlink(Eval("PORTFOLIO").ToString()) %>' runat="server" Text='<%# Eval("PORTFOLIO").ToString() %>'></asp:HyperLink> </td> <td style="width:100px;text-align: center;"> <asp:Label ID="AvgActualsLabel" runat="server" Text='<%# Eval("AvgActuals") %>' /> </td> <td style="width:100px;text-align: center;"> <asp:Label ID="ProgramPlanLabel" runat="server" Text='<%# Eval("ProgramPlan") %>' /> </td> <td style="width:100px;text-align: center;"> <asp:Label ID="GroupPlanLabel" runat="server" Text='<%# Eval("GroupPlan") %>' /> </td> <td style="width:100px;text-align: center;"> <asp:Label ID="lblPgmGrpVariance" runat="server" Text='<%# Eval("PgmVsGrp") %>' /> </td> </tr> </AlternatingItemTemplate> <EmptyDataTemplate> <div id="noRecordsMsg"> <asp:Literal ID="litMsg" runat="server"></asp:Literal> </div> </EmptyDataTemplate> </telerik:RadListView><telerik:RadAjaxManager ID="ramExc" runat="server"> <AjaxSettings> <telerik:AjaxSetting AjaxControlID="btnFilterData"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="lvExc" LoadingPanelID="alpExc" /> </UpdatedControls> </telerik:AjaxSetting> <telerik:AjaxSetting AjaxControlID="btnForceRefresh"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="lvExc" LoadingPanelID="alpExc" /> </UpdatedControls> </telerik:AjaxSetting> <telerik:AjaxSetting AjaxControlID="lvExc"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="lvExc" LoadingPanelID="alpExc" /> </UpdatedControls> </telerik:AjaxSetting> </AjaxSettings></telerik:RadAjaxManager><div id="submitButton"> <asp:Button ID="btnFilterData" runat="server" Text="Filter Data" Font-Names="Tahoma, Arial, Helvetica, Sans-Serif" Font-Size="11px" onclick="btnFilterData_Click" CausesValidation="true" /></div><div id="refreshButton"> <asp:Button ID="btnForceRefresh" runat="server" Text="Refresh Data" Font-Names="Tahoma, Arial, Helvetica, Sans-Serif" Font-Size="11px" CausesValidation="false" onclick="btnForceRefresh_Click" /> </div> <asp:Label ID="Label1" Text='<%$ appSettings:ImageResizeWidth %>' runat="server" style="display: none;" />
<asp:Label ID="Label2" Text='<%$ appSettings:ImageResizeHeight %>' runat="server" style="display: none;" />
initialize: function () { $IE.Crop.callBaseMethod(this, "initialize"); this._xTxt = this._getControlFromParent("txtX"); this._yTxt = this._getControlFromParent("txtY"); this._widthTxt = this._getControlFromParent("txtWidth"); this._heightTxt = this._getControlFromParent("txtHeight"); this._presetDD = this._findControlFromParent("rieAspectRatio"); this._cropBtn = this._findControlFromParent("btnApply"); this._cancelBtn = this._findControlFromParent("btnCancel"); this._constraintBtn = this._findControlFromParent("btnConstraint"); this._swapBtn = this._findControlFromParent("btnSwap"); this._sizeRatio = null; this._zoomLevel = this._getImageZoomLevel(); this._createCropBox(); this._updateControlsFromCropBox(); this._constraintBtnClick(this._constraintBtn); this._attachHandlers(true); this.get_imageEditor().get_formDecorator().decorate($get(this.get_parentId() + "Table")); this.set_width(this._getControlFromParent("Label1").innerText); //where the size fixing is called this.set_height(this._getControlFromParent("Label2").innerText); //where the size fixing is called },... set_width: function (value) { var imageSize = this.get_imageSize(); var bounds = this._cropBox.getBounds(); alert(bounds.x); //returns in Chrome deployed -0.000002741..... all other returns 0 alert(imageSize.width); //returns in Chrome deployed 257..... all other returns 256 value = this._restrictValue(value, 0, imageSize.width - bounds.x); alert(imageSize.height); //returns in Chrome deployed 257..... all other returns 256 alert(bounds.y); //returns in Chrome deployed -0.000002741..... all other returns 0 value = this._applyWidthConstraintRatio(value, imageSize.height - bounds.y); this.set_inputValue(this._widthTxt, value); }this._getControlFromParent("Label1").innerText and this._getControlFromParent("Label2").innerText from code above returns "undefined" instead of 256 like all other browsers mentioned.
Please help
TIA