Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
59 views
in my application i have lot of pages and one master page. i want to allow the customer to change the skin according to his wish in combobox in master page and i need to store the skin name along with the customer details, so that next he logins in skin loads by default. 
is it possible to set the skin master page and that makes other pages to change the skin. if yes, how can i make this possible.
Shinu
Top achievements
Rank 2
 answered on 11 Jun 2012
1 answer
77 views
 how can the width of the RadTextBox can be resized according to the aspx page width when cols property is specified and browser width is changed.
Princy
Top achievements
Rank 2
 answered on 11 Jun 2012
1 answer
67 views
How can i implement drag and drop functionality in TreeList?
Shinu
Top achievements
Rank 2
 answered on 11 Jun 2012
3 answers
204 views
Hi,

    There is a problem with adding an event handler to a RadEditor when combined with a RadWindow. First I had some issues with the toolbar, and fixed them with the proposed workaround here http://www.telerik.com/community/forums/aspnet-ajax/window/radeditor-toolbars-not-working-when-use-radwindow-as-the-container.aspx

    Unfortunately, this does not solve the issue with the registered event handlers. 

    I need to capture whatever the user types in the RadEditor. It works fine when the RadEditor is not inside a RadWindow... Is there any solution to this issue? 

  Here is an example to reproduce the problem. One RadEditor outside the RadWindow and another inside one. I tried several things, like adding a <div> as a wrapper, add an space in the Content tag, etc... but nothing works.

   Any idea how to solve this?

<form id="form1" runat="server">
     <asp:ScriptManager ID="MyScriptManager" runat="server"></asp:ScriptManager>
    <div>
     
    <telerik:RadWindow ID="RadWindow1" Width="750" Height="500" OnClientShow="OnClientShow"
    runat="server" VisibleOnPageLoad="true">
    <ContentTemplate>
        <div id="editorWrapper" style="padding: 5px; display: none;">
           <telerik:RadEditor ID="RadEditorWithRadWindow"  OnClientLoad="RadEditorWithRadWindowOnClientLoad"
           runat="server" Width="600px" Height="250px" Visible="true"
            EnableEmbeddedScripts="true">
             <Content> </Content>
        </telerik:RadEditor>  
        </div>
    </ContentTemplate>
    </telerik:RadWindow>
       <telerik:RadEditor ID="RadEditorNoRadWindow"  OnClientLoad="RadEditorNoRadWindowOnClientLoad"
       runat="server" Width="600px" Height="250px" Visible="true"
        EnableEmbeddedScripts="true">
             <Content> </Content>
        </telerik:RadEditor>
          
     <script type="text/javascript">
         function RadEditorWithRadWindowOnClientLoad(editor, args) {
             editor.attachEventHandler("onkeypress", function (e) {
                 alert('We CANNOT reach this one');
             }
            );
         }
         function RadEditorNoRadWindowOnClientLoad(editor, args) {
             editor.attachEventHandler("onkeypress", function (e) {
                 alert('We CAN reach this one');
             }
            );
         }
       function OnClientShow(sender, args) {
           // Fix the size problem in IE.
           var editorParent = $get('editorWrapper');
           editorParent.style.display = '';
           // Fixes the problem with the content area in FF and Safari
           var editor = $find('<%= RadWindow1.ContentContainer.FindControl("RadEditorWithRadWindow").ClientID %>');
           editor.onParentNodeChanged();
           var style = editor.get_contentArea().style;
           style.backgroundImage = "none";
           style.backgroundColor = "white";
       }
   </script>
    </div>
       
    </form>

Many thanks!
Marin Bratanov
Telerik team
 answered on 11 Jun 2012
1 answer
78 views
Hi There,

 I am Copying and Paste using Ctrl+C and Ctrl+V then it is working Fine but when i use Right Click Paste in a RAD Numeric text Box, the Value of the Text Box is Disappearing. Is this a Known issue?
Vasil
Telerik team
 answered on 11 Jun 2012
1 answer
127 views

Hello, I have developed a chart which looking as shown in attached. This charts keep showing the reading symbol, I did dig into the below code to remove it, but I was not able to. Please could tell me what is mistake in it?    


Chart.ASPX

<telerik:RadPageView ID="rpvCapacityTimeliness" runat="server">
                    <div style="padding: 5px; text-align: left;">
                        <asp:Button Visible="True" ID="btnZoomOutCapacityTimeLiness" Text="ResetZoomOut"
                            ToolTip="Save changes" runat="server" OnClientClick="ZoomOutCapacityTimeliness(); return false;" />
                        <asp:UpdatePanel ID="updCapacityTimeliness" runat="server" RenderMode="Inline" UpdateMode="Conditional">
                            <ContentTemplate>
                                <telerik:RadChart AutoLayout="True" Height="450px" ID="rcCapacityTimeliness" runat="server"
                                    Skin="WebBlue" Width="935px">
                                    <ClientSettings EnableZoom="True" ScrollMode="Both" />
                                    <Appearance>
                                        <FillStyle MainColor="249, 250, 251">
                                        </FillStyle>
                                        <Border Color="160, 170, 182" />
                                    </Appearance>
                                    <Legend Visible="False">
                                        <Appearance Dimensions-Margins="17.6%, 3%, 1px, 1px" Dimensions-Paddings="2px, 8px, 6px, 3px"
                                            Position-AlignedPosition="TopRight" Visible="False">
                                            <ItemTextAppearance TextProperties-Color="102, 102, 102">
                                            </ItemTextAppearance>
                                            <FillStyle MainColor="216, 222, 227">
                                            </FillStyle>
                                            <Border Color="160, 170, 182" />
                                        </Appearance>
                                    </Legend>
                                    <PlotArea>
                                        <YAxis AutoScale="True" AxisMode="Extended">
                                            <Appearance Color="160, 160, 160">
                                                <MajorGridLines Color="227, 227, 227" />
                                                <MinorGridLines Color="227, 227, 227" />
                                                <TextAppearance AutoTextWrap="False" />
                                            </Appearance>
                                            <AxisLabel>
                                                <TextBlock>
                                                    <Appearance TextProperties-Color="140, 140, 140">
                                                    </Appearance>
                                                </TextBlock>
                                            </AxisLabel>
                                        </YAxis>
                                        <EmptySeriesMessage Visible="True">
                                            <Appearance Visible="True">
                                            </Appearance>
                                        </EmptySeriesMessage>
                                        <XAxis AutoScale="True">
                                            <Appearance Color="160, 160, 160">
                                                <MajorGridLines Color="227, 227, 227" Width="0" />
                                                <TextAppearance AutoTextWrap="True" TextProperties-Color="140, 140, 140" />
                                            </Appearance>
                                            <AxisLabel>
                                                <TextBlock>
                                                    <Appearance TextProperties-Color="140, 140, 140">
                                                    </Appearance>
                                                </TextBlock>
                                            </AxisLabel>
                                        </XAxis>
                                        <Appearance Dimensions-Margins="18%, 24%, 12%, 10%">
                                            <FillStyle FillType="Solid" MainColor="">
                                            </FillStyle>
                                        </Appearance>
                                    </PlotArea>
                                    <ChartTitle>
                                        <Appearance>
                                            <FillStyle MainColor="">
                                            </FillStyle>
                                        </Appearance>
                                        <TextBlock Text="Capacity Timeliness">
                                            <Appearance TextProperties-Color="102, 102, 102" TextProperties-Font="Arial, 14pt">
                                            </Appearance>
                                        </TextBlock>
                                    </ChartTitle>
                                </telerik:RadChart>
                                <telerik:RadChart AutoLayout="True" Height="450px" ID="rcCapacityMonthlyTimeliness"
                                    runat="server" Skin="WebBlue" DefaultType="Line" Width="935px">
                                    <ClientSettings EnableZoom="True" ScrollMode="Both" />
                                    <Appearance>
                                        <FillStyle MainColor="249, 250, 251">
                                        </FillStyle>
                                        <Border Color="160, 170, 182" />
                                    </Appearance>
                                    <Series>
                                        <telerik:ChartSeries Name="Series 1">
                                            <Appearance>
                                                <FillStyle FillType="ComplexGradient" MainColor="94, 117, 142">
                                                    <FillSettings>
                                                        <ComplexGradient>
                                                            <telerik:GradientElement Color="94, 117, 142" />
                                                            <telerik:GradientElement Color="116, 138, 162" Position="0.5" />
                                                            <telerik:GradientElement Color="139, 160, 183" Position="1" />
                                                        </ComplexGradient>
                                                    </FillSettings>
                                                </FillStyle>
                                                <TextAppearance TextProperties-Color="140, 140, 140">
                                                </TextAppearance>
                                                <Border Color="73, 86, 101" />
                                            </Appearance>
                                        </telerik:ChartSeries>
                                        <telerik:ChartSeries Name="Series 2">
                                            <Appearance>
                                                <FillStyle FillType="ComplexGradient" MainColor="164, 175, 187">
                                                    <FillSettings>
                                                        <ComplexGradient>
                                                            <telerik:GradientElement Color="164, 175, 187" />
                                                            <telerik:GradientElement Color="196, 203, 212" Position="0.5" />
                                                            <telerik:GradientElement Color="221, 226, 233" Position="1" />
                                                        </ComplexGradient>
                                                    </FillSettings>
                                                </FillStyle>
                                                <TextAppearance TextProperties-Color="140, 140, 140">
                                                </TextAppearance>
                                                <Border Color="144, 150, 159" />
                                            </Appearance>
                                        </telerik:ChartSeries>
                                    </Series>
                                    <Legend Visible="False">
                                        <Appearance Dimensions-Margins="1%, 1%, 1px, 1px" Dimensions-Paddings="1px, 1px, 1px, 1px"
                                            Position-AlignedPosition="bottom" Visible="False">
                                            <ItemTextAppearance TextProperties-Color="102, 102, 102">
                                            </ItemTextAppearance>
                                            <FillStyle MainColor="216, 222, 227">
                                            </FillStyle>
                                            <Border Color="160, 170, 182" />
                                        </Appearance>
                                    </Legend>
                                    <PlotArea>
                                        <YAxis AutoScale="True" AxisMode="Extended">
                                            <Appearance>
                                                <MajorGridLines Color="227, 227, 227" />
                                                <MinorGridLines Color="227, 227, 227" />
                                                <TextAppearance AutoTextWrap="False" />
                                            </Appearance>
                                            <AxisLabel>
                                                <TextBlock>
                                                    <Appearance TextProperties-Color="140, 140, 140" Position-AlignedPosition="TopLeft">
                                                    </Appearance>
                                                </TextBlock>
                                            </AxisLabel>
                                        </YAxis>
                                        <XAxis AutoScale="True" DataLabelsColumn="RIID's" MaxValue="0" Step="0">
                                            <Appearance>
                                                <MajorGridLines Color="227, 227, 227" Width="0" />
                                                <TextAppearance AutoTextWrap="True" />
                                            </Appearance>
                                            <AxisLabel>
                                                <TextBlock>
                                                    <Appearance TextProperties-Color="140, 140, 140" Position-AlignedPosition="BottomRight">
                                                    </Appearance>
                                                </TextBlock>
                                            </AxisLabel>
                                        </XAxis>
                                        <Appearance>
                                            <FillStyle FillType="Solid" MainColor="">
                                            </FillStyle>
                                        </Appearance>
                                    </PlotArea>
                                    <ChartTitle>
                                        <Appearance>
                                            <FillStyle MainColor="">
                                            </FillStyle>
                                        </Appearance>
                                        <TextBlock Text="Capacity Timeliness">
                                            <Appearance TextProperties-Color="102, 102, 102" TextProperties-Font="Arial, 7pt"
                                                Position-AlignedPosition="Bottom">
                                            </Appearance>
                                        </TextBlock>
                                    </ChartTitle>
                                </telerik:RadChart>
                            </ContentTemplate>
                        </asp:UpdatePanel>
                    </div>
                </telerik:RadPageView>

 

 

 

 

 

 

 

Chart.ASPX.VB

Private Sub ChartLoad(ByVal ds As DataSet, ByVal radchartcontrole As RadChart, ByVal monthlyradchartcontrole As RadChart, ByRef dataXColumnName As String, ByVal dataYColumnName As String,
                                                   ByVal xaxislableName As String, ByVal yaxislableName As String, ByRef monthlyXaxislableName As String, ByVal monthlyYaxislableName As String,
                                                   ByVal monthlyYaxisDataColumn As String, ByVal monthlyXaxisDataColumn As String, ByVal avgDataColumn As String, ByVal charttableValue As Int32,
                                                   ByVal monthlytableValue As Int32, ByVal avgTableValue As Int32, ByVal chartTitle As String, ByVal updatePaneltoHide As UpdatePanel, ByVal timeLinesAvgLabel As String)

        Dim dt As DataTable = New DataTable()
        'Dim objTimeLinessMetric As New TimeLinessMetric()
        dt = ds.Tables.Item(0)
        btnZoomOutCapacityTimeLiness.Visible = True

        If Not ds.Tables(0).Rows.Count > 0 Then
            updatePaneltoHide.Visible = False
            lblAvgDisplay.Text = "No data found for the " + chartTitle
            lblAvgDisplay.ForeColor = System.Drawing.Color.Red
            lblAvgDisplay.Font.Bold = True
            lblAvgDisplay.Width = 300

        Else

            dt = ds.Tables.Item(0)

            Dim list As New List(Of TimeLinessMetric)

            Dim stinger = dataXColumnName

            'Setting the data values types, based on the tabcontrol checked.
                    For Each dr As DataRow In dt.Rows
                        Dim TimeLinessMetric As New TimeLinessMetric()
                        TimeLinessMetric.Count = Convert.ToInt32(dr(dataYColumnName))
                        If Not IsDBNull(dr(dataXColumnName)) Then
                            TimeLinessMetric.CapacityTimeliness = Convert.ToInt32(dr(dataXColumnName))
                        End If
                        list.Add(TimeLinessMetric)
                    Next

            
            radchartcontrole.Clear()

            'Defining the series and assigning the valves to series.
            Dim series As New ChartSeries()
            series.Type = ChartSeriesType.Bar
            series.DataXColumn = dataXColumnName
            series.DataYColumn = dataYColumnName

            'Adding the new series to the radchart.
            radchartcontrole.Series.Add(series)
            radchartcontrole.DataSource = list
            radchartcontrole.DataBind()

            'assinging the values to radchart X-Axis
            radchartcontrole.PlotArea.XAxis.AxisLabel.TextBlock.Text = xaxislableName
            radchartcontrole.PlotArea.XAxis.AxisLabel.Visible = True
            radchartcontrole.PlotArea.XAxis.AxisLabel.TextBlock.Appearance.TextProperties.Color = System.Drawing.Color.Red
            radchartcontrole.PlotArea.XAxis.AxisLabel.TextBlock.Appearance.Position.Auto = True

            'assinging the values to radchart Y-Axis
            radchartcontrole.PlotArea.YAxis.AxisLabel.Visible = True
            radchartcontrole.PlotArea.YAxis.AxisLabel.TextBlock.Text = yaxislableName
            radchartcontrole.PlotArea.YAxis.AxisLabel.TextBlock.Appearance.TextProperties.Color = System.Drawing.Color.Red
            radchartcontrole.PlotArea.YAxis.AxisLabel.TextBlock.Appearance.Position.Auto = True

            radchartcontrole.Series(0).Appearance.BarWidthPercent = CType("10", Decimal)

            Dim metricsAvg As String
            metricsAvg = CType(ds.Tables(avgTableValue).Rows(0).Item(avgDataColumn), String)
            radchartcontrole.ChartTitle.TextBlock.Visible = False
            radchartcontrole.Legend.Visible = False

            'Metrics Avg label display
            lblAvgDisplay.Text = timeLinesAvgLabel + metricsAvg + "days"
            lblAvgDisplay.Visible = True
            lblAvgDisplay.Font.Bold = True
            lblAvgDisplay.ForeColor = System.Drawing.Color.Red

            'Binding the monthly chart data
            monthlyradchartcontrole.Clear()
            monthlyradchartcontrole.DataSource = ds.Tables.Item(monthlytableValue)
            monthlyradchartcontrole.DataBind()
            monthlyradchartcontrole.Series(0).DataXColumn = monthlyYaxisDataColumn
            monthlyradchartcontrole.Series(0).DataYColumn = monthlyXaxisDataColumn

            monthlyradchartcontrole.PlotArea.XAxis.AxisLabel.TextBlock.Text = monthlyXaxislableName
            monthlyradchartcontrole.PlotArea.XAxis.AxisLabel.Visible = True
            monthlyradchartcontrole.PlotArea.XAxis.AxisLabel.TextBlock.Appearance.TextProperties.Color = System.Drawing.Color.Red
            monthlyradchartcontrole.PlotArea.XAxis.AxisLabel.TextBlock.Appearance.Position.Auto = True

            monthlyradchartcontrole.PlotArea.YAxis.AxisLabel.Visible = True
            monthlyradchartcontrole.PlotArea.YAxis.AxisLabel.TextBlock.Text = monthlyYaxislableName
            monthlyradchartcontrole.PlotArea.YAxis.AxisLabel.TextBlock.Appearance.TextProperties.Color = System.Drawing.Color.Red
            monthlyradchartcontrole.PlotArea.YAxis.AxisLabel.TextBlock.Appearance.Position.Auto = True

            monthlyradchartcontrole.Legend.Visible = False

        End If

    End Sub

Ves
Telerik team
 answered on 11 Jun 2012
1 answer
64 views
 I am trying to get the combobox selected item and value in the javascript.  Does the accessing of combobox in javascript change based on the version you use?  I am using Telerik 2011.3.1305.35. 

 I have a javascript file and in that i have a function which will accept client id of the radcombobox as a parameter and now how do i get the selected index, selected item and value of that combobox? .

Princy
Top achievements
Rank 2
 answered on 11 Jun 2012
1 answer
105 views
I am radchart in that if theri is no record coming from database then a message is displayed:
"there is no or empty series"

I want to customize this message. How can i do it from code-behind.
Princy
Top achievements
Rank 2
 answered on 11 Jun 2012
1 answer
430 views
Hi,
I have a page where I use RadComboBox.
I tried to set an event for SelectedIndexChanged, but ASP show me that error message.
Here my ASPX part:
<telerik:RadComboBox ID="ComboBox1" runat="server" Filter="StartsWith" Width="500"
        HighlightTemplatedItems="true" Height="300" ShowMoreResultsBox="True" SortCaseSensitive="False"
        ExpandAnimation-Type="OutQuart" AutoPostBack="true"
        onselectedindexchanged="ComboBox1_SelectedIndexChanged1">
        <HeaderTemplate>
            <table style="width: 400px" cellspacing="0" cellpadding="0">
                <tr>
                    <td style="width: 300px;">
                        Name
                    </td>
                    <td style="width: 60px;">
                        Number
                    </td>
                </tr>
            </table>
        </HeaderTemplate>
        <ItemTemplate>
            <table style="width: 400px" cellspacing="0" cellpadding="0">
                <tr>
                    <td style="width: 300px;">
                        <%# Eval("Name")%>
                    </td>
                    <td style="width: 60px;">
                        <%# Eval("Id")%>
                    </td>
                </tr>
            </table>
        </ItemTemplate>
    </telerik:RadComboBox>

Here my C# code:
protected void ComboBox1_SelectedIndexChanged1(object sender, RadComboBoxSelectedIndexChangedEventArgs e)
       {
 
       }

And the error message is:
Compiler Error Message: CS1061: 'ASP.builderform_aspx' does not contain a definition for
'ComboBox1_SelectedIndexChanged1' and no extension method 'ComboBox1_SelectedIndexChanged1'
accepting a first argument of type
 'ASP.builderform_aspx' could be found (are you missing a using directive or an assembly reference?)
 
Source Error:
 
Line 26:             VerticalPadding="0px" />
Line 27:     </asp:TreeView>
Line 28:     <telerik:RadComboBox ID="ComboBox1" runat="server" Filter="StartsWith" Width="500"
Line 29:         HighlightTemplatedItems="true" Height="300" ShowMoreResultsBox="True" SortCaseSensitive="False"
Line 30:         ExpandAnimation-Type="OutQuart" AutoPostBack="true"

TIA
Ivana
Telerik team
 answered on 11 Jun 2012
1 answer
86 views
Hi , Everybody i have a problem i am  using a datetimepicker of the telerik control now i want the changing time from the raddatetimepicker ............
Shinu
Top achievements
Rank 2
 answered on 11 Jun 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?