This is a migrated thread and some comments may be shown as answers.

Trigger the loading of Grid Data

0 Answers 84 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Matt
Top achievements
Rank 1
Matt asked on 08 Aug 2012, 10:56 PM
Hi, i have the following MVVM bound grid:

<div id="grid"   data-role="grid"
    data-bind="source: contacts_Listing_ViewModel.grid_Datasource, visible: isListingVisible"
    data-editable="false"
    data-columns='["FirstName","LastName", "DepartmentName"]'    
    data-pageable="true"
    data-autoBind="false"
     style="height:100%;width:100%"></div>

How do I stop the datasource from loading data into the grid automatically (I think data-autobind = false did it)?

I want data to only be loaded into the grid when I do: contacts_Listing_ViewModel.grid_Datasource.read

Any ideas?

Thanks

No answers yet. Maybe you can help?

Tags
Grid
Asked by
Matt
Top achievements
Rank 1
Share this question
or