Telerik Forums
Kendo UI for jQuery Forum
12 answers
2.3K+ views
Hello,

We're evaluating tools for drawing data that will be dynamically changing (streams of data being pushed to the client).  We tried setting up a page using the Kendo UI Graph. The data renders and updates, but the redraw is noticeably slow and flickers.  We're currently calling the refresh() method on the chart to redraw after we append new values to the data source.  Is there are more efficient method for redrawing streaming data or some parameters that affect the redraw behavior that I haven't been able to locate?  For comparison, the Flot library for jQuery is noticeably smooth when rendering.

Thank you.
Iliana Dyankova
Telerik team
 answered on 09 Jan 2014
1 answer
103 views
I've tried to add a custom ValueTemplate to my DropDownList like it is described in the Kendo demo-section "Customizing Templates" -  
http://demos.kendoui.com/web/dropdownlist/template.html

It seems that in the current release 2013.3.1119.340 the DropDownList-property ValueTemplate is missing. How do I accomplish a custom valueTemplate without this property? I'm using MVC Razor.



Georgi Krustev
Telerik team
 answered on 09 Jan 2014
6 answers
241 views
see fiddle http://jsfiddle.net/A2URt/

the kendo chart does not seem to handle very small values well. We included two examples one with very small values, the other one with a bit larger values. The edge case seems to lie in values 1.0e-7.

Can somebody help, explain etc?

Kind regards Dennis
JamesD
Top achievements
Rank 1
 answered on 09 Jan 2014
4 answers
358 views
Hello,
I have a need to cancel a checkbox check if the user has reached a limit. Unfortunately, simply calling preventDefault isn't working when the checked item is a parent. So I whipped up a little jQuery to handle this for me --

$("#treeview").on("click", ":checkbox", function (e) {
    var treeView = $("#treeview").data("kendoTreeView");
    origChecked = listChecked;
    listChecked = [];
    checkedNodeIds(treeView.dataSource.view(), listChecked);
     
    if (searchLimited && listChecked.length > searchLimit) {
        var newChecked = $(listChecked).not(origChecked).get();
        $.each(newChecked, function (index, value) {
            var item = treeView.dataSource.get(value);
            item.set("checked", false);
        });
 
        e.preventDefault();
        listChecked = origChecked;
    }
});
 
// function that gathers IDs of checked nodes
function checkedNodeIds(nodes, checkedNodes) {
    for (var i = 0; i < nodes.length; i++) {
        if (nodes[i].checked) {
            if (nodes[i].id != "0") {
                checkedNodes.push(nodes[i].id);
            }
        }
 
        if (nodes[i].hasChildren) {
            checkedNodeIds(nodes[i].children.view(), checkedNodes);
        }
    }
}


I can see this works fine. If I put a breakpoint at the end, the treeview looks perfect. However, it appears that some other internal kendo event is firing after and resetting the items to a checked state. As I understood things, calling the set method should have been updating the underlying data for the treeview, so I didn't expect my changes to be overwritten... What am I missing? 

Thanks,
Phil
Alexander Popov
Telerik team
 answered on 09 Jan 2014
4 answers
95 views
I am using the build-in icons all over my app which works fine when deploying the app in debug mode (build settings). But when I build the app in release mode non of the build-in icons is shown.

I am forcing the flat theme for the app.
Steve
Telerik team
 answered on 09 Jan 2014
1 answer
139 views
Hi

I am trying to format number to IP format like 192.168.1.1 or 192.168.001.001

$("#ip4").kendoNumericTextBox({
  format: "IP ###.###.###.###", /* works only if you input exact 12 numbers, works only if dot is thousand separator */
  decimals: 0
});

This is not the right way!
I was searching kendo forum for text mask format but no luck. Does defining mask exists in kendo ?

Thx

By Ales
Kiril Nikolov
Telerik team
 answered on 09 Jan 2014
2 answers
106 views
Following the advice in several forum posts, along with this jsbin created by Alexander Valchev, I am investigating the use of an observable object that provides HTML content to be rendered:
jsbin.com/iyakig/2/edit
If I add a second button to the code in the jsbin like this:
 makeButton: function () {
                var html = '<a data-role="button" data-bind="click: makeListView">Replace again</a><a data-role="button" data-bind="click: makeListView">Replace yet again</a>';
                this.set("foo", html);
            },

The second button does not get initialized as a widget as you can see here:
jsbin.com/iyakig/31/edit 
Is there a limitation on MVVM binding of HTML code?

We have been using kendo.mobile.init() to initialize all widgets in the HTML generated by a template, but we are looking to use MVVM binding as suggested in this post.  We would be very interested in knowing why additional widgets are not initialized as well as the advantages to this approach vs. the kendo.mobile.init() approach.


Randy
Top achievements
Rank 1
 answered on 09 Jan 2014
1 answer
64 views


I was looking at the code of Kendo Chart to find out how the points (for line chart) are plotted from a single dataItem. While researching I found out that you are using a Box2D method from where you are creating a property which contains (x1,y1, x2, y2) and with this property you are plotting the points with there average values.

I  was unable to found out that from where you are retrieving these values (x1,y1,x2,y2).   If you can please show me the path (function) from where you are converting these values then it will help me to find a solution.

Thanks.
Hristo Germanov
Telerik team
 answered on 09 Jan 2014
1 answer
63 views
Hello,
i tried to use kendo ui slider in a mobile site.

It seems to work ... 

Is there anyway to show the ticks in a mobile site ? 
It only can show the tickts on a desktop browser.

Regards

Jürgen
Kiril Nikolov
Telerik team
 answered on 09 Jan 2014
3 answers
1.0K+ views
I'm using a grid in an MVVM environment. The grid that starts out with now rows. Once the Add New Row button is clicked the grid adds a row but the user can keep clicking the button and add new rows without any validation on existing rows. How can I either disable the New Row button, perform validation on the current row before adding a new row or client side validate all rows before trying to update to the server. I don't care if a user wants to add several rows and then edit the columns before saving the changes back to the server but I need to validate all required fields first.

 
Alexander Popov
Telerik team
 answered on 09 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
Dialog
Chat
DateRangePicker
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
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
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?