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

DataSource in ViewModel does not equal bound DataSource from a grid

2 Answers 79 Views
MVVM
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 14 Feb 2017, 01:41 PM

Hello,

if i bind a datasource with mvvm to a grid through the data-bind attribute and for example try to trigger manually the read method of the datasource it seemed that it has no effects on the grid. Now i compared the viewmodel datasource with the datasource from the grid and they did not match. Why is this so? 

Thanks in advance

Michael

2 Answers, 1 is accepted

Sort by
0
Tsvetina
Telerik team
answered on 15 Feb 2017, 06:39 PM
Hi Michael,

I tried reproducing the issue in the following Dojo, but the Grid is updated when I trigger a remote action on the DataSource:
http://dojo.telerik.com/@tsveti/IbowI/4

Can you modify my Dojo until it starts reproducing the issue at hand, or send me a Dojo of your own to take a look at?

Regards,
Tsvetina
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Michael
Top achievements
Rank 1
answered on 16 Feb 2017, 07:18 AM

Hi Tsvetina,

thanks for the quick response. I think i have found the problem. It was my mistake. We  use mutliple viewmodels and i have tried to access the wrong one -.-

Many thanks

Michael

Tags
MVVM
Asked by
Michael
Top achievements
Rank 1
Answers by
Tsvetina
Telerik team
Michael
Top achievements
Rank 1
Share this question
or