Telerik Forums
Kendo UI for jQuery Forum
2 answers
169 views
Hello,

I'm using the PivotGrid control with local databinding (the local data might be different, it's some kind of dynamic data so not always there will be the same fields with the same names).

For example, I receive these records where the Year field is:
- 2012
- 2009
- 2010
- 2013
- 2011

But I would like that when I add this Year field to my pivot grid I could read the data like this:
- 2009
- 2010
- 2011
- 2012
- 2013

I have tried using the dataSource sort method, etc. but I cannot achieve this.
Rolf
Top achievements
Rank 1
 answered on 08 Sep 2014
1 answer
112 views
When dataSource has only one item, widget automatically select it, but selected item in MVVM is null. I would expected that this 2 things are synchronize.
demo just click "click for selected value" button.
Georgi Krustev
Telerik team
 answered on 08 Sep 2014
3 answers
232 views
Hi



I’m looking for a specific functionality in gantt chart control. For example: i
have a record where <Summary> property has a "true" value and
it’s a parent container for three particular child operations. By default this
record that i've mentioned above is displaying as  a status progressbar
(percent). But despite / instead of that i’d like to see additional blank
spaces, it means a time periods where is a gap between start/end values.
Bozhidar
Telerik team
 answered on 08 Sep 2014
2 answers
245 views
I added a button on the tab. But I can see that the buttons are not compatible with tabs? Tabs became more height and the button itself does not look beautiful. Does that have to work with the kendo I should have a professional designer css ??



PS: To see problem please press "Add Tab" button on my examle.
PSS: http://prntscr.com/4k9j74 screen
nim
Top achievements
Rank 1
 answered on 08 Sep 2014
1 answer
87 views
Hi,

I have an issue with the filter row when using AngularJS.  When a full reload of the page is done then the filter row is displayed fine but when the view is loaded in (for example using ui-router), the input fields look odd and boolean columns.

See attached
Petur Subev
Telerik team
 answered on 08 Sep 2014
1 answer
224 views
I'm trying to bind kendoAutoComplete to a text element inside the editor template, which I'm doing by inlining some jquery. What I'm finding, though is that the html element appears not to have been rendered into the page at the point where the jquery is running.

<script id="editor" type="text/x-kendo-template">
        <input id="test" type="text" name="client_name" class="form-control" />
        #$('\#test').kendoAutoComplete(["Item1", "Item2", "Item3"]);#
</script>
So the binding doesn't work.

Is there some way i can do this via an mvvm attribute, or some other way of synchronising the javascript so that I can guarantee the html is rendered at the time when the js is running?

Cheers, Paul.
Daniel
Telerik team
 answered on 08 Sep 2014
6 answers
168 views
Hi
  Apologies in advance if this is documented somewhere.

Do you support Windows tablets, specifically Windows RT and Windows Pro?

I was surprised to find the menu didn't work in IE in desktop or metro mode on windows tablets without a mouse

http://demos.telerik.com/kendo-ui/menu/index

Normally you hover with the mouse to see a dropdown but clicking didn't do anything.

It seems to work on everything else, IE, FireFox, Chrome, iPad, iPhone and Android phone

thanks


Petyo
Telerik team
 answered on 08 Sep 2014
4 answers
215 views
Hi guys.
Kendo UI for ASP.NET MVC 2014.2.903 has broken my application down. You seem to miss  
"result = $(element).data("kendo" + widget.fn.options.prefix + widget.fn.options.name);"  in new version.
So, in the bottom of kendo.init you do not initialize anything.

Petyo
Telerik team
 answered on 08 Sep 2014
3 answers
565 views
Hello,

I am trying to get the record count of the grid using "grid.dataSource.total()", but it is always returning zero.

This is an AngularJS app with an itemDetailsDirective that is used to display detail about an item.  It is a pop-up window that contains a grid with inventory on-hand, etc. for the various locations.  However, when no locations have inventory, the grid is displayed with only the headers, which looks funny and I would like to only display the grid if there are records to display, and display some text like, "No inventory found for this item" instead of the grid when it is empty.

Here is the directive:
(function () {
    'use strict';
    angular.module('app').directive('itemDetails', itemDetailsDirective);
 
    function itemDetailsDirective() {
        return {
            restrict: 'E',
            scope: {
                itemNo: "@",
            },
            templateUrl: "/app/inventory/itemDetails.html",
            controller: function ($scope, $element) {
                console.log("itemDetailsDirective, controller: " + $scope.itemNo);
 
                $scope.$on('ShowDetails', function (event, itemNo) {
                    console.log("itemDetailsDirective, ShowDetails: " + itemNo);
                     
                    $scope.itemNo = itemNo;
                    $scope.inventoryGridOptions = getInventoryGridOptions();
                    $scope.inventoryGrid.setDataSource(getGridDataSource(itemNo));
                    $scope.inventoryGrid.dataSource.read();
                    $scope.gridRecordCount = $scope.inventoryGrid.dataSource.total();
                    $scope.inventoryGrid.refresh();
                    $scope.itemDetailsWindow.center();
                    $scope.itemDetailsWindow.open();
                });
 
                $scope.onGridDataBound = function(e) {
                    if ($scope.inventoryGrid) {
                        $scope.gridRecordCount = $scope.inventoryGrid.dataSource.total();
                    }
                }
 
                $scope.close = function() {
                    $scope.itemDetailsWindow.close();
                }
            }
        };
 
        function getGridDataSource(itemNo) {
            console.log("itemDetailsDirective, getGridDataSource: " + itemNo);
 
            return new kendo.data.DataSource({
                type: "json",
                transport: {
                    read: {
                        url: "/api/Inventory/GetInventory?itemNo=" + itemNo,
                        type: "GET",
                        cache: false
                    }
                },
                sort: [{ field: "Loc", dir: "asc" }],
                pageSize: 10
            });
        }
 
        function getInventoryGridOptions() {
            return {
                scrollable: false,
                columns: [
                    {
                        field: "Loc", title: "Loc", width: 50,
                    },
                    {
                        field: "QtyOnHand", title: "Qty OnHand", width: 70, format: "{0:n0}", attributes: { style: "text-align:right" }
                    },
                    {
                        field: "QtyCom", title: "Qty Com", width: 50, format: "{0:n0}", attributes: { style: "text-align:right" }
                    },
                    {
                        field: "QtyBO", title: "Qty BO", width: 50, format: "{0:n0}", attributes: { style: "text-align:right" }
                    },
                    {
                        field: "QtyXfer", title: "Qty Xfer", width: 50, format: "{0:n0}", attributes: { style: "text-align:right" }
                    },
                    {
                        field: "QtyOrd", title: "Qty Ord", width: 50, format: "{0:n0}", attributes: { style: "text-align:right" }
                    }
                ]
            };
        };
    };
})();

How can I get the record count of the grid / data source?

Also, please let me know if you have other recommendations for displaying something alternate when the grid is empty.

Thanks,
Lars


Lars
Top achievements
Rank 1
 answered on 07 Sep 2014
8 answers
446 views
Hi,

I am trying to bind angular $scope data to a kendo area chart with an x-axis that shows the date and a y axis that shows values.

<div kendo-chart="connectorMetadata.appDowntimeChart"
                           k-title="{ text: 'APP DOWNTIME', visible: false }"
                           k-legend="{ visible: false }"
                           k-chart-area="{ background: '', height:220  }"
                           k-series-defaults="{ type: 'area', markers: { visible: true }, area: { line: { style: 'smooth' } } }"
                           k-series="[{ xField: 'date', yField: 'devicesUpCount' }, { xField: 'date', yField: 'devicesDownCount' }]"
                           k-x-axis="{
                                labels: { format: '{0}' },
                                title: { text: 'Time' }
                             }"
                           k-y-axis="{
                                labels: { format: '{0}' },
                                title: { text: 'Count of devices' }
                             }"
                           k-data-source="connectorMetadata.appDowntimeKSeries"
                           k-tooltip="{
                                visible: true,
                                format: '{0}%',
                                template: ' #= value # #= series.name #'
                            }"
                     >
                     </div>

The datasource has the following contents
$scope.connectorMetadata.appDowntimeKSeries = new kendo.data.DataSource({
        transport: {
            read: function(options) {

                angular.forEach($scope.connectorMetadata.appDowntimeData, function(row){
                    row.date = new Date(row.epochTime);
                })

                options.success($scope.connectorMetadata.appDowntimeData);
            }
        }
    });

where $scope.connectorMetadata.appDowntimeData is an array of objects like the below
{"epochTime":"1409179532000","devicesUpCount":"9","devicesDownCount":"49"}

The charts do not show any data. I call $scope.connectorMetadata.appDowntimeChart.dataSource.read() every time the data is updated.

What am I doing wrong here ?


T. Tsonev
Telerik team
 answered on 05 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
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?