Hi,
At the minute when I create a new event the default start/end is in 30 minute increments (see screen shot). Is it possible to set the default to start/end to a 60 minute increment?
Looking in the dojo (http://dojo.telerik.com/anIFa), I made a minor change to the grid to turn on sortable columns.
When this happens, if you sort a column and then also group it, the sort arrows can be contradictory in the column header / group header (see attached).
Is this something that can be overcome?
Hi,
I have a SPA running in which a users logs on, do all kind of things (showing grids, lists, editing data etc.) against some webservices.
When the user logs off, another user can log on.
When the new user comes on a grid/list/etc. where no data is available on the server, or an error occurs, or even while the data is loading from the server (during the 'wait-cursor-screen') the old data of the previous user is shown! Not a good thing :)
So at first I was hoping to build a class in which all datasources can be registered and on logoff I can just set all the data in the datasources to [].
Nice idea but since one cannot overload the init function of the kendo.data.DataSource we need to find another way.
On each fetch() might be an idea but really unwanted because it means that all fetch functions must be overloaded and for each fetch we must check if the datasource is already registered etc.etc. Takes too much time, so again we need another way..
At this moment I'm a bit of ideas and am under the impression I must be missing something really obvious..
Any ideas? Anybody?
Best regards,
Insad
Hi, Is it possible to have the footerTemplate call a function in the Angular controller? So in the controller (using controllerAs) you have a function and the template looks something like:
columns: [
{
field:
"locationCode1"
,
title:
"John"
,
width: 200,
footerTemplate:
"<div>Total Days Worked: #: vm.getTotal() #</div>"
},
where vm is the controller set using controllerAs and getTotal is the function in the controller. I've tried #; and #= and I cant get it to find "vm", so it appears its not evaluated in the right scope, maybe there is a field in the scope which will get me to the controller?
I've tried the example at http://docs.telerik.com/kendo-ui/third-party/webpack locally, and I'm getting the error:
Module not found: Error: Cannot resolve module 'kendo.dropdownlist' in... [my test file]
Have installed Kendo UI Professional via NPM, following this: http://docs.telerik.com/kendo-ui/intro/installation/npm#kendo-ui-professional
Not sure I can easily share the code, but in the 'node_modules' kendo folder, none of the JS files are minified.
Is there some working example of this somewhere? Not sure if it will run in the Dojo, but I'm at a loss here.
Trav
I'm using a grid with asp.net MVC. Currently the grid is using .DataSource(c => c.Read()) to call a URL that returns an IEnumerable<item> which goes into the grid.
I want to implement paging in the grid. However the data does not have the normal method of paging (count, page number etc.).
Instead when I retrieve my rows I get the data back like this:
{ items: [. . . ], nextPage: 'J23jeg9e93', previousPage: 'oqow0r93285' }
To get the next page you must make the request again for the data, but include the paging token for next or previous page.
At the moment I am only returning the items array. However I want to return all of the data - the items and also the metadata. I must add a button 'Next' and 'Previous' to the grid. When the user presses Next, the 'nextPage' value is sent in the .Read() with the other data, for example:
.Read(r => r.Action("GetItems", "Controller", new {
firstName = Model.FirstName,
getPage = 'eugwoiejg93239'
I understand that I can use the .Data() method to add my own data. However I am not sure how to change .Read to use a property of the return data (.Items) instead of using the data directly, so that I can include metadata for nextPage and previousPage. Also if I add this metadata, I am not sure how to store it (for example in a javascript function I can attach to .Data()).
Do you have any advice on how to do this?
Hello,
I am trying to to use validateInput event of kendo validator using k-on- prefix attribute, but seems like the event never fires, below is the example
http://dojo.telerik.com/OGEjE/5
Thanks
Ketul
The docs for DataSource.filter() indicate that it returns "the current filter configuration. Returns null if no filter criteria are currently applied. Returns undefined if the DataSource instance has not performed filtering so far." I took this to mean if I set a filter via oldFilter = ds.filter(myFilter), I would get the existing filter config back as "oldFilter", just as if I had called oldFilter = ds.filter() without setting one - its a common pattern for setters. However, the method seems to always return "undefined" in all cases when you set a filter. I've created a dojo example.
Am I misreading the intent, and setting a filter wasn't supposed to return the current filter? If so, the "RETURNS" phrasing in the docs really should be clarified. But in that case this might be a worthwhile feature request, since writing "oldFilter = ds.filter(myFilter)" can be more convenient than doing it in two lines "oldFilter = ds.filter(); ds.filter(myFilter)". It looks like the group() method and perhaps others have the same ambiguity.
.net MVC
I have a simple gantt with a single level of tasks. The only action that users can perform is moving tasks. However, I don't want anything to happen after a task is moved. (no postback - it doesn't not need to be saved) I cannot figure out how to avoid an update ajax request after a task is moved.
In the MoveEnd event, I tried calling e.preventDefault(). This does prevent the ajax request, however it also reverts the location of the task back to where it was. I want the user to be able to move the task, I just don't want anything to occur after a task is moved.
How can I achieve this?