Telerik Forums
Kendo UI for jQuery Forum
0 answers
80 views
Hello,

Will it be useful to have functionality similar to converters in Silverlight?
I am thinking about ability to have function which could convert value on set.
This could add  flexibility to the framework.
Something like:

var viewModel = kendo.observable({
            currencyAmount: 100.0,
            currencyText: {
 get: function () {
   var value = viewModel.get("currencyAmout");
   // convert to string and return converted formatted value.
},
 set: function (value) {
   // convert from string.
   viewModel.set("currencyAmout", amount);
}}
});


Andrey
Top achievements
Rank 1
 asked on 26 Mar 2012
1 answer
107 views
I wasn't able to make it to the bonus hands-on session after the keynote that was supposed to dive into detailed MVVM example.  I'm not seeing that on the youtube channel. Is that coming soon?
Brandon
Top achievements
Rank 2
 answered on 26 Mar 2012
1 answer
86 views
Where can I find the source code for the play list editor demoed in yday's Q1 launch webinar?
Brandon
Top achievements
Rank 2
 answered on 26 Mar 2012
9 answers
295 views
Hi,

In some sample code, namely the Grid's "Binding to remote data" sample code, we can see the following:

 $("#grid").kendoGrid({
  dataSource
: {
type
: "odata",
     transport
: {
      read
: "http://demos.kendoui.com/service/Northwind.svc/Orders"
     
},
          ...

I can't find this "type" property documented anywhere. There is a "dataType" property documented as part of the DataSource's transport's CRUD configuration. Are they related ?

Thank you
Atanas Korchev
Telerik team
 answered on 26 Mar 2012
4 answers
372 views
Is there any way there i can exclude the field containing remove button.

i did something like this.
$("input:file").kendoUpload({

            async: {

                autoUpload: true
            },
            select: onSelect

        });
     });  
    function onSelect() {
        $('.k-button').click();
        return $("#personal_image_submit_add").trigger("click");
    }

i did    $('.k-button').click(); to remove the field. but it doesn't work. Need suggestion in this regard.
Saqib
Top achievements
Rank 1
 answered on 26 Mar 2012
0 answers
49 views
I want to use the inside of the kendoui project loading effect, how should I do? 
Seaman
Top achievements
Rank 1
 asked on 26 Mar 2012
7 answers
173 views
It was mentioned that current Kendo UI customers attending the keynote event today with be upgraded to Kendo UI Complete.  Does this apply to Telerik Premium Collection for .NET customers which Kendo UI is already a part of the collection?
Clint
Top achievements
Rank 1
 answered on 26 Mar 2012
0 answers
87 views
We tried to do this with a list before we realized it doesn't support Virtualization  yet.

We are trying to use the kendo ui Datasource+ a control, to render a template as a series of divs with virtualization.

Is there a way to remove the table tags from the grid control?

Virtualization  seems to be implemented on the controls not the datasource so I assume theres no way to use it with just the dataprovider? or maybe tell the data provider to page, but append vs load new data? 

this is the plugin we are tring to add  http://isotope.metafizzy.co/ 


Thanks,

-Andrew


Andrew
Top achievements
Rank 1
 asked on 26 Mar 2012
1 answer
167 views
Hi everyone,
I'm trying to put JSON object received by an AJAX Call, but i don't really know how to use it properly, when i try to convert it into an Object or trying to use it with no modification i don't get anything on the web page.

Here is my JSON message : 
[{"id":"3","views":"0","title":"Video1","description":"Video1.mp4","created_at":"2012-03-21 00:00:00","updated_at":"2012-03-21 00:00:00","link":"\/videos\/Video1.mp4","add_by":"1","category":"1","convert":"0","group_fkid":"1"},{"id":"2","views":"0","title":"Video2","description":"Video2.mp4","created_at":"2012-03-21 00:00:00","updated_at":"2012-03-21 00:00:00","link":"\/videos\/Video2.mp4","add_by":"1","category":"1","convert":"0","group_fkid":"1"},{"id":"1","views":"0","title":"Video3","description":"Video3.mp4","created_at":"2012-03-21 10:00:00","updated_at":"2012-03-21 10:00:00","link":"\/upload\/videos\/Video3.mp4","add_by":"1","category":"1","convert":"0","group_fkid":"1"},{"id":"4","views":"0","title":"Video de test","description":"31.mp4","created_at":"2012-03-21 00:00:00","updated_at":"2012-03-21 00:00:00","link":"\/upload\/videos\/31.mp4","add_by":"1","category":"1","convert":"0","group_fkid":"1"}]

Can someone explain me the right way to use it with no error ?

Thanks,
Tyler
Alexander Valchev
Telerik team
 answered on 26 Mar 2012
2 answers
199 views
Suppose I have this markup:
<div id="myID">
    <div data-role="tabstrip">
        <ul>
            <li>tab1</li>
            <li>tab2</li>
        </ul>
        <div>
            Content tab 2
            <select data-role="dropdownlist" data-source='{"transport":{"read":"some-url"}}' />
        </div>
        <div>
            Content tab 2
        </div>
    </div>
</div>


When I bind this to a viewmodel

kendo.bind("#myID", viewModel);

then the dropdownlist is initiate twice (and as an effect two requests are done to the server).

This is caused by the fact that kendo.bind iterates through all child elements and calls bindElement for each element (which is ok). The bindElement function looks if the element has a data-role attribute, if so it calls bindingTargetForRole which calls kendo.init(..).
This kendo.init() does a jQuery query for all child elements with a data-role attribute including itsself and initializes each child element.

So in my example when kendo.bind calls bindElement for the tabstrip, the creation of the tabStrip widget causes the dropDownList widget also to be created.
But then kendo.bind iterates further and calls bindElement for the select element and then again the dropDownList widget is created.

I guess this should not be done twice.

Regards, Jaap
Jaap
Top achievements
Rank 2
 answered on 26 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?