Forum Discussion

najeeb-anwari's avatar
najeeb-anwari
Copper Contributor
Oct 17, 2022
Solved

Could not set or bind model property with Bootstrap Datepicker in Blazor

I am using bootstrap datepicker and the problem is that when I pick a date, it does not fire a change or input event and noting is binding with the model property Course.StartDate or Course.EndDate. ...
  • yashints's avatar
    Oct 17, 2022
    Hi Najeeb,

    I think you're missing the `onchange` event, take a look at this example which gives you an idea on how to proceed:

    https://www.codeproject.com/Tips/5290232/Blazor-datepicker-Component-using-JQuery

    That example is not using the bootstrap datepicker but the concept is the same

Resources