I'm working on getting an isolated example up and running, but maybe there's something obvious I'm missing.
We've got a SPA w/ multiple views, most of which are generated via templates. We're using Kendo charts, the scheduler and upload widgets in these views, which were all working fine until we implemented the kendo.culture functionality.
Users can switch between English and French (Canadian). In English our tile view template looks fine (screenshot 1.png), but when we switch to French, all the overlays are lost (screenshot 2.png. Other items on different views also disappear, including buttons and general text. The one common point seems to be the if statements in the template for all these elements are checking for the existence of a date, like so:
# if (typeof(data.Due) !== "undefined" && data.Due != null) { # <div class="date-overlay #= getDueClassTile(data.DueStatus, data.Type) #"> Due: # if (data.DueStatus == 'Warning' || data.DueStatus == 'Overdue') { # <i class="fa-icon-exclamation-triangle"></i> # } # #= data.Due # </div># } #We're also formatting the dates inside the datasource, and using the same checks:
schema : { type: "json", data: "Courses", parse: function (data) { var courses = data.Courses; $.map(courses, function (item, index) { if (typeof(item.Due) !== "undefined" && item.Due != null) { item.Due = kendo.toString(kendo.parseDate(item.Due), "dd-MMM-yyyy"); } if (typeof(item.CompletedDate) !== "undefined" && item.CompletedDate != null) { item.CompletedDate = kendo.toString(kendo.parseDate(item.CompletedDate), "dd-MMM-yyyy"); } if (typeof(item.LastCompleted) !== "undefined" && item.LastCompleted != null) { item.LastCompleted = kendo.toString(kendo.parseDate(item.LastCompleted), "MMM dd"); } if (typeof(item.SessionDate) !== "undefined" && item.SessionDate != null) { item.SessionDate = kendo.toString(kendo.parseDate(item.SessionDate), "dd-MMM-yyyy"); } }); return data; }}It looks like something about the undefined/null checks in the datasource and/or template are failing when the dates are in French (since the if statements never get executed), but I'm not sure what it could be.
Hello,
I don't know whether this question is dumb. Say I have a column called Name with a filter.
Let's say I have these are the names (Alex,Steve,Mark,ImportantName1,Andrew,ImporantName2).
Say if I filter for Alex, the grid should not display Alex. It should display (Alex, ImportantName1,ImporantName2).
if I filter for Andrew, the grid should display (ImportantName1,Andrew,ImportantName2).
I always want to have ImporantantName1 and ImportantName2 to be displayed irrespective of the filter condition.
If I try to have a custom filter and if I have a filter condition for contains ImportantName, it just displays those 2 items.
How can I have a smart filter that can always show those 2 important items and the filtered items.
Thanks.
Hello all,
I have the following workflow:
A user will be searching for an employee (using an autocomplete). Once the desired employee is selected an output of the employee's information will be displayed (information like name, dates, etc). In addition the employee detail includes a grid with one or more locations.
Currently I have a single viewModel with a DataSource that the employee search autocomplete is bound to. Once the employee is selected I had planned to set an additional datasource to contain the detailed employee information and perhaps even a third one for the grid (location) data.
Is this structure appropriate or is there a more preferred method?
Thanks for any and all input.
Hi,
Is there any possibility to convert Kendo Menu (ASP.net MVC) to Mega Menu like below.
http://demos.telerik.com/aspnet-ajax/menu/examples/megadropdown/defaultcs.aspx
-thanks
Hello.
I have MVC grid binding to some model. When I click on Edit button, it is open an edit window with some controls. One of them is grid. Is it possible to put key property from fitst model to DataSource Read method of second grid (I need to load in popup window data with the same property value as in first grid)?
Thanks.
Hi,
if a new item will added to datasource in the grid, then new values of item are not render in define format. (in e.g "date")
Miss i a command on data before or after pushing?
Here is my example code : http://plnkr.co/edit/WIoAU0ZJOIus4pDblZpb?p=preview
sort = normalizeGroup(group || []).concat(normalizeSort(options.sort || [])),