Hi,
I'm trying to develope a tabbed angular material view where each tab contains a kendo grid. By clicking on the tab a post request is fired and, in the callback, columns definition and data are computed. After all these operation grid's data options are reassigned. Unfortunately the grid is not updated, i've googled and searched in the forum and the suggestion is to call the reload method gained through a reference to view. I'm trying to avoid these to keep my code clean and not reference view from controller and on the other way the building an attribute for that is quite useless.
Is there any event to fire to reload view? Is there any other strategy? Or simply am I missing something?
Thanks in advance,
Greetings
I'd like to create a new external file for custom message to show a message.
This message will show when datasource is empty.
This is a message for: data-no-data-template="NoDataFoundTemplate"
I have created a new file:"kendo.message-noDataCustomMessage" .
this is my file:
/* <Widget-name> messages */
if (kendo.ui.<Widget-name>) {
kendo.ui.<Widget-name>.prototype.options.messages =
$.extend(true, kendo.ui.<Widget-name>.prototype.options.messages,{
"<message-name>": "<translation",
noDataFound:"Nessun Elemento Trovato"
//...
});
}
Hi,
I using the Kendo Multiselect with grouping option. I have to show the items in the order in which I received them. When I apply the group, the order is altered.
See the example http://dojo.telerik.com/uNaQu.
In this example, Maria Anders is the first name of the non-grouped list. Yet she is the second name in the group "Germany" in the grouped list.
The order should remain the same, but this is not what happens.
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?