Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
175 views
Hi,

I have been trying to use the DaysOfWeekMask property of RecurrencePattern.
I have to map the values from the database to the DaysOfWeekMask property.
suppose if i have selected Pattern frequency as Weekly
> it occurs ever 'Monday and Friday', then i am saving the value in database as 'Monday | Friday'
> it occurs ever 'Monday, Thursday, Friday', then i am saving the value in database as 'Monday | Thursday | Friday'
and many more such cases
but how can i map these values to DaysOfWeekMask,as DaysOfWeekMask accepts only values of type

 

RecurrenceDay and not the string or int

 

 

.
I know that we can assign multiple days using pipeline operator, but it is not feasible to write all the conditions in that case. So, please suggest some efficient and easy way to assign some string or integer based value to DaysOfWeekMask property.

Please revert asap.
Regards

Ivana
Telerik team
 answered on 22 May 2012
1 answer
224 views

I am having a problem with some of the tool dialogs in RadEditor.

I tried installing the latest release but the sale problem is occurring. The problem is with the Flash, MediaManager, LinkManager and TemplateManager dialogs, which all cause a 403 error. The First 2 dialog controls "ImageManager and DocumentManager" work correctly with no errora.
I have traced it down what I believe is the root cause which is the broken dialogs are generating a bad/truncated url that is missing the "Telerik.Web.UI.DialogHandler.aspx?" url portion.

Bad URL:
http://localhost:80/MySite/Providers/HtmlEditorProviders/Telerik/?tabid=184&DialogName=MediaManager..............................

http://localhost:80/MySite/Providers/HtmlEditorProviders/Telerik/?Tabid=184&DialogName=MediaManager&Skin=Vista&Title=Media%20Manager&doid=..........

Good URL:
http://localhost/MySite/Providers/HtmlEditorProviders/Telerik/Telerik.Web.UI.DialogHandler.aspx?tabid=184&DialogName=ImageManager&Skin=Vista&.......

======================

Do you have any idea why only some of the dialogs/tool have the incorrectly formatted URL and how I can resolve it.

Many thanks.

Rumen
Telerik team
 answered on 22 May 2012
1 answer
81 views
Hi,

RAD Editor control not getting focus in IOS tablet (in safari browser).I checked with your online sample. Is this issue or behavior of the editor control. 

Thanks in advance,
SumanSmith
Rumen
Telerik team
 answered on 22 May 2012
1 answer
76 views
If I purchase Radcontrol for ASP .NET AJAX($999) 
Is support for .Net1.1?


Sorry for bad English :(

Thank you.
Peter
Telerik team
 answered on 22 May 2012
2 answers
240 views
Hello,

I have following scenario. Running asp.net application on machine which has 2 hard drives, system drive C and storage drive D. On C drive there is only 50 MB of free space and on D there is 100 GB of free space. ASP.Net application files are on D drive. TemporaryFolder of the RadAsyncUpload control is set like this "../App_Data/RadUploadTemp".

The problem is that when I try to upload a file which is bigger than 50 MB (amount of free space on C drive) I get an exception: The  System.IO.IOException: There is not enough space on the disk. which is fired from Telerik.Web.UI.AsyncUploadHandler.ProcessRequest(HttpContext context). However, when file upload starts I can see that the file is created on the D drive (previously mentioned path), so it is confusing that no disk space exception is fired. Also worth mentioning is that when I try to upload a file which is 100 MB big, on the D drive I have file with the size of always less then 50 MB and then exception is fired. There was enough RAM memory.

Is there any requirement to have enough disk space on system drive?

Thanks!
Marko
Marko
Top achievements
Rank 1
 answered on 22 May 2012
10 answers
347 views
I have a list of appointment objects binding to the scheduler, one of which has a recurrence set to weekly, every Wednesday, for the following 10 weeks.

I can put a break point on my AppointmentDataBound handler and see the appointment come through and look at it's RecurrenceState and see it's set to master.

The problem is that when the calendar renders I don't see the original date or any of it's occurrences.

If I remove the following string from my databases table's RecurrenceRule field then it will show correctly on it's original start/end date.

DTSTART:20080507T100000Z  DTEND:20080507T103000Z  RRULE:FREQ=WEEKLY;COUNT=10;INTERVAL=1;BYDAY=WE

QuickWatch example can be seen here http://screencast.com/t/BUMerUhOKz

Version 2008.1.415.35 of Telerik.Web.UI.dll

Thanks!
Peter
Telerik team
 answered on 22 May 2012
3 answers
122 views
I'm trying to create a recurring appointment in the code-behind and am following the below example found here -

http://www.telerik.com/help/silverlight/radscheduler-features-recurrences-recurrence-rule.html

This code doesn't appear to work... RecurrenceRule is an abstract class so you can not create an instance of it like in the example below. Can someone give me an example of creating a recurring appointment programmatically? 

Appointment fitnessAppointment = new Appointment();
fitnessAppointment.Subject = "Fitness";
fitnessAppointment.Start = DateTime.Now;
fitnessAppointment.End = DateTime.Now.AddHours(2);
 
RecurrencePattern recurrencePattern = new RecurrencePattern();
recurrencePattern.Frequency = RecurrenceFrequency.Weekly;
recurrencePattern.MaxOccurrences = 30;
recurrencePattern.DaysOfWeekMask = RecurrenceDays.Monday | RecurrenceDays.Wednesday | RecurrenceDays.Friday;
 
RecurrenceRule recurrenceRule = new RecurrenceRule( recurrencePattern );
 
fitnessAppointment.RecurrenceRule = recurrenceRule;
Peter
Telerik team
 answered on 22 May 2012
5 answers
189 views
I have a treeview that is built on demand. When the user expands a node, that branch is dynamically built. The ExpandMode is set to "TreeNodeExpandMode.ServerSide." The problem I am having is that when the user clicks to expand a node, the page does a postBack and the window is refreshed with the top of the tree being displayed. The user will then have to scroll down to the node that they expaned to see the rest of the branch. I want the page to scroll to the last expanded node the user clicked on. I tried getting the selected node using var selectedNode = tree.get_selectedNode() but that returns null because the user has not actually selected a node. They have only expanded a node.  How can I do this if the treeview.SelectedNode has no setter?

Can someone help me? Can you please provide some sample code?
Plamen
Telerik team
 answered on 22 May 2012
1 answer
97 views
First of all, I would like to appreciate Telerik Team for supporting our critical requirement development.

  OK Coming to point.

I have to display some XY axis radchart to the user.
X-Axis values varies between -400 and +400 Or -1 and +1 (depends on data coming this X-axis value might varies)
Y-Axis values varies between 1 and +1000 (depends on data coming this X-axis value might varies)

Once user click on btnGetChartResult then I would like to show overview of the chart as attached (chart view issue due to number of x-axis scale points.png), In this chart let assume I have X-axis points from -400 to +400 (critical scenario)

If the User wants to see each and every X-axis point with their Y-axis aligned data, Then I would like to give a Zoom in option to see, Then the screen should looks like as attached(chart view issue due to number of x-axis scale points1.png).

Issue we are having with below code, If the user click on btnGetChartResult then the results are as attached(Chart display for on one 1Xaxis point.png).

Issue 1.If the chart has only 1 x-axis for whole chart, its showing zoomed view with scroll option.
Issue 2.Even If the chart has the points between -400 and +400, firstly I would like to show the chart without zoom, if the user wants, he can zoom-in the chart.
Issue 3.Even If am working with below code, sometimes it is showing various behavior in showing the data on chart, to get perfect results some times we are refreshing the chart by clicking on btnGetChartResult,

Please let me know, Where am making mistakes.
Your Help is greatly appreciated!

Thank You Very Much Telerik Team.
Satish



Chart.Aspx

<telerik:RadPageView ID="rpvCapacityTimeliness" runat="server">
                            <div style="padding: 5px; text-align: left;">
                                <asp:UpdatePanel ID="updCapacityTimeliness" runat="server" RenderMode="Inline" UpdateMode="Conditional">
                                    <ContentTemplate>
                                        <p>
                                            <telerik:RadChart AutoLayout="True" Height="450px" ID="CapacityRadChart" runat="server" Skin="WebBlue" Width="935px">
                                                <ClientSettings EnableZoom="True" ScrollMode="Both" XScale="10" />
                                                <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>
                                        </p>
                                        </ContentTemplate>
                                </asp:UpdatePanel>
                            </div>
                    </telerik:RadPageView>





Chart.Aspx.Vb


Private Sub ChartLoad(ByRef ds As DataSet, ByRef radchartcontrole As RadChart, ByRef monthlyradchartcontrole As RadChart, ByRef dataXColumnName As String, ByRef dataYColumnName As String,
                                                   ByRef xaxislableName As String, ByRef yaxislableName As String, ByRef monthlyXaxislableName As String, ByRef monthlyYaxislableName As String,
                                                   ByRef monthlyYaxisDataColumn As String, ByRef monthlyXaxisDataColumn As String, ByRef avgDataColumn As String, ByRef charttableValue As Int32,
                                                   ByRef monthlytableValue As Int32, ByRef avgTableValue As Int32, ByRef chartTitle As String, ByRef updatePaneltoHide As UpdatePanel, ByRef timeLinesAvgLabel As String)
                
            Dim dt As DataTable = New DataTable()
            dt = ds.Tables.Item(0)

    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 StressClass)

            For Each dr As DataRow In dt.Rows
                Dim sc As New StressClass()
                sc.Count = Convert.ToInt32(dr(dataYColumnName))
                sc.CapacityTimeliness = Convert.ToInt32(dr(dataXColumnName))
                list.Add(sc)
            Next

            Dim series As New ChartSeries()
            series.Type = ChartSeriesType.Bar
            series.DataXColumn = dataXColumnName
            series.DataYColumn = dataYColumnName

            radchartcontrole.Clear()

            radchartcontrole.Series.Add(series)
            radchartcontrole.DataSource = list
            radchartcontrole.DataBind()

            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

            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


Public Class StressClass
        Private _count As Integer
        Public Property Count() As Integer
            Get
                Return _count
            End Get

            Set(ByVal value As Integer)
                _count = value
            End Set
        End Property

        Private _capacityTimeliness As Integer
        Public Property CapacityTimeliness() As Integer
            Get
                Return _capacityTimeliness
            End Get
            Set(ByVal value As Integer)
                _capacityTimeliness = value
            End Set
        End Property
    End Class
Ves
Telerik team
 answered on 22 May 2012
5 answers
115 views
RadTabStrip -
Does ASP.NET AJAX RadTabStrip allow overflow with TabItemsDropDown as shown in the below link for WinForms? or is there any workaround to do the same?
http://www.telerik.com/help/winforms/tabstrip-radtabstrip-scrolling-and-overflow.html



Regards
Sachin
Kate
Telerik team
 answered on 22 May 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?