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 a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

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

    Hi,

    Did you try using

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

    Regards,

    Madhumahesh.

    Add a 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 a 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 a 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 a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.