Telerik Forums
Kendo UI for jQuery Forum
4 answers
1.5K+ 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
94 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
84 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
83 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
938 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
76 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
114 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
147 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
88 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
130 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
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
Chat
DateRangePicker
Dialog
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Effects
Accessibility
PivotGridV2
ScrollView
BulletChart
Licensing
QRCode
ResponsivePanel
Switch
Wizard
CheckBoxGroup
TextArea
Barcode
Breadcrumb
Collapsible
Localization
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
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?