Telerik Forums
Kendo UI for jQuery Forum
4 answers
205 views
hi,

Please advise....How can i prevent tabstrip footer blinking when i load a remote view? any trick?

This is my remote view:
<div data-role="view" id="order_list_mobile" data-layout="mobile-tabstrip" data-title="<?php echo $this->language->get('text_sale');?>"  data-reload="true" data-show="afterShow">
    <header data-role="header">
        <div data-role="navbar">
            <a data-role="backbutton" data-align="left">Back</a>
            <span data-role="view-title"><?php echo $this->language->get('text_sale');?></span>
        </div>
    </header>
    <ul data-role="listview" data-style="inset" data-type="group" class="inboxList">
        <li>
            <?php echo $this->language->get('text_sale');?>
            <ul>
                <?php if ($orders) { ?>
                        <?php $id = 0;?>
                        <?php foreach ($orders as $order) { ?>
                            <li>
                                <h3 class="time"><?php echo $order['customer']; ?></h3>
                                <h3><?php echo $order['date_added']; ?></h3>
                                <h3><?php echo $order['total']; ?></h3>
                                <p><?php echo $order['date_added']; ?></p>
                                 
                                <?php foreach ($order['action'] as $action) { ?>
                                    <a data-role="button" href="<?php echo $action['href'];?>">
                                        <?php echo $action['text']; ?>                       
                                    </a>
                                <?php } ?>
                                 
                            </li>
                        <?php } ?>
                     
                <?php } ?>
            </ul>
        </li>
    </ul>
</div>
 
<script>
    function afterShow(e) {
        var tabstrip = e.view.footer.find(".km-tabstrip").data("kendoMobileTabStrip");
            tabstrip.switchTo(2);
    }
</script>


And this is my footer that  initialized just one time:
<div data-role="layout" data-id="mobile-tabstrip">
    <header data-role="header">
        <div data-role="navbar">
            <a data-align="left" data-role="backbutton" class="nav-button"><?php echo $this->language->get('button_back');?></a>
            <span data-role="view-title"></span>
            <a data-align="right" data-role="button" class="nav-button" href="#index" data-icon="refresh"></a>
        </div>
    </header>
    <div data-role="footer">
        <div data-role="tabstrip" id="myTabStrip">
            <a href="#tabstrip-home" data-icon="recents"><?php echo $this->language->get('tab_general');?></a>
            <a href="#index.php?route=catalog/product&token=<?php echo $this->session->data['token'];?>" data-icon="cart"><?php echo $this->language->get('text_catalog');?></a>
            <a href="#index.php?route=sale/order&token=<?php echo $this->session->data['token'];?>" data-icon="bookmarks"><?php echo $this->language->get('text_sale');?></a>           
            <a href="#tabstrip-settings" data-icon="settings"><?php echo $this->language->get('text_setting');?></a>
        </div>
    </div>
</div>



Please see the video with my problem:

http://www.youtube.com/watch?v=OI8pkYXC6rk

Petyo
Telerik team
 answered on 26 Feb 2014
4 answers
97 views
Not seeing the jQuery version for Q2 2013 listed anywhere. It's nice that you bundle jQuery with Kendo, but I like knowing the version I'm using. Is it still 1.9.1?

Thanks.
Atanas Korchev
Telerik team
 answered on 26 Feb 2014
1 answer
4.0K+ views
Hello,
   I have noticed this bug during our development.
I have a html input like this set to 10/10/2011 3:35PM
<input id="datepicker" value="10/10/2011 3:35PM" style="width:250px;" />

Now I change this to a kendoDateTimePicker with 24 hour time format.
                $("#datepicker").kendoDateTimePicker({format: "MM/dd/yyyy HH:mm", parseFormats: ["MM/dd/yyyy", "HH:mm"],  timeFormat: "HH:mm" });

however the time is showing as 3:35 instead 15:35 in 24 hour format.

I have created and example at jsbin 

http://jsbin.com/tupof/8/edit

It is critical for our development to fix this issue and appreciate any help to resolve this issue as soon as possible.

Thanks
Georgi Krustev
Telerik team
 answered on 26 Feb 2014
4 answers
360 views
Throughout he application, we have several Kendo Grids.  Some have functionality attached to the dataBound event, some do not.  How can I extend the dataBound event to always call some functionality without discarding the functionality added to specific grids.

Let's say I have two grids, 'grid-a' and 'grid-b'.  'grid-a' has functionality associated with its dataBound event (call it gridASpecialFunction).  I also want to globally always call a function on dataBound of all grids (call it updateGridLookAndFeel).  How can I make sure I always call updateGridLookAndFeel for all grids without having to add it to each grid's dataBound event individually.  Also I don't want to discard any existing dataBound event functionality (gridASpecialFunction).

Note, updateGridLookAndFeel should be called after any local functionality.

Thanks,
--Ed
Alexander Valchev
Telerik team
 answered on 26 Feb 2014
9 answers
270 views
The following worked fine when using 2013.2.918.
I use TypeScript and The dropdown control creates fine and the drop down list of choices properly reflect the values in the data source.

I've broken it down to:
this.control = jQuery('<input id="' + this.id + '" ></input>');
var data: Array<Object> = new Array<Object>();
            data.push({ data: 'red', label: 'Red' });
            data.push({ data: 'green', label: 'Green' });
            data.push({ data: 'blue', label: 'Blue' });

            this.menu = new kendo.ui.DropDownList(this.control.get(0), {
                dataTextField   : "label",
                dataValueField  : "data",
                dataSource      : data,//this.dataSource,
                change          : jQuery.proxy(this.onChange, this)
            });


Red, Green, Blue are in the list, but the button/input items just shows "undefined" when initially displayed and when any of the items in the drop down menu are selected.  

When an item does change, the select() is correct that corresponds to the currently selected item in the drop down list.  Further, setting (select(index) ) works as well; the given index is selected in the drop down list.  Just the label in the button/input control always says "undefined".

The original code creates a DataSource and data is added to that control, but that does it as well.  The code above is a simpler example of the issue.

As I said, all this worked under an earlier version of Kendo.

Screen shot attached.
Alexander Popov
Telerik team
 answered on 26 Feb 2014
1 answer
133 views
When having

var app = new kendo.mobile.Application(document.body, {});

you can navigate backwards to the previous view by

app.navigate("#:back");

which is very useful.

How can I step backwards two steps? And can I remove entries from the "back stack" manually?
Petyo
Telerik team
 answered on 26 Feb 2014
4 answers
884 views
Hi,
Is there a way out to hide column at definition time itself ? Say, a variable contains true/false value that determines if a column is to be shown/hidden.
Any template or anything ? I use the the client side scripting.​
I know this one,
but it is on user action, i would like to hide/show columns at time of definition itself.
Dimiter Madjarov
Telerik team
 answered on 26 Feb 2014
3 answers
3.9K+ views
Using MY WCF Service I am exposing JSON data.

[OperationContract]
 [WebGet(ResponseFormat=WebMessageFormat.Json)]
 List<ProductDetails> GetProductDetails();

The sample of JSON data returned is :

{"d":[{"_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},{"__type":"ProductDetails:#NWProducts","Discount":0,"OrderId":10249,"ProductId":51,"UnitPrice":42.4000,"quanity":40}


Trying to bind that to Kendo Grid using :

 
<script type="text/javascript">
                $(document).ready(function () {
                    $("#grid").kendoGrid({
                        dataSource: {
                            type: "json",
                            transport: {
                                 read: function (options) {
                                $.ajax({
                                    url: "http://localhost/KendoServices/Web/GetProductDetails",
                                    dataType: "json",
                                    success: function (result) {
                                        options.success(result);
                                    }
                                });
                            },
                            batch: true,
                            schema: {
                       type: 'json',
                       model: {
                           id: "OrderId",
                           fields: {
                               OrderId: { type: "string" },
                               ProductId: { type: "string" },
                               UnitPrice: { type: "string" },
                               quanity: { type: "string" },
                               Discount: { type: "string" }
                              }
                            }
                         },
                            pageSize: 10
                        },
                        height: 430,
                        filterable: true,
                        groupable: true,
                        sortable: true,
                        pageable: true,
                        columns: [{
                            field: "OrderId",
                            title: "OrderId",
                            width: 140
                        }, {
                            field: "ProductId",
                            title: "ProductId",
                            width: 190
                        }, {
                            field: "UnitPrice",
                            title: "UnitPrice"
                        }, {
                            field: "quanity",
                            width: 110
                        },{
                            field: "Discount",
                            width: 110
                        }]
                    });
                });
            </script>


But not able to bind the data to Grid. I think it's not even accessing the service.

Where am I doing wrong?
Nikolay Rusev
Telerik team
 answered on 26 Feb 2014
3 answers
60 views
Hi,

Please see attached image. When I try to load the grid, it throws "Unable to get property min of null reference.". Please let us know what is the fix for this, as this is not always thrown. But, we are not able to get the scenario for this error.

Thanks,
Shobana
Alexander Popov
Telerik team
 answered on 26 Feb 2014
1 answer
144 views
Hi Guys
I am currently validating the scheduler widget and it looks to me, like the datasource always requests the whole
calendar. We are actually storing millions of terms on the server side, so there must be a way to, lets say, just showing the terms of a
day, week, month or the like. I couldn't find any query parameter or post data when the datasource actually calls the read url.
Is there any way to constraint the time range for a read request of terms?

Best regards
Samuel
Rosen
Telerik team
 answered on 26 Feb 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
MultiColumnComboBox
Dialog
Chat
DateRangePicker
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Accessibility
Effects
PivotGridV2
ScrollView
Switch
BulletChart
Licensing
QRCode
ResponsivePanel
TextArea
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
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
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?