Telerik Forums
Kendo UI for jQuery Forum
4 answers
1.4K+ views
Hi,

What is the recommended way to "clear" a DataSource used in an MVVM scenario ?

For example, if I bind a ListView to a DataSource wrapped inside an ObservableObject, what is the recommended way to clear all the items ?

Thanks
Luc
Top achievements
Rank 1
 answered on 20 Apr 2012
2 answers
90 views
Trying to put images on a 2 level Kendo PanelBar  get errors in visualization.
This is my datasource :
  
dataSource: [
        {   text: "Item 1" ,imageUrl : "img/usrmgr.gif",
            items: [
                { text: "Sub Item 1.1" , valor: 2,imageUrl : "img/usrmgr.gif"},
                { text: "Sub Item 1.2", valor : 3,imageUrl : "img/usrmgr.gif" }
            ]
        },
        { text: "Item 2", imageURL : "img/usrmgr.gif",
      items: [
                { text: "Sub Item 2.1", valor : 5 ,imageUrl : "img/usrmgr.gif"},
                { text: "Sub Item 2.2", valor : 5,imageUrl : "img/usrmgr.gif" },
                { text: "Sub Item 2.3", valor : 5 ,imageUrl : "img/usrmgr.gif"},
                { text: "Sub Item 2.4", valor : 5,imageUrl : "img/usrmgr.gif" },
                { text: "Sub Item 2.5", valor : 5,imageUrl : "img/usrmgr.gif" }
            ]
       
  }
  ]


is anything worng ??... Panelbar shows distinct hiearchies than loaded  in datasource.
Thanks in advance,
Marcelo
Marcelo
Top achievements
Rank 1
 answered on 20 Apr 2012
0 answers
81 views
Hello how can i do to disabled the cell navigation and only use full row selection?

thanks, Javier


daaahhh forget it!!!!! i'm already solve this issue, i only change the properties:

navigatable: false
selectable: "single row"

:P
Javier
Top achievements
Rank 1
 asked on 20 Apr 2012
5 answers
80 views
Currently I am evaluating the kendo MOBILE library in conjuction with the DataViz library and I find the work great btw!  My issues mainly come from testing on my internal DROID devices.

Spoofing DROID through web browsers is find but actually testing on a DROID device pre v3 of the Android OS becomes problematic as it does not seem to support SVG or VGL.

I noticed that on the web site decribing DataViz that Android is supported: Android (via Opera and the Android browser v3+) 

Are you saying that a best practice work around for older droid devices (can ice cream sandwich come quick enough?) that we should use Opera Mobi? or maybe Opera Mini?
Kamen Bundev
Telerik team
 answered on 20 Apr 2012
21 answers
906 views
Can I somehow kill the fade animation on the listview?  I don't see anything in the documentation on it....
Luc
Top achievements
Rank 1
 answered on 20 Apr 2012
0 answers
71 views
Okay, I am in a situation where I need every new entry in my grid to validate against all existing entries to determine whether or not it can be added. The problem is, saving with the grid always sends all adds and removes at once and in parallel, so their execution order is undefined. So it is possible for new entries to fail validation against old entries that are in the process of being removed.

My natural conclusion is that I need to just force an update after every operation (add, remove, etc). The problem is, that when I try to use the "save" and "remove" events, "this.saveChanges()" doesn't do anything. Is there a more correct way to obtain this behavior?

Thanks.
Joshua
Top achievements
Rank 1
 asked on 20 Apr 2012
1 answer
108 views
Way isn't Collapse event fires when I open a second panelBarItem. The other panelBarItem is collapsed but no event is executed.
Kamen Bundev
Telerik team
 answered on 20 Apr 2012
1 answer
141 views
It seems that I can bind to the 'expand' event to capture when the panel is about to expand.  Is there any event fire when the expansion is complete?
Kamen Bundev
Telerik team
 answered on 20 Apr 2012
0 answers
85 views
I create template:
<script id="country-template" type="text/x-handlebars-template">
     <p data-country="{{countryId}}">{{countryName}}</p>
</script>
And then i create dropdown for 'editor' function
function countriesDropDown(container, options) {
    $('<input data-text-field="name" data-value-field="id" data-bind="value:' + options.field + '"/>')
                .appendTo(container)
                .kendoDropDownList({
                    autoBind: false,
                    dataSource: countries
                });
}
Then i changed value in dropdown and data-country value is changed, but countryName didn't change. 
How i can change 'countryName' too ?
Jenya
Top achievements
Rank 1
 asked on 20 Apr 2012
0 answers
127 views
// Disregard, I figured it out...//

I have a template that is being loaded via a JSON file.  My JSON file contains data I would like to use to set CSS parameters in the rendered html.  

Is it possible to have a function inside the template that performs a calculation on the JSON data and them uses the result to modify a CSS parameter?
Mike
Top achievements
Rank 1
 asked on 20 Apr 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?