Announcement

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

    Double click or F2 on ListGrid starts edit mode

    Hi!

    When I select a row on a ListGrid and then press F2 or double-click the row, my ListGrid switches to edit mode and I'm able to edit the selected record, though I have set canEdit to false. The same is with TreeGrid. I definitely don't want my ListGrid to be edited in that way.

    Is that a feature or a bug?

    Environment: SmartGWT 2.5 eval build 2011-07-01, Java 1.6.0_21, GWT 2.2.0, Ubuntu 10.10

    Thanx in advance

    #2
    Is this happening in the showcase examples ?

    Comment


      #3
      I have searched through the forum and found this: http://forums.smartclient.com/showthread.php?t=10926

      When I set :
      Code:
       
      setEditEvent(ListGridEditEvent.NONE);
      double-click does not trigger edit mode anymore, but F2 still does...

      Comment


        #4
        Yes, it does.

        Originally posted by jmichelgarcia
        Is this happening in the showcase examples ?

        Comment


          #5
          Strange, maybe its a 2.5 thing. Because on 2.4 im not having this problem. (tested with some showcase examples).

          I Suggest you to post a runnable test case and wait for Isomorphic answer

          Comment


            #6
            Try setEditOnF2Keypress(false)

            Comment


              #7
              Yes, that's it! Thx a lot!

              Originally posted by smartgwt.dev
              Try setEditOnF2Keypress(false)

              Comment


                #8
                Originally posted by smartgwt.dev
                Try setEditOnF2Keypress(false)
                lol, as simple as that.
                on 2.5 its set to true by default ?

                Comment


                  #9
                  Yes, it defaults to true.

                  Comment


                    #10
                    A quick follow-up on this: We've now changed the editOnF2Keypress feature such that if canEdit is set to false at the grid level, or editEvent is set to NONE the property has no effect - "F2" keypress will now start editing only on an editable grid. This change will be visible in the upcoming 2.5 release

                    Comment

                    Working...
                    X