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

MVVM GrId and selectedrow

4 Answers 418 Views
MVVM
This is a migrated thread and some comments may be shown as answers.
rgullhaug
Top achievements
Rank 1
rgullhaug asked on 13 Apr 2012, 06:45 AM
I would love to see an example of a grid bound to a viewmodel. When the user selects a row in the grid the details of the row are shown below the grid in input fields. If you edit one of the fields the grid will automatically update. Have anyone done anything like this? Can you please create a jsfiddle demonstrating it for me? I have not been able to find something like this, but I belive it is a very common thing to do.

4 Answers, 1 is accepted

Sort by
0
rgullhaug
Top achievements
Rank 1
answered on 13 Apr 2012, 12:20 PM
I got it working: http://jsfiddle.net/rgullhaug/QWwnR/ 

Can anyone please check this fiddle and see if it is the correct/best/recommended way to solve this?
0
Bjarke
Top achievements
Rank 1
answered on 25 Apr 2012, 12:04 PM
Thank you for the example. I find my self having a hard time collecting the information needed to accomplish most non-trivial tasks in Kendo. Do you have some good resources/links that made you capable of creating your example?
0
rgullhaug
Top achievements
Rank 1
answered on 26 Apr 2012, 09:27 AM
Glad it could be helpful to you. I don't have any good resources/links. Sadly I don't think these resources exist. KendoUI seems extremly good in my eyes, but it is very hard to use without any examples. I wish KendoUI would learn from how KnockoutJS document theire product (the excelent tutorial). I got my example working after many hours of work. I think I got most of the answert from looking trough the forum. I have tried to ask some questions myself, but doesn't get any answers. I wonder if this would be totally diffent If I was a paying customer. If that's the case it's a big failure by KendoUI because I'm not paying for something which I don't know how to use.
0
Bjarke
Top achievements
Rank 1
answered on 27 Apr 2012, 09:27 AM
I agree. I need either good examples or more thorough documentation describing all the properties of all types of objects. Example: What are the properties and methods of the event argument "e" of the change event of the grid (documentation http://www.kendoui.com/documentation/ui-widgets/grid/events.aspx)? My only help is the javascript debugger or the source code, which isn't exactly a nice and efficient way of figuring out the Kendo UI framework. Besides I don't think that this kind of "reverse engineering" allows me to distinguish public and internals, where the latter may be subject to change.

Kendo >> Some input/response on this general problem would be most appreciated :-)
Tags
MVVM
Asked by
rgullhaug
Top achievements
Rank 1
Answers by
rgullhaug
Top achievements
Rank 1
Bjarke
Top achievements
Rank 1
Share this question
or