Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
90 views

hi,

I think this is quite an extreme test but this is what happen:

+ Pass endDate to RadScheduler with the value of 30-12-9999 ( or 31-12-9999) the maximum date that a date control can support.

Then RadScheduler run into a runtime error, below is the stack trace :

System.DateTime.AddTicks(Int64 value)
System.DateTime.Add(TimeSpan value)
Telerik.Web.UI.Scheduler.Views.Timeline.Model.DataBind(AppointmentCollection appointments)
Telerik.Web.UI.Scheduler.Views.Timeline.GroupedByResource.Model.DataBind(AppointmentCollection appointments)
Telerik.Web.UI.RadScheduler.CreateContent()
Telerik.Web.UI.RadScheduler.CreateChildControls(Boolean bindFromDataSource)
System.Web.UI.Control.EnsureChildControls()
Telerik.Web.UI.RadScheduler.LoadPostData(String postDataKey, NameValueCollection postCollection)

 

The reason is : Radscheduler try to AddTick to a MaxDate value. (Currently the Timelineview.TimeSlotDuration  = 1 day - the defaulted value)

My question : Why it failed even if I pass in 30-12-9999 . Because the MaxDate should be 31-12-9999

I am thinking of only allow date <= 30-12-9999  ( but now it failed with this value 30-12-9999)

And restrict it to 29-12-9999 does not look right.

 Any idea is much appreciated.

 regards,

 Lam.

 

 

Ivan Danchev
Telerik team
 answered on 01 Oct 2015
1 answer
140 views

Hello,

Please help me with applying Server.HTMLEncode to the text in the filter textbox prior to running the filter against the dataset.

Thanks!

Eyup
Telerik team
 answered on 01 Oct 2015
1 answer
217 views

Hello

Attached picture with my problem, the filter goes behind the Popup Modal

 how to solve? in vb.net language

 my .aspx

<telerik:RadGrid ID="RadGrid2" runat="server" AllowFilteringByColumn="True" GroupPanelPosition="Top" AllowPaging="True">
                                        <ClientSettings>
                                            <Selecting AllowRowSelect="True" />
                                        </ClientSettings>
                                    </telerik:RadGrid>

Eyup
Telerik team
 answered on 01 Oct 2015
21 answers
616 views
We are in middle of migrating our ASP.NET web-form framework from Visual Studio 2008 en .Net 3.5 to Visual Studio 2013 an .Net 4.5.

The framework is build with Telerik ASP.NET AJAX and we use very few other libraries. The basic idea is that we have one main Telerik web application with a master page and a web.config file. All our application are sitting in there own folder under the main project and make use of the master page and web.config file of the main project. This have worked well for the last 5 - 6 years and also work after the migration.

But the problem is if I open a web-form page or a user control in one of our application and make changes to the html code, then all the used Telerik controls disappear from the designer.cs file of the page or user control and only the Telerik controls. This didn't happens under Visual Studio 2008 .Net 3.5.

After a lot of investigating it seems to be the use of the master page in applications under the main project.

I have build a small solution to illustrate the idea of our framework with the main project ("Framework") and one application ("App1"). If I open the default.aspx in App1 in designer mode I get error op the RadAJAXManager and the RadScriptmanager both placed in the master page - see images attached "Designer.png" and in the source mode get an error on the reference to the master page - see images "Source.aspx.png". 

Unfortunately I can't replicate the problem that the Telerik controls disappear from the designer.cs :-(

So I have two questions. What can be the reason that the Telerik controls disappears from the designer.cs and is the idea / structure of our frame work OK or is there a better way?

Anders Pedersen 
Sypher
Top achievements
Rank 1
 answered on 30 Sep 2015
4 answers
1.4K+ views

I am attempting to create my first HTML Chart. This will be a simple pie chart based on a SQL query.

 The query returns five rows with two columns of data: (1) language (English/French/etc) and (2) a count of each.

 The intention is to display a pie chart showing the relative distribution of the top five languages used in my application.

I have copied an example and also looked at the data binding documentation but have not been able to connect my data with the pie slices.

 I presume I need to add some type of template that is unique to a pie chart. All the examples I found refer to other chart types.

When I add this markup to my page I get no results unless I add a few series items directly. I see that Intellisense includes an item "db" (markup snippet for data-bind attribute).  I don't know what to do from there, it appears to be non-functional or expecting me to do something unknown to me.

 

        <telerik:RadHtmlChart runat="server" ID="RadHtmlChart1" DataSourceID="Language_Chart_Data">
    <PlotArea>
        <Series>
            <telerik:PieSeries StartAngle="90" DataFieldY="count" NameField="language">
                <SeriesItems >  
                    <telerik:PieSeriesItem BackgroundColor="#666666" Exploded="false" Name="Safari" Y="4.5"></telerik:PieSeriesItem>
                    <telerik:PieSeriesItem BackgroundColor="#333333" Exploded="false" Name="Opera" Y="2.3"></telerik:PieSeriesItem>
                 </SeriesItems>
                <LabelsAppearance Position="OutsideEnd" DataFormatString="{0} %" />
                <TooltipsAppearance DataFormatString="{0} %" />
            </telerik:PieSeries>
   
        </Series>
 
    </PlotArea>
    <ChartTitle Text="Top Five Languages">
    </ChartTitle>
</telerik:RadHtmlChart>

Tomica
Top achievements
Rank 2
 answered on 30 Sep 2015
6 answers
753 views
Hello,

I have a RadDateTimePicker control that I would like to validate.  Right now if I enter junk into the field (like 'asdfasdf'), the control will alert me that there is an issue by displaying a warning image and changing the color to red.  This works great - however, I am still allowed to do a postback on the form.  I want to prevent a postback from occuring and force the user to correct their input before continuing.  I have tried setting the 'DateInput-CausesValidation' to true but this had no affect.  I've also tried adding a .NET comparison validator to the field but I get an error about setting focus when doing this.  Is it possible to prevent the postback when the input is not correct?

Thank you!
Richard
Jim Davis-Northrup
Top achievements
Rank 1
 answered on 30 Sep 2015
3 answers
293 views
Is it possible to add extra column to Radscheduler Agenda View?
Nencho
Telerik team
 answered on 30 Sep 2015
2 answers
85 views

A user reported (and we confirmed) that, using Firefox on Mac, if you select some text in the editor and press Command-C, the text is deleted rather than copied to the clipboard. No problem in Safari, and no problem in any browser on Windows.

Sounds like a browser problem, but I though I would pass it along just in case there is something you need to look at.

Using Mac 10.9.4 and Firefox 41

Dan Ehrmann
Top achievements
Rank 1
 answered on 30 Sep 2015
11 answers
227 views
Hi

 

As shown in attachments:

1. Filter window:  As we have column in pivot table row fields (Restaurant name), we need with space only in the menu items of Filter Window (Needed : restaurant Name ,Currently showing is without space : restaurantname)

2. In Label Filter/Value Filter headers also we need same thing.

3. In Summarize by settings window header also we need same thing.

 

Currently its showing the name as in database column name
Viktor Tachev
Telerik team
 answered on 30 Sep 2015
0 answers
143 views

Hi, I want to change style of values on the chart - value should be in frame in same series color. 

I added ClientTemplate to LabelsAppearance and it works until i add DIV on it.

 

<telerik:LineSeries DataFieldY="SHO_ProductivityGrowth" Name="Miesięczny">
    <LabelsAppearance DataFormatString="{0:p1}" Position="Left">
        <ClientTemplate>
            <div> #= kendo.format(\'{0:P1}\', value) # </div>
        </ClientTemplate>
    </LabelsAppearance>
    <TooltipsAppearance DataFormatString="{0:p2}" />
</telerik:LineSeries>
Karol
Top achievements
Rank 1
 asked on 30 Sep 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?