on 2025 Feb 25 3:53 AM
I have a Datepicker with id="lowDatePicker" inside a fragment in a dialog
In the controller, I am setting:
public onInit(): void {
const dateLowControl = this.byId("lowDatePicker");
if (dateLowControl) {
dateLowControl.addEventDelegate({
onAfterRendering: function (oEvent) {
console.log($("#" + dateLowControl.getId() + "-inner"));
$("#" + oEvent.srcControl.getId() + "-inner").prop("readonly", true);
},
});
}
But I am not getting the datePicker element. How to correctly add the eventDelegate in this case?
Request clarification before answering.
depends on the scenario, you have to use different method to get the control
check the documentation
https://ui5.sap.com/#/topic/5da591c5a5a54740948acfe56b22fbc3
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 7 | |
| 6 | |
| 5 | |
| 3 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.