Telerik Forums
Kendo UI for jQuery Forum
3 answers
200 views
Hello,

I'm trying to use a template for a kendoListView. In the template, I have an element that uses data-bind for a click event handler.

Everything works fine until I update the dataSource of the listView. Once the dataSource is updated, none of the click handlers work anymore.

JSFiddle:
http://jsfiddle.net/jseets/Qh2ma/11/

Any ideas?
Kiril Nikolov
Telerik team
 answered on 14 Jan 2014
1 answer
121 views
Hi,

Since the treeview doesn't support the filter on all levels, i had to implement the filter manually on all tree levels. The implementation is to loop over the node and set the filter on the children datasource: nodes[i].children.filter({ field: "label", operator: "startswith", value: text }) and to clear the filter nodes[i].children.filter({}).

The total nodes/leafs in the tree is arround 300, with arround 8 levels deep, the maximum child count is 80. The problem is that setting the filter also clearing the filter is slow regarding the size of the data, range between 6-9 seconds.

any help regarding this behavior.
Regards.
Petur Subev
Telerik team
 answered on 14 Jan 2014
4 answers
99 views
I have this HTML:

<div id="bills" data-role="view" data-model="Bills" data-init="Bills.init" data-layout="default">
<h1 data-bind="text:name">Text</h1>
</div>


and the ViewModel for this is:

var Bills = kendo.observable({
  name: "John Doe",
  init: function() {
  this.doSomething();
},

doSomething: function() {
  alert(this.name);
}
});


Both codeparts with "this" are not working. "this.doSomething" produces the error:Object [object Object] has no method 'doSomething'
Why is it not possible to use "this" in such a ViewModel?
Alexander Valchev
Telerik team
 answered on 13 Jan 2014
4 answers
129 views
Hi,

When I am using the KendoUI grid with grouping and collapse all groups the column width is not maintained in IE. See the screenshot I did on the KendoUI demo's. When I do the same in either Chrome or FireFox the column widths are preserved as I would expect.

Is there a way that I can configure the grid so that IE also has the same behavior as Chrome and FireFox here?

BTW It seems that the Telerik RadControls do have the desired behavior across browsers.
ITOPERATIONS
Top achievements
Rank 1
 answered on 13 Jan 2014
1 answer
137 views
Hi,

Pulling my hair out. Examples are great when they work for you!!! The example works but I can't convert to
using odata.

What I am trying to do is bind a scheduler to odata exactly as you do in the general usage sample with http://demos.kendoui.com/...  example.

My odata service, modelled on your crud examples for grid delivers

{
"odata.metadata":"http://grid.footstepscloud.com/odata/$metadata#Sessions","value":[
{
"id":-17137,"description":"St Luke's School","title":"-503982","start":"2015-10-22T14:15:00","end":"2015-10-22T15:15:00"
},{
"id":-17136,"description":"Middleton Grange Public School","title":"-504308","start":"2014-06-20T12:30:00","end":"2014-06-20T14:30:00"
},{
"id":-17135,"description":"Middleton Grange Public School","title":"-504308","start":"2014-06-13T12:30:00","end":"2014-06-13T14:30:00"
},{
"id":-17134,"description":"Middleton Grange Public School","title":"-504308","start":"2014-06-06T12:30:00","end":"2014-06-06T14:30:00"
},{
"id":-17133,"description":"Middleton Grange Public School","title":"-504308","start":"2014-05-30T12:30:00","end":"2014-05-30T14:30:00"
}
]
}

Can you provide a sample that would bind this to the kendo scheduler per the usage general example. Perhaps I can go from there.

Vladimir Iliev
Telerik team
 answered on 13 Jan 2014
1 answer
137 views
Can event handlers be removed from kendo.observables()? If so, how?
Petyo
Telerik team
 answered on 13 Jan 2014
6 answers
236 views
I'm able to display real time push messages from [RabbitMQ SockJS Server] on a browser using JQuery append whenever a new message arrives.  However, I'm not able to figure out how to display the messages on Kendo UI mobile ListView (Kendo version 2013.3.1119) in descending order - newer messages at the top.  This should be done without the user intervening to refresh the ListView.

I've created a test and posted on JSBin - [link]

Notes on JSBin example:

1). Stomp.js ([STOMP over websocket] and sockjs.js ([SockJS Javascript client]) is used to create the websocket client that captures messages from RabbitMQ SockJS Server.

For the JSBin example, I've appended my Javascript code that works with STOMP (listener-app.js - see - [http://pastebin.com/6qLxH8R6]) into the SockJS Javascript client (sockjs.js) as I'm not able to get the JSBin to work with listener-app.js in a separate file.  The combined script is now stomp-listener-app.js.  A note that I didn't have this problem when testing locally.

2). There are 2 nav buttons, "Real-time ListView" and "Debug Log".  Debug Log captures stomp.js debug messages which will be displayed on "Debug Log" view using JQuery append.  Real-time ListView view is suppose to display the STOMP messages in a listview - for which I'm unable to do so.

3). Although the JSBin example doesn't link to a live SockJS server, the STOMP library will still generate some error messages which can be captured by Kendo UI.

I'm a beginner in JS and Kendo UI.  Please let me know if I had missed out anything.  Any pointer will be very much appreciated.  Thank you.
Petyo
Telerik team
 answered on 13 Jan 2014
3 answers
112 views
Hi

I developed a phonegap 3 app with kendo ui mobile. Works like a charm, already in the appstore.
Now I tested it on a android phone. It still works, but everything is very small, like half of the size compared to ios.
Am I missing some parameter or meta tag for scaling or anything else?

Thank you!
giord
Top achievements
Rank 1
 answered on 13 Jan 2014
1 answer
634 views
Is it possible to update business hours without destroying and reinitializing widget?
Rosen
Telerik team
 answered on 13 Jan 2014
1 answer
308 views
I use this HTML:
<div id='test'>
    <ul>
        <li>Tab1</li>
        <li>Tab2</li>
        <li>Tab3</li>
    </ul>
    <div>
       Content 1
    </div>
    <div>
        Content 2
    </div>
    <div>
        Content 3
    </div>
</div>

Then convert it to TabStrip:
$('test').kendoTabStrip({
    animation: {
        open: {
            effects: effet
        }
    }
});
 
 
var tabs = $elem.data("kendoTabStrip");        //Get Kendo element
tabs .select("li:contains('Tab1')");

The tab is selected, but containt not visible.  If I trig the same code with a button click, all is working good.
If I use the class="k-state-active" in the HTML the tab is selected and the containt is visible.
Thanks
Kiril Nikolov
Telerik team
 answered on 13 Jan 2014
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
MultiColumnComboBox
Chat
DateRangePicker
Dialog
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Effects
Accessibility
PivotGridV2
ScrollView
BulletChart
Licensing
QRCode
ResponsivePanel
Switch
Wizard
CheckBoxGroup
TextArea
Barcode
Breadcrumb
Collapsible
Localization
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
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?