Telerik Forums
Kendo UI for jQuery Forum
32 answers
1.9K+ views
Hi,

Could someone please provide an example of the correct way to bind a viewmodel to either a schemamodel  or datasource?

Perhaps, I'm blind, but I can't find one.  :)


Thanks!
Jeff
Top achievements
Rank 1
 answered on 22 Mar 2012
4 answers
227 views
I wasn't sure if this belonged in the datasource or mvvm thread.  We're attempting to use MVVM with a remote data source, however, we have several cases where we want to add more objects to the data source from the local side.

In our case, one example is for a select list with 1000 items in it.  We can have our web service build that select list object, but it increases the request size considerably.  We would prefer that this list of 1000 items be generated using a for loop on the client side.  We've tried things like this:

var UserLimitOptions = function () {
    var options = [];
    for (i = 1; i <= 1000; i++) {
        options.push({ Id: i, Name: i });
    }
    return options;
};
 
 
var subscriptionViewModel = new kendo.data.ObservableObject({
   data: [],
   UserLimitOptions: UserLimitOptions
 });

I'm filling the data object in the change event of the datasource.

However, when I bind a select list to the UserLimitOptions object of the view model, the change event of the select list errors - I assume because UserLimitOptions isn't "observable".

Any ideas on this?
Jeff
Top achievements
Rank 1
 answered on 22 Mar 2012
0 answers
79 views
Hi, the las t version (march 22), have many bugs in WEB and MOBILE demos.....
Edwin
Top achievements
Rank 1
 asked on 22 Mar 2012
0 answers
88 views
Wow, love the updated demos pages!  The team must be wicked busy.

Is there a change log from 1.229 ?

At jsfiddle.net, manage resources and add
http://cdn.kendostatic.com/2012.1.322/js/kendo.all.min.js
Richard
Top achievements
Rank 1
 asked on 22 Mar 2012
2 answers
150 views
When trying to upload an image in ie9 it asks if I want to save or open the image. See attached screenshot. On some final user machine I have the same situation in firefox. The code is the following block:

$(function () {
    kendo.culture("it-IT");
    $("#image").hide();
    $("input:submit").addClass("k-button");
    $("textarea").addClass("k-autocomplete");
    var urlActionAddPic = $("#roomsAdd").attr("url-action");
    $("#pictures").kendoUpload({
        async: {
            saveUrl: urlActionAddPic
        },
        localization: {
            select: "Seleziona Immagine"
        },
        success: function (e) {
            WaitPopupHide();
            $("#Picture_Url").val(e.response.Url);
            $("#image").attr("src", e.response.Url);
            $(".k-upload-files").remove();
            $("#image").show();
        },
        select: function (e) {
            $.each(e.files, function (index, value) {
                if (value.extension == ".jpg" || value.extension == ".jpeg" || value.extension == ".JPG" || value.extension == ".JPEG") {
                    WaitPopupShow();
                } else {
                    ShowPopup({
                        Success: false,
                        Message: "Le immagini devo essere di tipo JPG",
                        Title: "Attenzione!"
                    });
                    e.perventDefault();
                }
            });
        },
        multiple: false
    });

I attempted to use the code for select event also in upload event: same result. I also attempted to avoid the WaitPopupShow function: same result. What I can do to resolve this behavior??

thanks 

Cristian Scotti
"
Cristian
Top achievements
Rank 1
 answered on 22 Mar 2012
2 answers
73 views
i've noticed that sometimes the graph renders with the columns going the wrong way.  I've attached a crop of a screenshot.  If I refresh when this does happen, the graph renders fine.  I haven't been able to find any kind of pattern of usage that causes this since it's on my project's index page.  And this is a fairly standard, out-of-the-box graph, so I'm not trying to do anything funky or unconventional, just displaying some data is all.

If anyone has seen this or has a suggestion, let me know.

James
Top achievements
Rank 1
 answered on 22 Mar 2012
7 answers
546 views
Hello Telerik,
I've set the kendo.culture to "de-DE" in your editing sample and when UnitPrice is for example 18,12 €(note the comma decimal separtor), it returns 1.812,00 €. When the cell enters in mode edition, the comma separator is translated to period that means thousands separator in "de" culture.
I've attached a zip with some pictures showing this issue.
Is there any workaround for this.
Kind regards,
Oscar.
Rosen
Telerik team
 answered on 22 Mar 2012
3 answers
363 views
When applying a numeric input to a read only input box the up down arrows still work.

Typing in the box is disabled but still possible to change the value through the arrows.

This is an important and simple fix and would be great to see in the next major release (if it hasn't been implemented already).
Georgi Krustev
Telerik team
 answered on 22 Mar 2012
1 answer
100 views

Hey i found one bug/problem in kendo ui combo box while using it in cross-site iframe( facebook canvas ) this only happens in IE8(i don't know how is this with other IE versions), while in other browsers is ok(FF, Opera, Chrome).

Here is my combobox creation js code.

$("#test").kendoComboBox({
    dataTextField: "text",
    dataValueField: "value",
    dataSource: [
        { text: "None", value: "0" },
        { text: "A", value: "1" },
        { text: "B", value: "2" },
        { text: "C", value: "3" },
        { text: "D", value: "4" }
    ],
    filter: "contains",
    suggest: true
});

Access denied exception happensin kendo.list.min.js i was testing this using minified and opensourced version so i pulled this line out:

  caret = Math.abs(selection.createRange().moveStart(CHARACTER, -element.value.length)); 

Cheers, PJ

J
Top achievements
Rank 1
 answered on 22 Mar 2012
0 answers
133 views
Dear All,

I am using both Kendo Kendo tabstrip(with 3 Tabs) and Kendo Window.
In second Tabstrip I can open a Kendo window
Once the Kendo window is opened and if switch from one tab to another Kendo window doesn't close.
How can this scenario be resolved???

     waiting for your reply.
     Thanks in Advance


Jayalakshmi
Top achievements
Rank 1
 asked on 22 Mar 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?