Telerik Forums
Kendo UI for jQuery Forum
2 answers
760 views
I can't understand why no matter what I do, when I call the select method on my grid it returns:  TypeError: 'undefined' is not an object (evaluating 'o.options').

I plan on selecting it in a dataBound event method.   I did try doing that originally. but it failed in the same way.  My dataSource format is:
[{"id":"CB069D69-5C72-4D87-B4FF-78E8F2B66359","levelsList":"1\\APIDep2"},{"id":"D5968210-FCDA-40EB-A8AB-4E5B44038D83","levelsList":"10\\TCDep10"}]


var dataSource = new kendo.data.DataSource({
      data: levelsForDisplay,
        pageSize: 5,
    });
    var gridDiv = $("#levelsGrid").kendoGrid({
        height: "100%",
        columns: [{
            field: "levelsList",
            selectable: "row",
            headerAttributes: {
                style: "display: none"
            },
        }],
        dataSource: dataSource
    }).data("kendoGrid");
    var id = "CB069D69-5C72-4D87-B4FF-78E8F2B66359";
    var item = gridDiv.dataSource.get(id);
    var tr = $("tr[data-uid='" + item.uid + "']", gridDiv.tbody);
    gridDiv.select(tr);

Edward
Top achievements
Rank 1
 answered on 09 Sep 2014
4 answers
429 views
Hi,

I have a $scope variable on my controller that is constantly changing. I need to create a kendo stacked chart that is updated to reflect the changing data. I am unable to get the chart to refresh with the changing data. I have tried the following options but nothing works

1. Using a datasource and ensuring I call dataSource.read()
2. Doing a watchCollection and k-rebind as suggested at http://stackoverflow.com/questions/21220886/kendo-angular-chart-data 

Here is what my grid looks like

div kendo-chart="scopeVariableKendoChart"
                                     k-title="{visible: 'false'}"
                                     k-chart-area="{background:'', width:850, height:100}"
                                     k-legend="[{ visible: 'false' }]"
                                     k-series-defaults="{ type: 'bar', markers: { visible: false }, stack: 'true' }"
                                     k-data-source = "deviceDetailsKDataSource"
                                     k-value-axis="{labels: { format: '{0}' }, visible: false, majorGridLines: { visible: false }, majorTicks: { visible: false, width: 0 }, axisCrossingValue:0}"
                                     k-category-axis="{line: { visible: false }, majorGridLines: { visible: false }, majorTicks: { visible: false, width: 0 }}"
                                     k-tooltip="{visible: true, format: '{0}%', template: '#= series.name #: #= value #'}"
                                     k-series-hover="onSeriesHover"
                                     k-on-series-click="onSeriesClick(kendoEvent)"
                                >

and here is the k-data-source on the controller

$scope.deviceDetailsKDataSource= new kendo.data.DataSource({
        data: [
                    {name: 'Stopped Devices', data: [$scope.value1], color: '#65c178', labels: {visible:'true', position:'left', background:''} },
                    {name: 'Running Devices', data: [$scope.value2], color: '#5da2f7', labels: {visible:'true', position:'left', background:''}},
                    {name: 'Failed Install Devices', data: [$scope.value3], color: '#9c68ab', labels: {visible:'true', position:'left', background:''}},
                    {name: 'Stop failed Devices', data: [$scope.value4], color: '#65c178', labels: {visible:'true', position:'left', background:''} },
                    {name: 'Start failed Devices', data: [$scope.value5], color: '#5da2f7', labels: {visible:'true', position:'left', background:''}},
                    {name: 'Installing Devices', data: [$scope.value6], color: '#e2e2e2', labels: {visible:'true', position:'left', background:''}}
                ]
        }
    );
 

I really wish all the Angular Kendo example use remote data rather than local data. Having local data is the easier case while we run into all kinds of issues while binding to remote value in the scope.


Daniel
Telerik team
 answered on 09 Sep 2014
4 answers
96 views
I have to display data which contains few series.
Each series is a list of (value, sampleTime).

How can I display them in the same StockChart?
I didn't find an example, and the API contain a way to define only one general dateField.

Note: I can't consolidate the time samples of the series (e.g. create 1 list of (value1, value2, ..., sampleTime)

Thanks,

sloth1
Top achievements
Rank 1
 answered on 09 Sep 2014
1 answer
164 views
I have an angular template with the following notification:

<div kendo-notification="saveNotification">
</div>

In the controller when the save button is clicked I have:

$scope.saveNotification.show("Hello", "World");

which works.  However, when I try and access the control via the ControllerAs syntax:

var vm = this;
vm.saveNotification.show();

I get the error "Cannot read property "show" of undefined".

Can you tell me what I am doing wrong?





Mihai
Telerik team
 answered on 09 Sep 2014
5 answers
291 views
 Yo! I'm aware of the problem with the demo where the markers don't really move at all. I've updated to your latest internal build 2014.2.716

I had this problem with the last build too: basically markers are in pretty much the correct place (and exactly correct a certain zoom level), but if I zoom in, they shift south, and if I zoom out, they shift north.

Here's what my code looks like:

01.$("#localMap").kendoMap({
02.    center: [lat, lng],
03.    zoom: 10,
04.    controls: {
05.        zoom: true
06.    },
07.    layerDefaults: {
08.        marker: {
09.            opacity: 0.75
10.        }
11.    },
12.    zoomEnd: function() {
13.        $("#localMap").data("kendoMap").center();
14.    },
15. 
16.    layers: [
17.       {
18.        type: "bing",
19.        imagerySet: "road",
20.        key: "xxx"
21.        },
22. 
23. 
24.        {
25.            type: "marker",
26.            tooltip: {
27.                template: "#= marker.dataItem.name #"
28.            },
29.            shape: 'restaurant',
30.            dataSource: {
31.                data: App.restaurantVenueArray
32.            },
33.            locationField: "latlng",
34.            titleField: "name"
35.        },
36.        {
37.            type: "marker",
38.            tooltip: {
39.                template: "#= marker.dataItem.name # </br> #= marker.dataItem.phone # "
40.            },
41.            shape: 'winery',
42.            dataSource: {
43.                data: App.retailVenueArray
44.            },
45.            locationField: "latlng",
46.            titleField: "name"
47.        }
48.    ],
49.    markers: [
50.        {
51.            location: [lat, lng],
52.            shape: "here",
53.            tooltip: {
54.                content: "Current Location"
55.            }
56.        }
57.    ]
58.});
T. Tsonev
Telerik team
 answered on 09 Sep 2014
3 answers
685 views
Hi, I want to get the id of the checkbox the user clicks on, but it doesn't seem like it's working.  Thank you all in advance.

@(Html.Kendo().TreeView()
    .Name("treeview")
    .HtmlAttributes(new {@class="demo-section" })
    .Checkboxes(checkboxes => checkboxes
        .Name("checkedGuide")
        .CheckChildren(true)
    )
    .DataTextField("Name")
    .DataSource(dataSource => dataSource
        .Read(read => read
            .Action("GetTree", "AuthService")
        )
    )
)

<script>

    $("#treeview").on("change", ":checkbox", function (e) {
        var data = $("#treeview").data('kendoTreeView').dataItem(e.node);
        alert(data.id);
    });

</script>
Alex Gyoshev
Telerik team
 answered on 09 Sep 2014
1 answer
63 views
For moblile I need to have a Settings Screen for users to enter an API key or toggle some slider options.

...just very lost as to where to go or what to do?

Steve
Kiril Nikolov
Telerik team
 answered on 09 Sep 2014
1 answer
112 views
I know that many topics discuss this subject. I read them approximately 15, so please bear with me. I also follow the documentation and it works.
Then I add a new kendo widget to the window and 100% height is collapsed.

How can I achieve that kendoGrid takes all available space not the whole space?

demo I want only grid scroll not also window.
Dimo
Telerik team
 answered on 09 Sep 2014
2 answers
223 views
Hi,

as upgrading from the open source core version 2014.1.318 to the new version of 2014.2.716, we encountered a small problem with the css.
Using "display: flex;" on the container DIV, the input inside it changed to a 2 row high field after calling ".kendoNumericTextBox()".

CSS:
#container{float: left; display: flex;}

HTML:
<div id="container">
   <
input id='numBox' type='number' class='' value='0'/>
 </
div>


JS:
$("#numBox").kendoNumericTextBox({
  decimals: 1,
  format: "#",
  max: null,
  min: null,
  onChange: function(e) {
    console.log(e);
  },
  spinners: true,
  step: 1
});

As you can see here: http://jsbin.com/yiwusumujino/1/edit

To solve this problem this CSS code should be added:
.k-numeric-wrap { display: flex;}

This shouldn't be handled inside Kendo UI?

Thanks,
Norbert
Iliana Dyankova
Telerik team
 answered on 09 Sep 2014
6 answers
196 views
We are experience significant performance issues when loading and editing our Kendo UI grid when the grid has approximately 100 rows and 40 columns.

We so not see this problem when the grid only loads a few rows with 10 columns.

The loading, editing, add new rows, saving, and refreshing are all unacceptably slow in IE 10, in compatibility mode, while Firefox (24.7.0) does not have these issues.

Do you have any ideas as to how we can deal with this issue or why we are getting it?

Thanks,

Bradley
Kiril Nikolov
Telerik team
 answered on 09 Sep 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
Drag and Drop
Map
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
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?