Telerik Forums
Kendo UI for jQuery Forum
1 answer
199 views
I am trying to open a modal dialog using $("#modalview-message").kendoMobileModalView("open"); it works on IE but not on chrome? Why is that happening?
Alexander Valchev
Telerik team
 answered on 19 Sep 2013
3 answers
533 views
I have the following view:

<div data-role="view" style="background: green;" id="tabstrip-card" data-init="cardViewInit" data-title="My card" data-layout="mobile-tabstrip">
      content goes here
</div>

I've tried various things to get a background color on my view (actually want a background image), without any luck. I can put a div inside the view div and set it's height/width and apply a background to that, but that seems a bit unnecessary. Is there a way I can get a background on the view itself?

bally
Top achievements
Rank 1
 answered on 19 Sep 2013
1 answer
59 views
I am trying to set the pageSize dynamically. If i do:
localStorage.getItem('pageSize') || 10,

i do not have a problem.

But if i do:
pageSize: function () {           
                    return parseInt(localStorage.getItem('pageSize')) || 10;             
            },

the data-source gets reloaded multiple times and NaN appears on the bottom of the grid - page NaN of 100 instead of 1 of 100


Thanks
Atanas Korchev
Telerik team
 answered on 19 Sep 2013
3 answers
81 views
When tabbing into a numeric text box, on the webkit browsers when you 'tab' into a numeric text box (with default value of 0), the cursor gets inserted after the 0. Given a table with 3 columns of numeric boxes 3-tab-4-tab-5 yields 3,4,5 as the leading zero just gets dropped. In IE, because the cursor goes after the zero,  3-tab-4-tab-5 yields 30,40,50.  I have tried the latest release and stable, and the bug persists.

I know I can select the text when focusing the numeric box using the hack here. But is there a way to make IE behave like the other browsers without selecting the text?

Kiril Nikolov
Telerik team
 answered on 19 Sep 2013
1 answer
183 views
Does anyone know how to bind a kendo grid to a html table using Razor syntax?  I have seen 

$("#grid").kendoGrid({
height: 430,
sortable: true
});

put nothing for the Razor syntax.
Nikolay Rusev
Telerik team
 answered on 19 Sep 2013
1 answer
150 views
If I declare a view as
<div data-role="view"
     data-title="Form Unexpected but nice"
     data-init="ns.viewA.init"
     data-before-show="ns.viewA.beforeShow"
     data-show="ns.viewA.show"
     data-model="ns.viewA.viewModel">
 
     ...
     <select data-bind="source:options,value:underlying.optionId"
           data-text-field="display"
           data-value-field="id"></select>
     ...
</div>
Then declare the js as
01.(function($, kendo, ns){
02.   var model = {
03.      options: [],
04.      underlying: null
05.   };
06.    
07.   model.bind('change', function (e) {
08.      var t;
09.      console.info('field %s changed.', e.field);
10.      if (e.field === 'underlying.optionId') {
11.         t = viewModel.options.singleOrDefault('id', model.underlying.optionId);
12.         viewModel.set('model.underlying.derivedValue', t.someValue);
13.      }
14.   });
15.    
16.   ns.viewA = {
17.      init: function(){
18.          // populate options
19.          ...
20.      },
21.      beforeShow:function(){
22.      },
23.      show: function(){
24.         model.set('underlying', {
25.            optionId: null,
26.            derivedValue: 'Not Set'
27.         });
28.      },
29.      viewModel: model
30.   };
31.}(jQuery, kendo, myApp));

I've two issues,  One if I properly instantiate the viewModel in the view.init, then the select source binding barfs because the array is not set when the binding is invoked.  What can I do to have the viewmodel late bound?  I've tried using kendo.bind(e.view.element, model) but this has the undesirable side-effect of destroying my
1.<ul data-role='listview'><li>static option/information</li></ul>


Two, when using SPA every visit to this view invokes another repetition of the 'change' event handler.  Thus, the first time I visit this view, the change handler is accurately invoked only once.  The second visit invokes the change handler twice.  Third view yields three executions and so on.  I'm assuming this has to do with the binding engine retaining a hook to the previous underlying object.  What can I do to ensure the change is only fired the one time for the current underlying regardless of the view count?
Alexander Valchev
Telerik team
 answered on 19 Sep 2013
1 answer
201 views
This is my index page, i am just trying to use some tabstrip example for my application in phonegap with kendo mobile

<!DOCTYPE html>
<html>
<head>
    <title>My App</title>

    <link href="styles/kendo.mobile.all.min.css" rel="stylesheet" />
    <link href="customize.kendo.css" rel="stylesheet" />
</head>
<body>
    <div id="home" data-role="view" data-layout="default">
        Hello Mobile World!
    </div>

    <section data-role="layout" data-id="default">
        <header data-role="header">
            <div data-role="navbar">My App</div>
        </header>
        <!--View content will render here-->
        <footer data-role="footer">
            <div data-role="tabstrip">
                <a href="#home">Home</a>
                <a href="about.html">About</a>     
            </div> 
        </footer>
    </section>
<script type="text/javascript" charset="utf-8" src="cordova.js"></script>
    <script src="js/jquery.min.js"></script>
    <script src="js/kendo.all.min.js"></script>
    <script>
    var app = new kendo.mobile.Application();
</script>
</body>
</html>


I have use some css which i found in kendo forum to enable the tabstrip title, i have written this css inside my customize.kendo.css

.km-android .km-tabstrip a
{
    color: #a8a8a8;
}

Kiril Nikolov
Telerik team
 answered on 19 Sep 2013
3 answers
111 views
When a user 'full screens' a kendoWindow I would like to disable its drag capabilities until it is 'restored'.

Can I do that?
I attempted to use setOptions but that didn't seem to work.
Kiril Nikolov
Telerik team
 answered on 19 Sep 2013
3 answers
58 views
Hi Guys,

I am using Kendo UI Trail Version "v2013.2.716" for mobile development with phonegap, currently we support Android/iOS/WP7. I am trying to run a basic demo with Phonegap and Kendo UI. Its running fine, but i can't see the UI theme its like a blank screen. 

I check here in kendo ui forum, they told there is no support for WP7 because lack of CSS3 features in IE9 browsers.  I want to know whether this kendo mobile ""v2013.2.716" version will support wp7.

If not, it will support WP8 latest one???
Kiril Nikolov
Telerik team
 answered on 19 Sep 2013
3 answers
145 views
Hi,

I have a site where it is possible up to 15 kendo windows could open all at once. And I have noticed a decrease in animation quality once we go past 5-6 windows.
I understand why this occurs, what I am wondering is if there is a better way for me to open these windows. 

Mainly there is one time when so many windows will open at once, and once more when a user leaves (the windows close).

Is there something I can do to help keep this animation smoother when so many are coming on at once?

How could I open one at a time? Open 1, wait until its animation is completely finished, then open the next? I know that 'activate', according to the documentation, is called once the animation is complete but it does not seem that way, but maybe that is do to something else I am doing.


Thanks
Dimo
Telerik team
 answered on 19 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
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?