Home General Discussion
Options

pageForm.viewModel set ScheduledStartDate

Jerry_VeldhuisJerry_Veldhuis Customer Advanced IT Monkey ✭✭✭

I've added a customization to the SR form and it sets the ScheduledStartDate using the following:

     dateValue="2018-08-17T14:00:00"  // this is actually computed based on the current date, but I've hardcoded to simplify
     pageForm.viewModel.set("ScheduledStartDate", dateValue)

but the "Scheduled Start Date" field on the form stays blank. If I hit apply the SR reloads and the scheduled start date is populated so its saving just fine, but I'd like it to update the field on the form.

Is there a trick to forcing the date field on the form after the viewModel is updated ?

Best Answer

Answers

  • Options
    Jeff_LangJeff_Lang Customer Ninja IT Monkey ✭✭✭✭
    setting items in the view model does not automatically update the controls on the forms.

    to have the control on the form display the updated data, you need to add that value to the html/kendo element as well.

Sign In or Register to comment.