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

Capture value into Model from command

3 Answers 47 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Joel
Top achievements
Rank 2
Iron
Iron
Iron
Joel asked on 03 Apr 2019, 04:30 PM

I have a multi-step View.  In the first Partial I want to capture the id of a Patient from a Kendo Grid.  I need to retain that value into the @Model then move to the second Partial.  In this second Partial I then capture scheduling information.  No record is persisted until I have data from both Partial Views. 

Questions:

  • I am able to successfully capture the data in the function (pictured) but I need that value to be persisted back to the Model.  How do I do that?
  • Help me understand the script hierarchy.  
    •  

 

3 Answers, 1 is accepted

Sort by
0
Joel
Top achievements
Rank 2
Iron
Iron
Iron
answered on 03 Apr 2019, 04:32 PM

This posted before I was finished.  I'll try again:

I have a multi-step View.  In the first Partial I want to capture the id of a Patient from a Kendo Grid.  I need to retain that value into the @Model then move to the second Partial.  In this second Partial I then capture scheduling information.  No record is persisted until I have data from both Partial Views. 

Questions:

  • I am able to successfully capture the data in the function (pictured) but I need that value to be persisted back to the Model.  How do I do that?
  • Help me understand the script hierarchy.  
    •  
0
Joel
Top achievements
Rank 2
Iron
Iron
Iron
answered on 03 Apr 2019, 04:35 PM
Why can't I edit/delete postings?  I'm not going to try a 3rd time because as I'm typing focus changes to the Post this reply button.  That is really annoying.
0
Joel
Top achievements
Rank 2
Iron
Iron
Iron
answered on 04 Apr 2019, 03:41 PM

I have found this link to be helpful:

https://stackoverflow.com/questions/5181151/setting-property-on-the-model-object

 

Tags
Grid
Asked by
Joel
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Joel
Top achievements
Rank 2
Iron
Iron
Iron
Share this question
or