Telerik Forums
Kendo UI for jQuery Forum
6 answers
601 views

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.

Rosen
Telerik team
 answered on 17 Dec 2015
3 answers
148 views

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.      

Venelin
Telerik team
 answered on 17 Dec 2015
15 answers
1.5K+ views
I hope that when I right click the row on the grid, it can select a row.
Like clicking a row.
Can I achieve this function by the existing configuration?
Dimiter Madjarov
Telerik team
 answered on 17 Dec 2015
1 answer
116 views

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.

Alexander Valchev
Telerik team
 answered on 17 Dec 2015
1 answer
353 views

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

Peter Filipov
Telerik team
 answered on 17 Dec 2015
3 answers
75 views
I have about 80 to 100 columns. I am adding or removing columns by making hidden true or false. I also tried removing and adding column names from/to the columns field. They are all happening but at the cost of at least two seconds. Is there any solution?
Pavlina
Telerik team
 answered on 17 Dec 2015
1 answer
159 views

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. 

Boyan Dimitrov
Telerik team
 answered on 17 Dec 2015
2 answers
245 views

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

Sergej
Top achievements
Rank 1
 answered on 17 Dec 2015
12 answers
2.9K+ views
How can I disable the ability to drag and drop files from my file system to the upload control while still being able to use async?  I noticed it causes problems when you try to drag multiple files to a upload control that is set to "multiple:false".
Dimiter Madjarov
Telerik team
 answered on 17 Dec 2015
8 answers
437 views
Hi,

I have a datasource which does server sorting on a "date" field, but client side grouping on a "showerId" field. This results in chrome in wrong inner ordering of the grouped data. It works fine in IE, FF, and Safari.

It also works fine if i do the sorting client side. Grouping server side is not an option for me.
I'm using Kendo version 2012.3.1315.

It's probably due to the fact that on line 2277 of kendo.data.js the sorting is not added to the options b/c serverSorting is enabled. However, for the grouped data to be sorted both need to be present on line 1242 where the sort is concatted to the grouping.
sort = normalizeGroup(group || []).concat(normalizeSort(options.sort || [])),
Is there any way you would consider always applying the sort if client side grouping is enabled?

Also, I'm nor sure why this does work in all browsers but Chrome. Maybe has to do with the internal sorting mechanics of the JS engine?

Thanks!
Vladimir Iliev
Telerik team
 answered on 17 Dec 2015
Narrow your results
Selected tags
Tags
Grid
General Discussions
Charts
Data Source
Scheduler
DropDownList
TreeView
MVVM
Editor
Window
DatePicker
Spreadsheet
Upload
ListView (Mobile)
ComboBox
TabStrip
MultiSelect
AutoComplete
ListView
Menu
Templates
Gantt
Validation
TreeList
Diagram
NumericTextBox
Splitter
PanelBar
Application
Map
Drag and Drop
ToolTip
Calendar
PivotGrid
ScrollView (Mobile)
Toolbar
TabStrip (Mobile)
Slider
Button (Mobile)
Filter
SPA
Drawing API
Drawer (Mobile)
Globalization
LinearGauge
Sortable
ModalView
Hierarchical Data Source
Button
FileManager
MaskedTextBox
View
Form
NavBar
Notification
Switch (Mobile)
SplitView
ListBox
DropDownTree
PDFViewer
Sparkline
ActionSheet
TileLayout
PopOver (Mobile)
TreeMap
ButtonGroup
ColorPicker
Pager
Styling
Chat
MultiColumnComboBox
Dialog
DateRangePicker
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Accessibility
Effects
PivotGridV2
Licensing
ScrollView
Switch
TextArea
BulletChart
QRCode
ResponsivePanel
Wizard
CheckBoxGroup
Localization
Barcode
Breadcrumb
Collapsible
MultiViewCalendar
Touch
RadioButton
Stepper
Card
ExpansionPanel
Rating
RadioGroup
Badge
Captcha
Heatmap
AppBar
Loader
Security
TaskBoard
Popover
DockManager
TimePicker
FloatingActionButton
CircularGauge
ColorGradient
ColorPalette
DropDownButton
TimeDurationPicker
ToggleButton
BottomNavigation
Ripple
SkeletonContainer
Avatar
Circular ProgressBar
FlatColorPicker
SplitButton
Signature
Chip
ChipList
VS Code Extension
AIPrompt
PropertyGrid
Sankey
Chart Wizard
OTP Input
SpeechToTextButton
InlineAIPrompt
StockChart
ContextMenu
DateTimePicker
RadialGauge
ArcGauge
AICodingAssistant
SmartPasteButton
PromptBox
SegmentedControl
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?