I have the following view with a select object:
<div data-role="view" id="add-bet" data-layout="default" data-transition="overlay:down" class="add-bet-view" data-show="app.AddBet.show" data-model="app.AddBet">
<select id="addBetUsers" data-role="selectlist" data-text-field="username" data-value-field="member_id" data-bind="source: users" data-source="app.AddBet.users"></select>
</div>
The method app.AddBet.users is local to this view's model, but makes a call to another data model and retrieves and array of users which works perfectly on initial load. If I then update that users datasource 'App.Users' in another view of the app, I need to be able to refresh the select statement above. I know I can fire actions from the users model using 'change()' but I cannot force the view above or the select object to refresh their data. I have dug through every method in the Kendo UI docs, but can't seem to find anything. What I'm really looking for is the equivalent of this for a select object:
$("#addBetUsers").data("kendoMobileListView").dataSource.read(); -> except I can't find anyway to call the dataSource and read it for either 'kendoMobileView' or 'kendoSelectList'
<div data-role="view" id="add-bet" data-layout="default" data-transition="overlay:down" class="add-bet-view" data-show="app.AddBet.show" data-model="app.AddBet">
<select id="addBetUsers" data-role="selectlist" data-text-field="username" data-value-field="member_id" data-bind="source: users" data-source="app.AddBet.users"></select>
</div>
The method app.AddBet.users is local to this view's model, but makes a call to another data model and retrieves and array of users which works perfectly on initial load. If I then update that users datasource 'App.Users' in another view of the app, I need to be able to refresh the select statement above. I know I can fire actions from the users model using 'change()' but I cannot force the view above or the select object to refresh their data. I have dug through every method in the Kendo UI docs, but can't seem to find anything. What I'm really looking for is the equivalent of this for a select object:
$("#addBetUsers").data("kendoMobileListView").dataSource.read(); -> except I can't find anyway to call the dataSource and read it for either 'kendoMobileView' or 'kendoSelectList'