View Poll Results: Should this functionality be implemented?

1. You may not vote on this poll

    1 100.00%
  • NOPE

    0 0%
Results 1 to 4 of 4

Thread: How to disable an option in Ext.field.Select?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Sencha User
    Join Date
    Jul 2012
    Vote Rating

    Default Answered: How to disable an option in Ext.field.Select?

    Hi there,

    I have the following construct to create a select:

        renderTo: Ext.get("displaySizes"),
        xtype: 'selectfield',
        label: item.label,
        options: [
                disabled: true //<- does not work
                text: "36"
                value: "1235"
                disabled: false
                text: "40"
                value: "1234"
    where I want to disable some options to show the user that they are there, but are not selectable.

    Just as it would work using html:

    HTML Code:
      <option value="1235" disabled="disabled">36</option>
      <option value="1234">40</option>
    Anyone able to help me out?


  2. You would need to add some select listeners to the list or slots with order before and return false. You would also have to style an option that is disabled.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts