Telerik Forums
Kendo UI for jQuery Forum
1 answer
155 views

Hi,

I'm trying to make a indoor map viewer by using Kendo UI Map. The only problem is that the map is a single image and cannot be split into tiles. Is there any way to use a single non-tiled image for the map?

T. Tsonev
Telerik team
 answered on 22 Mar 2017
2 answers
357 views

I have an issue with a theme I generated using the current ThemeBuilder tool at http://demos.telerik.com/kendo-ui/themebuilder/ .  Here is what I did (please let me know if I did something wrong, as I did have to figure some steps out; the documentation is not as complete as I would have hoped). 

  1. I went to the ThemeBuilder site and generated a theme.  I started with the Default theme, and customized from there.  However, the problem happens even when making no changes to the Default theme.  You can load that up, and just hit "Download Theme" . 
  2. After downloading the "kendo.custom.zip" file, I extracted it to a subfolder. 
  3. I renamed the files so that instead of "kendo.custom.css" it was "kendo.xyz.css" (where xyz was the name I wanted).  This step is obviously not required to see the problem, but I just wanted to mention it.
  4. I am only using the .css file; we don't use LESS nor DataViz, so I assume we don't need those files at all.  Is this an incorrect assumption?  Do we need to do something with those files on top of the .css file? 
  5. I copied the "templates" folder from kendo into my project, as well as all of the images from "Default" folder, into my own "xyz" folder. 
  6. Upon opening the .css file in an editor, I noticed all the "background-image" properties were "url('none/sprite.png')" (or similar).  I mass-replaced these with the proper folder name ("xyz/sprite.png").  I also ensured all the "template" folder references were correct.  (This is one step that could use better documentation, instead of leaving to the user to figure out that his urls in the CSS don't work). 
  7. In my HTML file, I referenced the following css files, in this order:
    1. kendo.common.min.js - from my installed kendo folder (which is version 2017.1.118).
    2. kendo.xyz.css - my custom theme
  8. Upon loading a normal grid, I noticed that every place in the grid where an icon should be, the proper icon shows up overlaid on top of what looks like the up-arrow ".k-I-arrow-60-up".  So all the icons appear messed up because of this. 
  9. What's worse, for my custom theme, I wanted some of my icons to be white instead of dark grey.  I copied over the sprite.png file from the "Black" theme, gave it a new name, and had some of my icons reference that one instead.  What happened then was that the ".k-I-arrow-60-up" icon turned white, while the actual correct icon for the button remained dark grey. 
  10. I tried debugging this from within all three browsers' F12 menus, but none of them seem to see the "other" background property.  The one they do see seems to be the incorrect up-arrow one; if I disable that css, that one goes away, so I seem to have no way to reference the other one or fix it.  It's like it's hard-coded into the grid, and somehow it is hidden even from the browsers' dev tools. 

Please follow those steps and see if you see the same issue.  I would attach my files, but it would require all the folders and copies of the image files, and you already have all that.  It's easier for you to just follow the steps and then you can verify the process on your end. 

Thank you,

Chris

Stefan
Telerik team
 answered on 22 Mar 2017
1 answer
513 views
I would like to know if it's possible to use the overflow property for the grid toolbar to have the same behavior as the kendo.ui.toolbar?
Dimiter Topalov
Telerik team
 answered on 22 Mar 2017
3 answers
480 views
function myValidatorFunc(input) {
    console.log("VFunc: ", input);
    return true;
};
... [model definition] ...
complexField: {type:"object",
  validation: {myValidator: function(input) {
    console.log("Input length: " + input.length)
    return myValidatorFunc(input);
  }
}

I've got something like this in a grid with a custom edit template that lays out various fields.  "complexField" is an array of objects, and while I'm not using fields nested inside that as actual grid columns, the custom editor seems able to bind to them.  So the editor template might have among other fields, something like :

<input  data-role="numerictextbox" data-bind="value:complexField[0].intSubField1">

This seems to work, the binding displays and modifies "intSubField1" in element 0 of the data records "complexField" field.  And the  "myValidatorFunc()" function gets called for each field of the template, as expected.  However, for certain fields, the "input" parameter (which is a jquery element) has length 0, instead of 1 (or greater?) - the input element that has just been tabbed out of is not being passed.  So my "intSubField1" example might get passed to the validator, but for "intSubfield2" (done the same way), the valididator gets a 0-length "input" element, and I have nothing to access to do the validation.

Is there any legitimate case where a validator would get passed a zero-length "input" parameter?  Could this happen if, say, there was a basic HTML5 validator like "required" set?  This isn't the case here, and I would think the custom validator would just not get fired if basic validation failed first.  Firing the validator with no input element to validate seems more like a bug, or lack of support for these sorts of complex bindings.

I'm trying to create an example on the dojo, but so far I can't get it to fail in a similar fashion - I'm going to keep trying to figure out what in our actual code I might not have translated to the simplistic example.  We're getting this with 2016R3 and 2017R1SP1.  

Konstantin Dikov
Telerik team
 answered on 22 Mar 2017
6 answers
351 views
I need to reinitialize kendoDraggable on list of elements that were previously initialized.

I tried doing:
$('selector').removeData("kendoDraggable")

but this does not help: I still get hing from previous definition.
Stefan
Telerik team
 answered on 22 Mar 2017
5 answers
1.8K+ views
Hi,

I have a Kendo Grid and I'm using InCell edit mode. Each cell has a custom editor using the column.editor assignment. I would like to prevent the cell from switching off my editor when the input is invalid. When the user enters an invalid value and then clicks outside the cell, the grid will automatically close the cell for editing and commit whatever value it had. This is far from ideal and I can't figure out a way to prevent it.

In short, I need to disable this "click outside to close editor" feature when the input entered is invalid. I tried using the "cancel" event but that event doesn't fire when clicking outside. It only fires when I explicitly call "closeCell()". I tried all sorts of other hacks like overriding the click handlers of the grid itself but it's either too dirty or just didn't work.

What is the appropriate solution for this?

Thanks!
Konstantin Dikov
Telerik team
 answered on 21 Mar 2017
1 answer
303 views

Hi All,

I am trying to get a site working after Kendo was upgraded from 2014.3.1119 to 2017.1.223. I carelessly updated a whole lot of NuGet packages at once, so Knockout, Durandal and a bunch of other things were also updated. I think I have all the dependencies right but I am still getting one error:

0x800a138f - JavaScript runtime error: Unable to set property 'ns' of undefined or null reference

This occurs at the line:     kendo.ns = "kendo-";   See the attached screenshot.

I would infer that "kendo" is not defined but I can't see why it would not be. A very old backup version of the same code (referring to older versions of Kendo and knockout) is working fine.

Any suggestions would be welcome.

Thanks in advance,

Rob

 

 

 

 

 

 

 

 

 

 

Tsvetina
Telerik team
 answered on 21 Mar 2017
1 answer
58 views

I have a simple dropdown list that I'm attaching a viewModel to though the observable method.

<input class="span-full" data-role="dropdownlist" id="DROPDOWNONE" data-bind="events: {open: getProps }, value: '+ __cols[n].name +' ">

I'm binding it to an open function like so: 

getProps: function(e){
        console.log("who am i?");
}

What I want to do is when a user opens the menu with their mouse is to have the value of the id passed to it. Like so.

getProps: function(e){

        // Code I'm missing goes here.
        // var id = grabsomething.fromsomeplace();
       console.log(id); // Outputs DROPDOWNONE
}

Please help. Thanks

Ivan Danchev
Telerik team
 answered on 21 Mar 2017
3 answers
932 views

I would like to have an event-less slot be selected when I right click on the slot. Currently, I am able to do this with events by accessing the UID and using the select() method. But an event-less slot does not have a UID that I can access when the slot is not selected, from what it seems. So, the closest that I have been able to get to selecting a slot is by using the start and end date. However, this always selects the slot in the top row of the grid, rather than the slot that I right clicked. I have seen an example of scrolling to a slot based on the row and column position, but I do not think that this selects the slot. I also do not think that the select() method accepts the row and column indices as parameters. 

Is there a method or some functionality that I can use to perform this?

Ianko
Telerik team
 answered on 21 Mar 2017
2 answers
681 views

Hi,

I am making the following call:

    splitter.ajaxRequest("#ContentPane", path);

I would like to hide the progress indicator and have tried using:

    kendo.ui.progress($("#ContentPane"), false);
    kendo.ui.progress($("#splitter"), false);

Neither of which work. Can someone enlighten me on how to best do this? I still want the progress indicator to work on other controls when doing an Ajax request, such as the treeview/dropdown...

 

Thanks,

 

Matt

Matt
Top achievements
Rank 1
 answered on 21 Mar 2017
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
ScrollView
Switch
TextArea
BulletChart
Licensing
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
FloatingActionButton
CircularGauge
ColorGradient
ColorPalette
DropDownButton
TimeDurationPicker
ToggleButton
TimePicker
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
SegmentedControl
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?