Telerik Forums
Kendo UI for jQuery Forum
1 answer
136 views
Hello, I am trying to get the Hello World example from http://www.kendoui.com/documentation/mobile/application/overview.aspx to work in a Visual Studio 2010 ASP.NET project.

i created a new aspx page called 'Mobile.aspx' and included all the Kendo js files and Scripts.
I tried to "aspify" the Hello World example, but when I run it via F5 (and it is displayed in Chrome) I just see the content from the default Site.master page, and just the text
Header
Hello world!
Footer
in the content area.  I see nothing that looks like a Kendo mobile app.

Here is my attempt at "aspification" of the Hello World app.  The Intellisense doesn't like the 'data-role' attribute, but I suspect my problems are much more basic.
--------------------------------------------------------------
<%@ Page  Title="Mobile" MasterPageFile="~/Site.master" Language="C#" AutoEventWireup="true" CodeFile="Mobile.aspx.cs"
    Inherits="Mobile" %>

<asp:Content ID="HeadContent" runat="server" ContentPlaceHolderID="HeadContent">
    <title>Kendo Mobile Test</title>
    <!-- Kendo UI Web styles-->
    <link href="styles/kendo.dataviz.min.css" rel="stylesheet" type="text/css" />
    <!-- Kendo UI Web scripts-->
    <script src="js/jquery.min.js" type="text/javascript"></script>
    <script src="js/kendo.dataviz.min.js" type="text/javascript"></script>-->
    <script src="content/console.js" type="text/javascript"></script>
</asp:Content>

<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">

   <div data-role="view">
     <div data-role="header">Header</div>
     Hello world!
     <div data-role="footer">Footer</div>
   </div>

   <script type="text/javascript" src="js/kendo.mobile.application.min.js">
       var app = new kendo.mobile.Application(); //document.body is used by default
   </script>

</asp:Content>
--------------------------------------------------------------

Thank you,
Tim
Tim
Top achievements
Rank 1
 answered on 02 May 2012
13 answers
1.6K+ views
Sample jsFiddle here: http://jsfiddle.net/latenightcoder/R4mKu/3/ 

Try selecting a new option and then canceling when the confirm dialog pops up. (This sets it back to the old value using the value method). Now, try selecting a new option and the change event doesn't trigger.
Richard
Top achievements
Rank 1
 answered on 02 May 2012
8 answers
717 views
Hi,

I am trying to load a different page on the first,second, and third tab when a drop down list selected item changes.I followed the solution at (http://www.kendoui.com/forums/ui/tabstrip/change-url-of-tab-content.aspx) but the code does not seem to work.

<script type="text/javascript">
$(function () {
  $("#AlliancesSummaryFormModel_CodeShare").change(function () {
$($('#timelineTabStrip').find('a.k-link')[0]).data('contentUrl', '/AlliancesPerformancePortal/Flown/AlliancesSummary/Q/2015/1/All/AED');
 
            });
        });
 
    </script>

The find method return value evaluates to an object which means it not null, but the call to .data('contentUrl',url) does not load the new URL content.

Thanks

Madani
Kamen Bundev
Telerik team
 answered on 02 May 2012
1 answer
127 views
Hi
Do you have any suggestions or best-practices for internationalization of the column names in the Kendo Grid?

I thought of creating a RESTservice that would give a JSON mapping for the language in question.

/Thomas
Alexander Valchev
Telerik team
 answered on 02 May 2012
1 answer
223 views
Hi,
I'm using the grid with the popup editor. All is well but when I click the update button the grid doesn't call the update url given to my datasource. I have the latest 2012.1.322 version of kendo. Is there a specific configuration I need to give to my grid for this to work?!!

        gridContainer
        .kendoGrid({
            dataSource : dataSource,
            pageable : false,
            height : 400,
            sortable : true,
            toolbar : [ "create" ],
                            columns : [
                    {
                        field : "firstName",
                        title : "First Name"
                    },
                    {
                        field : "lastName",
                        title : "Last Name"
                    },
                    {
                        field : "email",
                        title : "Email"
                    },
                    {
                        field : "status",
                        title : "Status",
                        editor : statusEditor
                    },
                    {
                        field : "telephone",
                        title : "Telephone"
                    },
                    {
                        field : "jobTitle",
                        title : "Job"
                    },
                    {
                        field : "newsSubscription",
                        title : "Subscribe to news?"
                    } ],
            editable : "popup"
        });
 
        var grid = gridContainer.data("kendoGrid");
    }
     
     
});
 
 
function createDataSource(readUrl, updateUrl, destroyUrl, createUrl){
    return new kendo.data.DataSource({
        transport : {
            read : {
                url : readUrl,
                dataType : "json"
            },
            update : {
                url : updateUrl,
                dataType : "json"
            },
            destroy : {
                url : destroyUrl,
                dataType : "json"
            },
            create : {
                url : createUrl,
                dataType : "json"
            },
            parameterMap : function(options, operation) {
                debugger;
                if (operation !== "read" && options.models) {
                    return {
                        models : kendo.stringify(options.models)
                    };
                }
            }
        },
        batch : true,
        pageSize : 30,
        schema : {
            model : {
                id : "id",
                fields : {
                    firstName : {
                        validation : {
                            required : true
                        }
                    },
                    lastName : {
                        validation : {
                            required : true
                        }
                    },
                    email : {
                        validation : {
                            required : true
                        }
                    },
                    telephone : {
                        validation : {
                            required : false
                        }
                    },
                    jobTitle : {
                        validation : {
                            required : false
                        }
                    },
                    newsSubscription : {
                        validation : {
                            required : false
                        },
                        type : "boolean"
                    },
                    status : {
                        validation : {
                            required : false
                        },
                        type : "text"
                    }
 
                }
            },
            data : function(data) {
                return data.users;
            }
        }
    });
}

Thank you,
Valanto
Iliana Dyankova
Telerik team
 answered on 02 May 2012
1 answer
161 views
I have a WCF RESTful service (http://localhost:8000/AccountService/GetAccounts) outputting valid JSON data:

[
{"Department":"Manager","ID":"1","Name":"Alexandre Heuze","Position":"General Manager"},
{"Department":"Accouting","ID":"2","Name":"Pengli Liu","Position":"Accounting Manager"},
{"Department":"Human Resources","ID":"5","Name":"Jie Wu","Position":"HR Administrator"},
{"Department":"Sales and Purchasing","ID":"6","Name":"Fei He","Position":"Sales Manager"},
{"Department":"R and D Department","ID":"10","Name":"Jun Zuo","Position":"R and D Engineer"}
]

The following code does not bind the JSON output to the Grid Widget:

var wcfDS = new kendo.data.DataSource({
    transport: {
        read: {
            url: "http://localhost:8000/AccountService/GetAccounts",
            dataType: "json"
        }
    },
    error: function(e) {
        alert(e.toString());
    }
});
$("#grid").kendoGrid({
    dataSource: wcfDS, 
    columns: [...]
});

The most relevant error message I can see is e.errorThrown = "No Transport". Your thoughts?
Nikolay Rusev
Telerik team
 answered on 02 May 2012
1 answer
163 views

We have a page where we have included the kendo.common.css stylesheet.  When we view this page in Firefox, we notice that all of our buttons are really tall.  We've tracked this issue down and it is due to the following style in kendo.common.css:

/* Override the important default line-height in Firefox 4+ */
:-moz-any(input[type="submit"], input[type="button"], input[type="reset"]) {
    padding-bottom: 0.37em;
    padding-top: 0.37em;
}

This applies top and bottom padding to any button on our page.  This seems wrong, should this not be something more specific than any button, maybe something like (or some variation thereof):

/* Override the important default line-height in Firefox 4+ */
input.k-button:-moz-any(input[type="submit"], input[type="button"], input[type="reset"]) {
padding-bottom: 0.37em;
padding-top: 0.37em;
}

Thanks,
Sara

Kamen Bundev
Telerik team
 answered on 02 May 2012
3 answers
1.6K+ views
This should be simple but it appears that the local function cannot be found from a template.  
What's missing?

See  http://jsfiddle.net/JVPa5/2/ 

...
template'#= Simple(OffDuty,OnDuty); #' 
...
function Simple(a,b){
     return 100                     
} 



Rosen
Telerik team
 answered on 02 May 2012
1 answer
266 views
Hi,

In our application we need a swipe function in a listview, that behaves similarly to that of the iphone messages inbox.  So when you swipe to the right (on a item in the listview) it shows a button that allows you to delete the item.

Please advise if there is such a feature available or if it will be available in the future? Otherwise would it be possible to implement our own using the html 5 touchstart and touchmove events? We've had issues trying to implement these side by side with kendo ui mobile...

Thanks
Petyo
Telerik team
 answered on 02 May 2012
1 answer
141 views
Testing in Chrome, using Twitter feed, I am trying to test the 'pullToRefresh' functionality but get this error in Chrome developer tools when I try to pull the list down. :

  1. Uncaught TypeError: Cannot call method 'pullHandled' of undefined
    1. g.extend.refreshkendo.mobile.min.js:2346
    2. e.extend.proxy.gjquery.min.js:538
    3. y.extend.triggerkendo.mobile.min.js:136
    4. o.extend._processkendo.mobile.min.js:1681
    5. o.extend.successkendo.mobile.min.js:1664
    6. e.extend.proxy.gjquery.min.js:538
    7. p.extend.read.c.successkendo.mobile.min.js:1503
    8. f.Callbacks.njquery.min.js:590
    9. f.Callbacks.o.fireWithjquery.min.js:635
    10. f.ajaxTransport.send.d.onload.d.onreadystatechange

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head>
    <title>My Open Cal</title>
 
    <!-- Kendo UI Files -->
    <link href="styles/kendo.mobile.all.min.css" rel="stylesheet" type="text/css" />
    <script src="js/jquery.min.js" type="text/javascript"></script>
    <script src="js/kendo.mobile.min.js" type="text/javascript"></script>
    <script>
        $( //jQuery page load
            function ()
            {
                var app = new kendo.mobile.Application($(document.body), { layout: "layout", icon: "/images/xboxavatar.png" });
                $("#ulMyCal").kendoMobileListView({
                    appendOnRefresh: true,
                    pullToRefresh: true,
                    pullTemplate: "Pull to refresh",
                    refreshTemplate: "Loading...",
                    dataSource: new kendo.data.DataSource(
                    {
 
                                transport:
                                {
                                    read:
                                    {
                                        url: "http://search.twitter.com/search.json",
                                        contentType: "application/json; charset=utf-8",
                                        type: "GET",
                                        dataType: "jsonp",
                                        data:
                                        {
                                            q: "#tampa"
                                        }
                                    }
                                },
 
                                schema: {
                                    data: "results"
                                     
                                }
                    }),
                    template:"<p>${text}</p>"
 
            });
 
        })
    </script>
</head>
<body>
 
    <!-- Layout for all views in the application, as specified when the app is created -->
    <div data-role="layout" data-id="layout">
      <div data-role="header" >
          <div data-role="navbar">
            <span data-role="view-title">My Test</span>
          </div>
      </div>
      <div data-role="footer">
          <div data-role="tabstrip">
            <a href="#index" data-icon="organize">My Calendar</a>
            <a href="#search" data-icon="search">Search</a>
            <a href="settings.htm" data-icon="settings">Settings</a>
          </div>
     </div>
    </div>
 
 
    <div data-role="view" id="index" data-title = "My Calendar">
        <div style="text-align:center">
            <ul id="ulMyCal" data-style="inset">
             
            </ul>
        </div>
    </div>
 
    <div data-role="view" id = "search" data-title = "Search">
         
    </div>
 
</body>
</html>
Petyo
Telerik team
 answered on 02 May 2012
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?