Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
85 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
136 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
68 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
107 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
449 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
90 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
2 answers
111 views
I have two the same select tags in my html that generate different results after rendering;

selectbox 1:

original html:

<select id="ctl00_ctrlLocaleList" name="ctl00$ctrlLocaleList" onchange="javascript:setTimeout('__doPostBack(\'ctl00$ctrlLocaleList\')') ">
<option value="nl-NL" selected="selected">Nederlands</option>
<option value="de-DE">Deutsch</option>
<option value="en-US">United Kingdom</option>
</select>




output:


 <a style="width: 122px;" class="rfdSelect rfdSelect_mt" tabindex="-1" unselectable="on" id="Skinnedctl00_ctrlLocaleList" href="javascript:void(0)">
 <span class="rfdSelectOuter">
 <span class="rfdSelectText">Nederlands</span>
 </span>
 </a>
 <select _rfddecoratedid="Skinnedctl00_ctrlLocaleList" class="rfdRealInput" id="ctl00_ctrlLocaleList" name="ctl00$ctrlLocaleList" onchange="javascript:setTimeout('__doPostBack(\'ctl00$ctrlLocaleList\')') ">
 <option value="nl-NL" selected="selected">Nederlands</option>
 <option value="de-DE">Deutsch</option><option value="en-US">United Kingdom</option>
 </select>




Selectbox 2

original html:

<select size="1" id="Color_3185_3234" name="Color_3185_3234" onchange="">
<option value="-,-">Kleur</option>
<option value="Blauw,Blauw">Blauw</option>
<option value="Geel,Geel">Geel</option>
<option value="Groen,Groen">Groen</option>
<option value="Oranje,Oranje">Oranje</option>
<option value="Roze,Roze">Roze</option>
<option value="Wit,Wit">Wit</option>
</select>




output:

<div style="overflow-y: auto; width: 67px; height: 20px;" class="rfdSelectBox rfdSelectBox_mt" id="SkinnedColor_3185_3234">
<ul>
<li class="rfdSelect_selected" unselectable="on">Kleur</li>
<li unselectable="on">Blauw</li>
<li unselectable="on">Geel</li>
<li unselectable="on">Groen</li>
<li unselectable="on">Oranje</li>
<li unselectable="on">Roze</li>
<li unselectable="on">Wit</li>
</ul>
</div>
<select _rfddecoratedid="SkinnedColor_3185_3234" class="rfdRealInput" size="1" id="Color_3185_3234" name="Color_3185_3234" onchange="">
<option value="-,-">Kleur</option>
<option value="Blauw,Blauw">Blauw</option>
<option value="Geel,Geel">Geel</option>
<option value="Groen,Groen">Groen</option>
<option value="Oranje,Oranje">Oranje</option>
<option value="Roze,Roze">Roze</option>
<option value="Wit,Wit">Wit</option>
</select>



Any idea why this renders different results? Option 1 seems to be correct, the second one fails (visually).
Using IE9 and 2012-1.411.35.
Fit2Page
Top achievements
Rank 2
Bronze
Iron
Iron
 answered on 11 Jun 2012
4 answers
247 views
I've just implemented a timezone drop down for my scheduler like your online demo shows. That works fine. When I select the timezone from the drop down, I'm able to create appointments according to the timezone selected.

The problem I'm running into is exporting the appointment to ICal. I've used the code from the online example 'How to preserve the time of the appointment when exporting to iCalendar' It works fine locally on my development machine. The file exports to outlook with the same time/date shown on the scheduler. However, when I run the page from our web server, which is in the Central Time Zone, when I export the appointment from my machine in the eastern time zone, the times on the export file are an hour ahead of the appointment time shown on the scheduler.

Any ideas on what could be causing this issue?
Plamen
Telerik team
 answered on 11 Jun 2012
1 answer
63 views
Hi Team,

We are currently migrating an application developed as sharepoint farm solution to sandboxed solution. I have used update panels to avoid the postbacks in my farm solution. Knowing that ajax/telerik controls are not supported in sandboxed solution, do i have any alternative to replace the update panels functionality in sandboxed environment. I want to avoid un necessary post backs.

Thanks,
Bhanu.
Marin
Telerik team
 answered on 11 Jun 2012
6 answers
122 views

Find enclosed an example website where the autopostback of a RadComboBox isn’t fired anymore after a couple of times. Most of the time it works, but when you follow this scenario it stops working:

 

Select items 1, 2 and 3 of the first ComboBox and wait for postback

Deselect items 2 and 3 and wait for postback

Select items 2 and 3 again => No postback anymore

 

Could anyone explain me why this is, if it can be solved by us, or if it is a bug ?

 

We’re using Telerik version 2011.2.915.40

Link to demo project:
http://www.gildebt.nl/ComboBox.rar

Frank
Top achievements
Rank 1
 answered on 11 Jun 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?