Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    FormItem.canEdit: false and FormItemIcon.neverDisable:true

    When you create DynamicForm with field which is 'canEdit:false' but icon is 'neverDisable:true' single click doesn't work. Interesting is that doubleClick still get through.
    For us is important to have fields which are 'readOnly' but have icons for opening additional dialog or detail. How to achieve this? Try following sample:
    Code:
    isc.DynamicForm.create({
        width: 200,
        fields : [
            {name: "severityLevel",
             title: "Severity Level",
             canEdit: false,
             type: "staticText",
             defaultValue: "Severity 2",
             icons: [{
                src: "other/help.png",
                click: "isc.say('Some text')",
                neverDisable: true
             }]
            }
        ]
    });
    Single click don't work. Double click is OK. That's not way how it's documented and very impractical.

    Responsible for this is additional code introduced in 8.2 in DynamicForm.js on line 7141:
    Code:
            if (item.isReadOnly()) return this.Super("handleClick", arguments);

    #2
    Please try the fully patched release - 8.2p from smartclient.com/builds.

    Comment


      #3
      I'm using 'v82p_2012-04-12' and I checked also latest 'v82p_2012-04-18'. It's still there.

      Comment


        #4
        We've now fixed this - please try the next nightly build

        Comment


          #5
          SmartClient_v82p_2012-04-20 and SmartGWT 3.0p from same date is working.

          Thank you for your support

          Pavel

          Comment

          Working...
          X