Telerik Forums
Kendo UI for jQuery Forum
1 answer
315 views
I have tried this a couple of ways but the styling of the switch is not right.  First with the "Blank" template and manually adding my own kendo files, and then with the Kendo Mobile template.  The result is the same with both templates and also with the flat skin.

http://jsfiddle.net/jeangentile/nnXQm/

Kendo UI Mobile 2013.2.918
Jquery 1.9.1
Cordova 3.0

In all cases, the "on" position of the switch seems to be too far to the right, leaving some of the "off" background visible.

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <link rel="stylesheet" type="text/css" href="kendo/kendo.icenium.min.css" />
        <title>Hello World</title>
    </head>
    <body>
        
        <div class="app">
            <ul>
                <li>Password never expires <input id="wink-switch" /></li>
            </ul>
        </div>

        <script type="text/javascript" src="cordova.js"></script>
        <script src="kendo/jquery.min.js"></script>
        <script src="kendo/kendo.mobile.min.js"></script>

        <script type="text/javascript">

            var mobileApp = new kendo.mobile.Application(document.body, { 
                skin: "flat"
            });
            
            $("#wink-switch").kendoMobileSwitch();
        
        </script>
    </body>
</html>






Jean
Top achievements
Rank 1
 answered on 29 Sep 2013
8 answers
680 views
Hello,

I have a data set similar to this:

Name:Joe Smith,  Rank:Captain, RankNum: 3
Name:Jane Doe,  Rank:Chief,     RankNum: 1
Name:Paul Smith,Rank:FF,         RankNum:4

I have a datasource that pulls into a MobileUI ListView.  What I am having an issue is that I am grouping the data based on Rank, but I want the ListView to be sorted by RankNum.  If I just apply the sort with no grouping the ListView displays sorted by RankNum, but if I add a group then I loose my sort.  Is there a way to solve this? 
Ralph
Top achievements
Rank 1
 answered on 28 Sep 2013
2 answers
143 views
Is there an easy way to make the toolbar buttons bigger for tablet screens? 

Thanks
Michael H
Top achievements
Rank 2
 answered on 27 Sep 2013
1 answer
132 views
Not sure this is the right forum for this but here goes. I have a mobile app that gets an image via the camera. It puts the contents of the image into the variable 'imageData' I then use jquery:
$('#smallImage').attr('src', "data:image/jpeg;base64," + imageData);
into the image:
<img id="smallImage" width="100%" data-bind="attr: { src: Robot.Picture }">
that works fine as far as display goes. It does not however add it to "Robot"

I am using jaydata to save the data to a local database and the model has a lot of fields (all text inputs) and they all data-bind fine. 

Any ideas?
Richard
Top achievements
Rank 1
 answered on 27 Sep 2013
2 answers
178 views
Hi
I'm trying to set the CategoryMemberName in MVC using the chart builder - ChartSeriesFactory. I see in the API docs there is an overload of column that is supposed to take 4 string arguments, yet I am getting compilation errors that no overload of column takes 4 strings. How can I set the CategoryField on my series to a string using MVC helper?

from the api docs

Column(System.String,System.String,System.String,System.String)
Defines bound bar series.
Parameters
valueMemberName System.String  The name of the value member.
colorMemberName System.String  The name of the color member.
categoryMemberName System.String The name of the category member.
noteTextMemberName System.String The name of the note text memberFrom <http://docs.kendoui.com/api/wrappers/aspnet-mvc/Kendo.Mvc.UI.Fluent/ChartSeriesFactory>

Dan
Top achievements
Rank 1
 answered on 27 Sep 2013
4 answers
462 views
Hello,

I have a problem to work the serverGrouping in my datasource and the kendo grid (download my project). 

this is my json result request : 

{"data":[{"toto":2,"name":"la valeur de i0"},{"toto":2,"name":"la valeur de i1"}],"count":1,"groups":[{"field":"toto","value":"2","items":[{"toto":2,"name":"la valeur de i0"},{"toto":2,"name":"la valeur de i1"}],"hasSubgroups":false,"aggragates":{}}]}


and this my javascript : 

var source = new kendo.data.DataSource({
            type: "jsonp",
            transport: {
                read: "Home/GetResult"
            },
            schema: {
                groups: "groups",
                total: "count",
                model: {
                    fields: {
                        toto: { type: "number" },
                        name: { type: "string" }
                    }
                },
                data: "result"
            },
            serverGrouping: true
        });
 
        $(document).ready(function () {
            $("#grid").kendoGrid({
                dataSource: source,
                height: 250,
                groupable: true,
                columns: [{
                    field: "toto",
                    title: "toto",
                    width: 100
                },
                {
                    field: "name",
                    title: "name",
                    width: 100
                }
            ]
            });
        });


but I have an error => SCRIPT5007: Unable to get value of the property 'length': object is null or undefined 

what's wrong with my kendo grid or my configuration ?

Thank you
Lakshmi
Top achievements
Rank 1
 answered on 27 Sep 2013
1 answer
154 views
My Exemple: http://jsfiddle.net/rhvieira/FkP8z/

To show the error you need follow steps.
 1- Click in Edit button
2 - click in the pencil in the first column
3 - type a value into html control and close the window.
4 - click in update button 

Now occurs the error, in this step I try update the model, but when i did it the visual has been changed but the internal data is not marked as changed, then when 
I send all informations to the server the record is not updated.

When I do the same steps in new record all works are done or when change the first and other column and save this work too.

Best Regards,
Vieira



Alexander Valchev
Telerik team
 answered on 27 Sep 2013
3 answers
109 views
I am using dataSource and kendo template to populate a list of details from a api. Below code explain the view and viewmodel to display the data.
View:

<div data-role="view" id="myProjectView" data-title="Products List" data-init="myProjectListViewTemplatesInit">
        <header data-role="header">
            <div data-role="navbar">
                <span data-role="view-title"></span>
                <a data-align="right" data-role="button" class="nav-button" href="#index">Index</a>
            </div>
        </header>
        <ul id="myProjectCustomListView"></ul>
    </div>
    <script id="myProjectCustomListViewTemplate" type="text/x-kendo-template">
        <h3 class="item-title">Project Name: ${ProjectName}</h3>
        <p class="item-info">Created Date: ${CreateDate}</p>
    </script>
    <script src="scripts/jquery.min.js"></script>
    <script src="scripts/kendo.mobile.min.js"></script>
    <script src="scripts/viewModel/myProjectsViewModel.js"></script>
    <script>var app = new kendo.mobile.Application(document.body);</script>
viewModel - myProjectsViewModel.js



function myProjectListViewTemplatesInit(){
     var dataSource = new kendo.data.DataSource({
         transport: {
             read: {
                 url: "http://127.0.0.1/api/getProjectList",
                  
                 dataType: "json",
             }
         },
     });
      
     $("#myProjectCustomListView").kendoMobileListView({
         dataSource: dataSource,
         template: $("#myProjectCustomListViewTemplate").html(),
     });
};
The above api will return JSON data like below

[{"ProjectId":2,"ProjectCode":"TestProject","ProjectName":"TestProject","Description":"","CreateDate":"2013-09-13T00:00:00","Owner":"TestProject","StartDate":"2013-09-13T00:00:00","EndDate":"2013-09-13T00:00:00","StatusId":4,"IsActive":true,"ERPCompany":"","TemplateId":0,"DocumentTemplateID":0,"DocMetadataID":null,"IsDeleted":"","ERPCurrency":"$","ProjectMode":"L","DocumentListID":"","RowNum":3,"pagecount-1":null},{"ProjectId":1,"ProjectCode":"TemplateProject","ProjectName":"TemplateProject","Description":"","CreateDate":"2013-09-13T00:00:00","Owner":"Aurigo","StartDate":"2013-09-13T00:00:00","EndDate":"2013-09-13T00:00:00","StatusId":4,"IsActive":true,"ERPCompany":"","TemplateId":0,"DocumentTemplateID":0,"DocMetadataID":null,"IsDeleted":"","ERPCurrency":"$","ProjectMode":"L","DocumentListID":"","RowNum":4,"pagecount-1":null}]
I want to format the date column(CreateDate: 2013-09-13T00:00:00) like 13/09/2013. Help me in this.
Petyo
Telerik team
 answered on 27 Sep 2013
1 answer
208 views
Hello,
   i'm using a TabStrip in which every Tab contains an iframe with a web page with JSON data loaded via AJAX. Inside of the frame i do include plenty of JS  and CSS files.

I would like to dinamically change the content of the tab, but i would like to know if it's safe to simply use the remove() call on the Tab or if i need some special actions to make sure to clean everything?

Thanks in advantage.
Kiril Nikolov
Telerik team
 answered on 27 Sep 2013
2 answers
114 views
Hello,

Have done an install of the kendoui.aspnetmvc.2013.2.918.trial.msi package.

Getting a YSOD on any chart with a MajorGridLines(lines => lines.Visible(false)) in it, running the supplied demo app causes issue also, all other dataviz control work fine.

Have reinstalled and also restarted machine, no luck.

Running Windows 8.0, VS 2012.

Is this an issue with the trial distribution?

Many Thanks
Hristo Germanov
Telerik team
 answered on 27 Sep 2013
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
Drag and Drop
Application
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
LLM Kit
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?