Telerik Forums
Kendo UI for jQuery Forum
0 answers
111 views
Hello.
I understand that you want to provide developers with complete framework for building html5 apps. But with the last release where you have added your own MVVM implementation we've got into troubles.
We have our own objects and can't inherit them from kendo.ObserableObject. We was adding them into kendo.Grid and evething worked. But now kendo automatically tries to wrap our objects into its own ObserableObject/ObserableArray objects. As our object have cyclic references wrapping process fails with StackOverflow exception. I wonder what's your position about using kendo with "foreign" viewModels (which weren't created by kendo.obsersable): do you suppose it to work or not? Tnx.
Sergei
Top achievements
Rank 1
 asked on 05 Apr 2012
2 answers
126 views
If I have a object with properties bound to a grid: A, B, C, D (Object Order), but columns as displayed (D, C, B, A) by changing the columns value on the gird when an item is added it seems to be added in the grid column order, not the object order, so I get a very interesting collection:

A, B, C, D
A, B, C, D
D, C, B, A

Where the first two are items retrieved from a database and the last one is added via the add button on the grid.

Needless to say when I send the data to the web service, it really doesn't like it.

I don't know if this is a Javascript problem, a WCF problem, a Kendo MVVM problem or a Kendo Grid problem. If I rearrange the object on the WCF side to list in the order I want to display things. All seems fine.

What is the best way to handle this?

Thanks
Randy
Randy
Top achievements
Rank 1
 answered on 05 Apr 2012
4 answers
840 views
Hello,

I have downloaded for testing Kendo Mobile and tried to create a simple login page but failed.
My login page has a very strange layout problem that I can't solve.

Currently I have no idea why it is impossible to create a simple login page with Kendo Mobile or what I'm doing wrong.

The code of the login page is here:

<!DOCTYPE html>
<html>
<head>
        <meta charset="utf-8" />
        <meta name="viewport" content="width=600, initial-scale=1, maximum-scale=1">
        <meta name="apple-mobile-web-app-capable" content="yes"/>
        <script type="text/javascript" src="Scripts/jquery-1.7.1.min.js"></script>
        <script type="text/javascript" src="Scripts/jquery.json-2.3.min.js"></script>
        <script type="text/javascript" src="Scripts/knockout-2.0.0.js"></script>
 
        <script type="text/javascript" src="Scripts/kendo/kendo.mobile.min.js"></script>
        <script type="text/javascript" src="Scripts/kendo/plugins/console.js"></script>
        <link href="Styles/kendo/kendo.mobile.all.min.css" rel="stylesheet" />
</head>
<body>
     
<div data-role="view" data-layout="login" data-title="Login">
    <div data-role="header">
        <div data-role="navbar">
            <span data-role="view-title"></span>
        </div>
    </div>
    <div data-role="footer">
        <div data-role="tabstrip">
            <a data-icon="globe" href="#overview-cities">Login</a>
            <a data-icon="contacts" href="#overview-contacts">Contacts</a>
        </div>
    </div>
    <div id="container">
        <span>Main header</span>
        <div>
            <label for="Username">Username</label>
            <input id="Username" name="Username" type="text" />
        </div>
        <div>
            <label for="Password">Password</label>
            <input id="Password" name="Password" type="password" />
        </div>
        <div class="clear">
        </div>
        <div>
            <label for="SelectedLanguage">SelectedLanguage</label>
            <select id="SelectedLanguage" name="SelectedLanguage">
                <option value="da-DK">dansk (Danmark)</option>
                <option value="en-GB">English (United Kingdom)</option>
                <option value="fi-FI">suomi (Suomi)</option>
                <option value="de-DE">Deutsch (Deutschland)</option>
                <option value="nb-NO">norsk, bokmål (Norge)</option>
                <option selected="selected" value="ru-RU">русский (Россия)</option>
                <option value="sv-SE">svenska (Sverige)</option>
            </select>
        </div>          
        <div>
            <a input="button" data-role="button">Login</a>
        </div>
    </div>
</div>
 
<script type="text/javascript">
    window.kendoMobileApplication = new kendo.mobile.Application();
</script>
</body>
</html>

I have also attached a simple project with this page to illustrate the problem.

Can anybody help me?
Did anyone try to create a mobile login form with Kendo mobile?

Thank you very much.

Vladimir
Kamen Bundev
Telerik team
 answered on 05 Apr 2012
2 answers
349 views
I have a view with a listview showing some menu items generated from a web service data source.

Each menu item has an onclick which causes the listview to be rebinded with new menu items.

At this point I also want to change the title of the view. How do I do this?

I tried:
document.getElementById("myView").setAttribute("data-title", myNewTitle)
but this only works when the page is first displayed.

Thanks
Keith
Keith Avery
Top achievements
Rank 1
 answered on 05 Apr 2012
0 answers
231 views

Hi

We are working with the Kendo UI and are quite new to MVVM. We were trying out the following scenario and came across an issue which is as below.

We have a checkbox list on our page along with 2 listboxes (say listbox1 and listbox2).

The checkboxlist is a consolidated list of all the items from both the ListBoxes. Initially when no items are checked on the checkboxlist, all the items appear on the listbox1. The items when checked on the checkboxlist should move to listbox2 and should be removed from listbox1.

There is also a textbox and button ['Add Item'] using which we can add values to listbox1 (correspondingly these will appear as unchecked on the checkboxlist).

The problem:

The viewModel does not get refreshed on the check and uncheck events of the checkboxes. Because of this, the listboxes do not get updated with their  respective items.
However the viewModel refreshes the listboxes when a new item is added using the textbox and 'Add Item' button.

Please follow the JSFiddle link for code reference:  http://jsfiddle.net/umeshkrishna/eqWK2/9/

I am also attaching screen- shots as aides.

Looking  forward to a speedy reply.


Thanks
Umesh

 

 

 

 

 

 

 

 

 

 

Umesh
Top achievements
Rank 1
 asked on 05 Apr 2012
0 answers
168 views
This is not so much a question as it is a quick tip to help those with similar needs.

I want to open a row's detail simply by clicking a selection, as opposed to having to click on the arrow cell. As part of the kendoGrid initialization, I added the following code:
,   change         : function() {
        var grid = this;
 
        grid.select().each(function() {
            grid.collapseRow(grid.tbody.find("tr.k-master-row"));
            grid.expandRow(grid.tbody.find("tr.k-state-selected"));
        });
    }

This will first close all open detail rows, then open the one you've selected.
Mike
Top achievements
Rank 1
 asked on 05 Apr 2012
1 answer
212 views
Hi,

The grid loses the selection (highlighting) on sorting, is there any way to retain the selection on sort or default selection to first row after sort is done?

J
David
Top achievements
Rank 1
 answered on 05 Apr 2012
1 answer
341 views
Hi there,

Just wanted to let you know that I think I found a bug that the grid footer does not scroll horizontally like the header does. Here's an example http://jsfiddle.net/mtrichards26/zCZGF/6/

Here's what I did locally to make this work (in the grid's _footer and _wrapFooter functions, changes preceded with //CHANGE)
_footer: function() {
           var that = this,
               aggregates = that.dataSource.aggregates(),
               html = "",
               footerTemplate = that.footerTemplate,
               options = that.options;
 
           if (footerTemplate) {
               html = $(that._wrapFooter(footerTemplate(aggregates || {})));
 
               if (that.footer) {
                   var tmp = html;
 
                   that.footer.replaceWith(tmp);
                    
                   that.footer = tmp;
               } else {
                   if (options.scrollable) {
                       that.footer = options.pageable ? html.insertBefore(that.wrapper.children("div.k-grid-pager")) : html.appendTo(that.wrapper);
                        
                      //CHANGE: Have scroll event move .k-grid-footer-wrap                      
                      var scrollables = that.footer.children('.k-grid-footer-wrap');
 
                      that.content.bind('scroll', function () {
                           scrollables.scrollLeft(this.scrollLeft);
                   });
 
                   } else {
                       that.footer = html.insertBefore(that.tbody);
                   }
               }
           }
       },
 
       _wrapFooter: function(footerRow) {
           var that = this,
               html = "",
               columns = that.columns,
               idx,
               length,
               groups = that.dataSource.group().length,
               column;
 
           if (that.options.scrollable) {
               //CHANGE: Add extra div with .k-grid-footer-wrap
               html = $('<div class="k-grid-footer"><div class="k-grid-footer-wrap"><table cellspacing="0"><tbody>' + footerRow + '</tbody></table></div></div>');
               that._appendCols(html.find("table"));
 
               return html;
           }
 
           return '<tfoot>' + footerRow + '</tfoot>';
       },


Also, I thought I posted this yesterday but didn't see it today so if its a duplicate please feel free to delete this post.

Thanks,
Matt
Dimo
Telerik team
 answered on 05 Apr 2012
1 answer
139 views
Is there an easy way to specify a label to a range?

I only see the ability to specify a label for the scale itself.
Iliana Dyankova
Telerik team
 answered on 05 Apr 2012
0 answers
357 views
The treeview allows only a single node selection.  Has anyone figured out how to configure treeview so that multiple nodes can be selected ?  I want to avoid checkboxes at every node.

The multiple selection is actually multiple nodes but in different branches.  When a node is selected and any ancestor was previously selected, then the ancestor should be deselected.
Richard
Top achievements
Rank 1
 asked on 05 Apr 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
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
+? 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?