Skip to Content

SAP UI5 Date Picker/combo box - disable editing in the control

Hi,

I want to disable the editing in the Date picker and combo box selection should only happen with calendar in case of date picker and drop down in case of combo box . how to achieve this?

Add comment
10|10000 characters needed characters exceeded

4 Answers

  • Posted on Jul 24, 2014 at 07:22 AM

    Hi,

    Did you try using

    (var).setEnabled(false); //true

    Regards,

    Madhumahesh.

    Add comment
    10|10000 characters needed characters exceeded

  • Posted on Apr 15, 2015 at 05:47 AM

    Hi Kranthi,

    Did you ever find a solution to this?

    Cheers,

    Brad

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 13, 2016 at 11:54 AM

    Hey Kranthi,

    Use Editable property ....

    setEditable = false

    Might this help you.

    Cheers,

    Viplove Khushalani

    Add comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 13, 2016 at 12:07 PM

    Hi Kranthi,

    I had the same problem.This is how i resolved the issue.After the combobox code insert below code

    comBoboxName.onAfterRendering = function() {

    if (sap.m.ComboBox.prototype.onAfterRendering) {

    sap.m.ComboBox.prototype.onAfterRendering.apply(this);

    }

    document.getElementById("<comBoboxId>-inner").disabled=true;

    }

    give credits if helpful.🤪

    SAP UI5 combo box - disable editing in the control | sap abap | sapui5 made easy

    Regards

    Add comment
    10|10000 characters needed characters exceeded