Telerik Forums
UI for ASP.NET Core Forum
1 answer
962 views

Hi,

I have defined my Spreadsheet as follows:

@(Html.Kendo().Spreadsheet()
    .Name("spreadsheet")
    .Sheets(sheets =>
    {
        sheets.Add()
            .Name("mySheet")
            .Columns(c =>
            {
                c.Add().Width(150);
                c.Add().Width(150);
            })
            .DataSource<MyViewModel>(ds => ds
                .Ajax()
                .Batch(true)
                .Read("ReadTimeSeries", "MyController")
                .Model(m => {
                    m.Field(p => p.Timestamp);
                    m.Field(p => p.Value);
                })
            );
    })
    .Sheetsbar(false)
)

When the Spreadsheet loads the data, it is displayed as Date only - the time part seems to be missing.

This is my DataModel:

    public class MyViewModel
    {
        [Display(Name = "Zeitstempel")]
        [DisplayFormat(DataFormatString = "{0:dd.MM.yyyy HH:mm}"]
        public DateTime Timestamp { get; set; }

        [Display(Name = "Wert")]
        [DisplayFormat(DataFormatString = "{0:#,###.###}")]
        public decimal Value { get; set; }
    }

The DisplayFormatAttribute seems to be ignored. The Problem is that the count of the rows vary, so I can't predefine the format using Rows.Add().Cells(c => c.Add().Format("dd.MM.yyyy HH:mm").

 

How can I achieve the Timestamps to be displayed with date AND time?

Veselin Tsvetanov
Telerik team
 answered on 09 Feb 2018
1 answer
431 views
Hi, I'm trying to use the Kendo Notification widget to add error/success messages to my page. Currently I'm using modelstate errors to display a quick message but I want to switch over to the kendo widget. My issue is I want to be able to set the notification message from the server side in the controller. Is there any way to easily access the notification widget from my controller?
Plamen
Telerik team
 answered on 08 Feb 2018
2 answers
318 views

 

Hi there

da-DK is my culture name and I set the globalization correctly.I have a problem with NumericTextBox. My database field value is 4587.25.It is rendering expected in Firefox (4.587,25) and IE, but making a problem in Chrome (empty numeric textbox), I saw a warning in Chrome console.

The specified value "4587,25" is not a valid number.The value must match to the following regular expression:-?(\d+|\d+\.\d+|\.\d+)([eE][-+]?\d+)?

How can I fix this chrome behavior? I built a small a project and added some code to generate the problem. Index.cshtml contains a extension method BeginForm2(), inside this method I wrote my code.Download

Thanks

Sabbir

khandokar
Top achievements
Rank 1
 answered on 07 Feb 2018
8 answers
1.3K+ views

Hello,

When I try to bind a NumericTextBox or a CurrencyTextBox to a decimal number, I get in the javascritpt console the following error:
"The specified value "2,5" is not a valid number. The value must match to the following regular expression: -?(\d+|\d+\.\d+|\.\d+)([eE][-+]?\d+)?"

The problem seems to be because we use a comma to represent a decimal separator.
I set the culture kendo.culture.es-AR to my layout so the controls should support this.
Can I configure a number format for numeric controls in my proyect to accept a comma for decimal separator?

Thanks.

Stefan
Telerik team
 answered on 07 Feb 2018
2 answers
113 views

Hi,

In WebForms I could avoid changing the html i tags to em (and other tags).

In .net core I don't see a way to accomplish that.

Is it possible?

Thank you

 

Ricardo
Top achievements
Rank 1
 answered on 06 Feb 2018
1 answer
947 views

Does anyone have an example for the kendoDropdownList that uses the MVC Core tag helper, and uses local binding?  The tag helper sample in the demos binds to remote data only.  Thanks!

 

Dimitar
Telerik team
 answered on 06 Feb 2018
7 answers
764 views

Please provide an example of Async file upload in Razor using .net Core. The only examples I can find use the HttpPostedFileBase which is replaced in .net core.

http://demos.telerik.com/aspnet-mvc/upload/async

Please post a how to, or direct me to an appropriate existing document guide on how to implement this in .net core. Is this supported yet? If so where can I find the correct documentation with demos and example code?

Thanks

Nencho
Telerik team
 answered on 02 Feb 2018
1 answer
282 views

I have no issue getting the value from the cell using:

funciton onSelect(arg) {

var cellvalue = arg.range.value();

}

Do you have documentation on how to get the selected column and row index?

Veselin Tsvetanov
Telerik team
 answered on 02 Feb 2018
2 answers
148 views

When mapping a date file as grid column, it's not being transformed into a DatePicker.
This doesn't happen with Edge, Chrome or the latest Firefox, I'm only experiencing this with the ESR version of Firefox.

Example:  

@(Html.Kendo().Grid<HuntingReportModel>()
        .Name("test")
        .Columns(x => x.Bound(y => y.Date))
    .ToolBar(x => x.Create()))

See attachment for the resulting control...

using jquery ui without the wrappers it works.

manually calling .kendoDatePicker helps but it's really just a bad workaround...

Browser: Firefox ESR (52.5.3 & 52.6.0)

Kendo: 2018.1.117


Stefan
Telerik team
 answered on 01 Feb 2018
1 answer
218 views
Please guide me to disable both weekends and holidays in calendar widget
Viktor Tachev
Telerik team
 answered on 31 Jan 2018
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?