Hello
One of my columns bound to a DateTime field of my model (all culture settings and js files are included, I guess not this one is the problem).
.Columns(columns=>columns.Bound(c=>c.SomeDateField).Format("{0: yyyy.MM.dd. HH:mm}";)
Showing the date is perfect: looks like '2017.10.03. 15:05'. The problem is when I click the Edit button (I have a command column too with InLIne edit). It is automatically converted to:
Tue Oct 03 2017 15:05:58 GMT+0200 (Central European Summer Time)
Yes, with this long text. It's not really userfriendly either to edit this cell or create a new row with this kind of cell...
Is it possible to use here some kind of datetime picker? I have also a numerictextbox field, that's so nice: I can only enter numbers or use the step-up and step-down buttons. :)
Thank you

Hi!
Is there any way to disable a command.Edit() or a command.Destroy() button? I don't want to hide them, the user should see there's an option for both functions, but I want to disable them depending on the @User.IsInRole("RoleName") status. I tried several ways: using Javascript and adding k-state-disabled class will make them disabled-look but they are still clickable. I also tried this way:
.Columns(columns => columns.Command(command=>{command.Edit().HtmlAttributes(new {@class = @User.IsInRole("RoleName") ? "k-state-disabled" : ""});
...
but same result as Javascript result: stays clickable but they are grayed out.
Thanks for your help

i'd like to do this with MVVM.
<div id="grid"></div><script> $("#grid").kendoGrid({ columns: [{ field: "name" },{ field: "age" }], pageable: true, noRecords: { template: "No data available on current page. Current page is: #=this.dataSource.page()#"}, dataSource: { data: [{name: "John", age: 29}], page: 2, pageSize: 10}});</script>
How i write this (noRecords) in the mvvm?
no-data-records?
data-no-data-records?
or
data-noData-records?



Pasting a large (>500kb) image into the editor in IE 11 renders the browser frozen for a significant time.
To reproduce:
1. Go here: http://demos.telerik.com/kendo-ui/editor/index
2. Open any image greater than 500kb in MS Paint. A larger image will make the problem worse.
3. Select all and copy the image.
4. Paste into the demo editor.
On my i7 machine, this takes around 24 seconds to unfreeze, and then the image is pasted normally. No other browsers exhibit this behavior.
After digging through the Editor source code, and placing timers in several locations within the "paste" function, I found that there is quite a bit of DOM manipulation going on, without the clipboard content being validated in any way.
My question is this: what is the best way to stop the execution of the paste function based on the size of the clipboard data? Is there something already within the Editor API that I'm missing? PasteCleanup doesn't fire until after the paste event, so a custom function there doesn't help. What I really need is something like a maxPasteSize option in the Editor instantiation, that will reject anything over that without manipulating the DOM.

@(Html.Kendo().Chart(Model) .Name("ChartTest") .Legend(l => l.Visible(true)) .Series(series => { series.Column(x => x.WebSite01); series.Column(x => x.WebSite02); series.Column(x => x.WebSite03); series.Column(x => x.WebSite04); series.Column(x => x.WebSite05); series.Column(x => x.WebSite06); series.Column(x => x.WebSite07); series.Column(x => x.WebSite08); series.Column(x => x.WebSite09); } ) .SeriesDefaults(s => s.Column().Stack(true)) .Legend(l => l.Position(ChartLegendPosition.Bottom)) .CategoryAxis(axis => axis .Categories(model => model.ChartDateStamp) .MajorGridLines(lines => lines.Visible(false)) .Labels(l => { l.Format("MM/yy"); l.Rotation(90); }) ) .Tooltip(t => t .Visible(true) .Color("#FFFFFF") .Background("#0000CC") .Template("${series.name} : #= kendo.toString(value, 'n') #") ) )
Hi,
When retrieving data from a model whats the difference between using "viewModel.attr" and "viewModel.get('attr')" ?
Both return the same object.
Thanks,
Grant
