Telerik Forums
Kendo UI for jQuery Forum
5 answers
610 views
I just downloaded the trial version and am attempting to create a simple data entry screen.

Using the following Javascript

        $("#dateTo").kendoDatePicker({
            format: 'MM/dd/yyyy'
        });

I'm trying to display it like this:

Date From:
<div id="dateFrom">

</div>

The control displays and the calendar appears when I click the button but the selected value does not appear in the textbox, nor can I edit a date directly. It seems like its read-only.

These are the Kendo references in my Layout cshtml:

        @Scripts.Render("https://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js")
        @Scripts.Render("https://ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/jquery-ui.min.js")      
        @Styles.Render("http://cdn.kendostatic.com/2014.3.1411/styles/kendo.common.min.css")
        @Styles.Render("http://cdn.kendostatic.com/2014.3.1411/styles/kendo.blueopal.min.css")
        @Scripts.Render("http://cdn.kendostatic.com/2014.3.1411/js/kendo.all.min.js")

What could be going wrong here?

Thanks

Carl
Carl
Top achievements
Rank 1
 answered on 17 Mar 2015
2 answers
544 views
  $('#toolbar'). kendoToolBar({
                    items: [
                        {
                            type: "button",
                            text: "But1",
                            spriteCssClass: "fa fa-map-marker",
                            attributes: { "class": "fa fa-2x fa-map-marker" }, // doesn't work either
                        }]
});

Hi

I'm trying to show a font awesome icon instead of kendo sprites in kendoToolbar.
Is this possible? thanks heaps.

Cheers

Michael

Iliana Dyankova
Telerik team
 answered on 17 Mar 2015
1 answer
795 views
I'm having trouble using an SVG image in a column template.

I have my data-column set up to use a column template:
{'field': 'importantNote', 'title': 'Critical', 'template': $('#criticalTemplate').html() }


then I have my template script:
<script id="criticalTemplate" type="text/x-kendo/template"><br>    #if(data.importantNote=== 'Y'){#<br>    <svg class="grid-icon"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#icon-warning2"></use></svg><br>    #}else{#<br>    #}#<br></script>


I believe xlink:href="#icon-warning2" is causing the problem - if I remove this portion, then the template doesn't error. I've tried escaping the # like this: xlink:href="\\#icon-warning2" but it doesn't work. I know for sure that my SVG reference is working because the graphic shows if I put in anywhere else on the page.

Any insights on how to fix this?
Rebecca
Top achievements
Rank 1
 answered on 17 Mar 2015
1 answer
136 views
I am generating a grid from a rendered table and need to be able to set the template as a function returned from kendo.template:

<th data-template="#: kendo.template($('\\#datePaymentEligible-template').html()) #">Payment Elig.</th>

Unfortunately, this results in displaying the following in each cell of the rendered grid:

function anonymous(data /**/) { var o,e=kendo.htmlEncode;with(data){o='\n '+( datePaymentEligible != null ? kendo.toString(datePaymentEligible, 'd') : '' )+'\n ';}return o; }

My template definition looks like this:

<script id="datePaymentEligible-template" type="text/x-kendo-template">
    #= datePaymentEligible != null ? kendo.toString(datePaymentEligible, 'd') : '' #
</script>

I originally had this inline and it was working. But I've broken it out as a separate template because I intend to expand on it further.

Any help?

Thanks,
Gary
Daniel
Telerik team
 answered on 17 Mar 2015
1 answer
251 views
Hi all.

Could you tell me how to change default Kendo Mobile Loader Image (the one with three vertical 'dancing' bars)? Thanks
Petyo
Telerik team
 answered on 17 Mar 2015
6 answers
225 views
Building a Single Page Application with several Kendo Grids.

Also using Kendo Grids in various "popups" and "tooltips".

Using Angular 1.3.14.

I've noticed that Kendo seems to be "polluting" the DOM and not removing elements.

My page on load (no grids shown yet):
<body>
<div>Load some stuff via angular</div>
<script>load some scripts</script>
</body>


As soon as I load a view with some Kendo Grids, I start to see this in my DOM:

<body>
<div>Load some stuff here with angular </div>
<script>some script tags</tag>
 
<div class="k-list-container k-popup k-group k-reset" data-role="popup" style="position: absolute; height: 200px; display: none;"><ul unselectable="on" class="k-list k-reset" tabindex="-1" role="listbox" aria-hidden="true" aria-live="off" style="overflow: auto; height: 194.847999572754px;"><li tabindex="-1" role="option" unselectable="on" class="k-item k-state-selected k-state-focused">Is equal to</li><li tabindex="-1" role="option" unselectable="on" class="k-item">Is not equal to</li><li tabindex="-1" role="option" unselectable="on" class="k-item">Starts with</li><li tabindex="-1" role="option" unselectable="on" class="k-item">Contains</li><li tabindex="-1" role="option" unselectable="on" class="k-item">Does not contain</li><li tabindex="-1" role="option" unselectable="on" class="k-item">Ends with</li></ul></div>
 
<div class="k-list-container k-popup k-group k-reset" data-role="popup" style="display: none; position: absolute;"><ul unselectable="on" class="k-list k-reset" tabindex="-1" role="listbox" aria-hidden="true" aria-live="polite" style="overflow: auto;"></ul></div>
 
<div class="k-list-container k-popup k-group k-reset" data-role="popup" style="display: none; position: absolute;"><ul unselectable="on" class="k-list k-reset" tabindex="-1" role="listbox" aria-hidden="true" aria-live="polite" style="overflow: auto;"></ul></div>
 
...
 
</body>

For just my first view, I see ~10 `k-list-container` divs being added to the DOM.  All of them are display: none.

When I expanded one of them I see:



Ok, so I figured out these k-lists must be for EACH column in each grid that I show.

However, for almost all of my grids and columns, I **DO NOT** want to show the operators item.  I'm disabling it in javascript with:
filterable: {
                cell: {
                    operator: "contains",
                    showOperators: false,
                    suggestionOperator: "contains"
                }
            }

Yet the DOM is still being created.  What's worse, is when my view changes to another page (using Angular) and the grids Angular Controllers are being destroyed, etc., all these DOM elements remain...they are never being removed or cleaned out.

Furthermore, I'm using a Kendo Grid as tooltip/hover/popup with **2** columns.  Every time the user hovers to display the tooltip, it's creating another TWO <div class=k-list-container> div for the columns where again, I'm setting showOperators = false.  The issue is that if the user displays the tooltip say 10 or 20 times during their use of the webapp, I've not got 40 extra DOM elements that are never used AND never removed or cleaned up.

Can anyone explain what's going on here? How can I clean up the DOM?  How can i prevent the creation of these elements?  Is it an issue with the Kendo Angular directive not correctly removing the Operators list element from the DOM when the directive/controller is destroyed by angular?
Atanas Korchev
Telerik team
 answered on 17 Mar 2015
3 answers
425 views
Could you point me to an example of using SVG icons in TreeView? I could not find it in the online TreeView demo.
Iliana Dyankova
Telerik team
 answered on 17 Mar 2015
3 answers
441 views
Hey,

I use a grid with a filter row.
Lets say I have 3 columns, each column has the default autocomplete filter.

Once the grid loads, I filter the grid by the #1 column.
As soon as I type, the grid triggers a 'read' to the datasource to fetch the data (even though it already has all the data it needs).
Once done, I can filter as much as I want locally.
When I move to the #2 and #3 filters, the same happens.

Each filter triggers the 'read' on the datasource for the first time it's being used.

Would appreciate the help to figure this out.
Kiril Nikolov
Telerik team
 answered on 17 Mar 2015
5 answers
253 views
Hi
  This seems like such a simple thing but I can't find out how to get this working

I have a view, data-zoom="true", containing a long image. I just want it to zoom out when the view opens such that it contains the full width of the image, the height is small in comparison.

I've tried things like

var scroller = $("#detailSection").data("kendoMobileView").scroller;
scroller.zoomOut();

(this actually zooms in)

and trying to get the -webkit-transform

//var scroll = scroller.scrollElement.css("-webkit-transform");

but no avail. 

Is there a simple way of doing this? It must be a common request

thanks


Petyo
Telerik team
 answered on 17 Mar 2015
3 answers
167 views
Hello, our team needs gantt control, I looked many libraries but Kendo UI it's more then only one gantt and i stopped on it.
I looked all examples and all documentations for it, but not found setting template or some other customizations for task viewing. For example we need task with 2 parts : 1 - planned time and  2 - time for risks, every part must have different colors. How I can do it.?
Dimitar Terziev
Telerik team
 answered on 17 Mar 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?