Problem Statement:
Solution:
Bind & Update datepicker controls at endRequest as follows:
$(function () {
bindDatePickers(); // bind date picker on first page load
Sys.WebForms.PageRequestManager.getInstance().add_endRequest(bindDatePickers); // bind date picker on every UpdatePanel refresh
});
function bindDatePickers() {
$('#<%= txtStartDateFrom.ClientID%>').datepicker({
uiLibrary: 'bootstrap4'
});
$('#<%= txtEndDateTo.ClientID%>').datepicker({
uiLibrary: 'bootstrap4'
});
}
0 comments:
Post a Comment