Telerik Forums
Kendo UI for jQuery Forum
7 answers
237 views

hi all, I tried to implement printing a grid using the article  :http://docs.telerik.com/kendo-ui/controls/data-management/grid/print-export.

I see that at the end of each page in preview, there are repeated page numbers showing up in bulleted form. Can you please tell me how to resolve this issue with printing a grid?

Dimo
Telerik team
 answered on 15 Sep 2016
1 answer
225 views

Thought I had done something wrong as none of the javascript methods on an upload component, returning an 'xyz is not a function', however, having tried your own previews in your documentation, there is the exact same problem on your documentation page. So guessing this is not me...

Tried this out on chrome, IE & firefox on two different machines and the upload preview in your documentation fails on all of them.

http://docs.telerik.com/kendo-ui/api/javascript/ui/upload#methods-removeAllFiles

 

Dont really understand how this can happen in a 'stable' release...

Dimiter Madjarov
Telerik team
 answered on 15 Sep 2016
8 answers
328 views

I am starting a new project using the Kendo Mobile controls (release 2016 Q1 SP2), and I am using TypeScript.  When I attempt to instantiate my kendo.mobile.application, I am getting errors from TypeScript and the issue appears to be that the type definition file does not contain the correct definition.

Here is my simple TypeScript code:

var app = new kendo.mobile.Application(document.body,
    {
        transition: 'slide',
        skin: 'nova',
        init: function () {
            //don't do this for android, causes issues with scrollView and swiping
            kendo.UserEvents.defaultThreshold(kendo.support.mobileOS.device === 'android' ? 0 : 20);
    }
});

This code works fine when I run it in JavaScript, but after trying it in TypeScript and I getting compiler errors - it's complaining about the "skin" and "init" options.  The errors are shown in the attached images (skin.png and init.png).  The skin configuration option is shown in the Kendo docs (http://docs.telerik.com/kendo-ui/api/javascript/mobile/application#configuration-skin), so is it just a matter of the type definition file being incorrect?  Or is there something else I need to do?

Also, looking over the type definition file, it appears that the ApplicationOptions parameter used when initializing the application object is missing quite a few items that are listed in the Kendo documentation (http://docs.telerik.com/kendo-ui/api/javascript/mobile/application) - things like browserHistory, hashBang, modelScope, useNativeScrolling, etc. So this seems like more than just a minor oversight, which leads me to my other question...is TypeScript fully supported for Kendo Mobile?  Just want to make sure I'm going down the "sanctioned" path before I get too far into my project.

Petyo
Telerik team
 answered on 15 Sep 2016
1 answer
79 views

is there a way to solve this problem where i wanted to maintain the structure of the grid.

<div id="grid" ></div>
var data = [
{"_type":"ProductDetails:#NWProducts","Discount":0,"OrderId":10248,"ProductId":11,"UnitPrice":14.0000,"quanity":12},
{"_type":"ProductDetails:#NWProducts","Discount":0,"OrderId":10248,"ProductId":42,"UnitPrice":9.8000,"quanity":10},
{"_type":"ProductDetails:#NWProducts","Discount":0,"OrderId":10248,"ProductId":72,"UnitPrice":34.8000,"quanity":5},
{"_type":"ProductDetails:#NWProducts","Discount":0,"OrderId":10249,"ProductId":14,"UnitPrice":18.6000,"quanity":9}];
 
 
var grid = $("#grid").kendoGrid({
    columns   :[
    {title:"test",
        columns:[
        {field:"_type", title:"Type"},
        {field:"Discount", title:"Discount"},
        {field:"OrderId", title:"Order Id"},
        {field:"ProductId", title:"Product Id"},
        {field:"UnitPrice", title:"Unit Price"},
        {field:"quanity", title:"Quanity"}]
        }],
         
        dataSource:{
            data:data
        },
        height:400,
        scrollable: true,
        pageable:true,
        columnMenu: true,
        sortable:{
            mode:"multiple"
        }
});
Austin
Top achievements
Rank 1
 answered on 15 Sep 2016
4 answers
555 views
How can I achieve that all modal windows (and all .k-overlay) has z-index greater then 100000? Basically I want to increase z-index for constant(100000) if window is modal.
Magdalena
Telerik team
 answered on 15 Sep 2016
3 answers
151 views

Can you write some example how to use your Mobile framework with TypeScript. I write some layout, some views, bind it to model, but as soon as I add import statement, binding to model is not working.

App.ts

import * as WS from "./libraries/matjaz/classes/websocket"//cause binding doesn't work
class ModelLogin extends kendo.data.ObservableObject
    host = "";
    port = 1501;
    username = "";
    password = "";
    constructor()
    {
        super();
        super.init(this);
    }
    onLogMeInClick()
    {    
        
    }
}
class ModelMain extends kendo.data.ObservableObject
{  
    isLogedIn = true;
    constructor()
    {
        super();
        super.init(this);
        $("#button-logout").click(() =>
        {
            this.set("isLogedIn", false);
            app.navigate("#/");
        });
    }
    onShowLoginClick()
    {
        
        $("#view-login").data("kendoMobileModalView").open();
    }
}
var modelLogin = new ModelLogin();
var modelMain = new ModelMain();
var app: kendo.mobile.Application;
$(function ()
{
    app = new kendo.mobile.Application($(document.body), {
        skin: 'flat',
        layout: "layout-main",
        init: function ()
        {
            if (modelMain.isLogedIn !== true)
                $("#view-login").data("kendoMobileModalView").open();
        }
    });
    
});

index.html:

<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
 
    <link href="styles/external/kendo/kendo.mobile.flat.css" rel="stylesheet" />
    <link href="styles/external/font-awesome/font-awesome.css" rel="stylesheet" />
 
    <script src="scripts/external/jquery-2.1.4.js"></script>
    <script src="scripts/external/kendo.mobile.js"></script>
 
    <script>
        kendo.data.binders.widget.buttonText = kendo.data.Binder.extend({
            init: function (widget, bindings, options) {
                //call the base constructor
                kendo.data.Binder.fn.init.call(this, widget.element[0], bindings, options);
            },
            refresh: function () {
                var that = this,
                    value = that.bindings["buttonText"].get(); //get the value from the View-Model
                $(that.element).text(value);
            }
        });
    </script>
    <script src="scripts/external/require.js" data-main="scripts/app"></script>
</head>
<body>
    <div id="view-main" data-role="view" data-layout="layout-main" data-model="modelMain" data-title="Title">
        <div data-bind="visible: isLogedIn">
            <ul class="navigation-icons">
                <li><a href="#holiday_announcment.html"><span class="fa fa-4x fa-plane"></span><div>Najava dopusta</div></a></li>
            </ul>
        </div>
        <div data-bind="invisible: isLogedIn">
            <button data-role="button" class="km-primary km-justified" data-bind="events: {click: onShowLoginClick}">click</button>
        </div>
    </div>
 
    <div data-role="modalview" id="view-login" data-model="modelLogin" style="width:90%;">
        <div>
            <ul data-role="listview" data-style="inset">
                <li>
                    <label class="km-required">
                        <span>host</span>
                        <input data-bind="value: host" type="text" />
                    </label>
                </li>
                <li>
                    <label class="km-required">
                        <span>port</span>
                        <input data-bind="value: port" type="number" />
                    </label>
                </li>
                <li>
                    <label class="km-required">
                        <span>username</span>
                        <input data-bind="value: username" type="text" />
                    </label>
                </li>
                <li>
                    <label class="km-required">
                        <span>password</span>
                        <input data-bind="value: password" type="password" />
                    </label>
                </li>
                <li style="text-align: center;"><button data-role="button" class="km-primary" data-bind="events: {click: onLogMeInClick}">login</button></li>
            </ul>
        </div>
    </div>
     
    <section data-role="layout" data-id="layout-main" data-model="modelMain">
        <header data-role="header">
            <div data-role="navbar" class="navigation">
                <a data-align="left" href="#/"><span class="fa fa-home"></span></a>
                <a data-align="left" style="padding-left: 2em;"><span class="fa fa-angle-left"></span></a>
                <span data-role="view-title"></span>               
                <a data-align="right" data-bind="events: {click: onLogoutClick}" id="button-logout"><span class="fa fa-sign-out"></span></a>
            </div>
        </header>
    </section>
</body>
</html>

Seyfor
Top achievements
Rank 1
 answered on 15 Sep 2016
1 answer
159 views

I'd like to be able to use kendoListView within an ng-repeat to display several list views, but it can't seem to find the data source when I use an array of data sources. 

E.g., something like:

         <div ng-repeat="listIndex in [0, 1, 2]">
                <kendo-list-view id="listView-{{listIndex}}"
                                 k-data-source="dataSource[{{listIndex}}]"
                    <div k-template>
                        {{dataItem.Name}}
                    </div>
                </kendo-list-view>
          </div>

Brian D
Top achievements
Rank 2
 answered on 14 Sep 2016
1 answer
285 views

Need Help please...!!!

I am using tabstrip and angular UI routing to navigate those tabs. When i click on the tab it's url is changing but the tab is not switching.

I have 3 tabs. First 2 tabs are working as expected. But the last tab is not switching even though it's url is changing.

Here is my HTML code.

 

<div id="tabstrip" kendo-tab-strip="tabs">
            <!-- tab list -->
            <ul>
                <li class="k-state-active"><a ui-sref="mercury_dashboard">Mercury Dashboard</a></li>
                <li><a ui-sref="transaction_view">Mercury Transaction view</a></li>
                <li><a ui-sref="deliveries_view">Mercury Deliveries view</a></li>
            </ul>
            <div>
              <ui-view></ui-view>
            </div>
            <div>
              <ui-view></ui-view>
            </div>
            <div>
              <ui-view></ui-view>
            </div>
</div>

Corresponding JS file.

var mercury=angular.module("mercury", [ 'kendo.directives' ,'ui.router']);

        mercury.config(['$stateProvider', '$urlRouterProvider', function($stateProvider, $urlRouterProvider)
        {
           
           
               $stateProvider
                       .state('mercury_dashboard',
                            {url : '/mercury_dashboard',
                            controller: 'mercury_controller'
                            
                            })
                        .state('transaction_view',
                            {url : '/transaction_view',
                            controller: 'transaction_controller',
                            templateUrl: 'transaction_view.html'
                            
                            })
                        .state('deliveries_view',
                            {url : '/deliveries_view',
                            controller: 'deliveries_controller',
                            templateUrl: 'deliveries_view.html'
                        });
                          
                       
        }]);

Please let me know if you need further information. 

Thank you.

Veselin Tsvetanov
Telerik team
 answered on 14 Sep 2016
1 answer
101 views
Can ModalView have model property like View?
Stefan
Telerik team
 answered on 14 Sep 2016
1 answer
126 views

In my mobile application I have many remote views. I want to include model for view from typescript on demand. I have large project and I do not want to load all script files for views.

How can I achieve that?

Stefan
Telerik team
 answered on 14 Sep 2016
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
SmartPasteButton
PromptBox
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?