Announcement

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

    Selecting TileGrid records programmatically

    Hi,

    Is it possible to select TileGrid records programmatically, emulating a single-click user selection (like it is possible with ListGrid with the selectRecord method)?

    Thanks,

    timo

    #2
    I am interested in this also.

    Comment


      #3
      This method along with other selection related methods should be there
      in the next beta build.

      Comment


        #4
        Hi there,
        I am having a hard deadline on monday evening, and wanted to use this feature. I already wrote all my controller code for smart preselection.
        - Do you have an estimate when this function would be available?
        - Is it possible to get this function via JSNI? maybe register a js handler? Would you have a little demo code if thats possible?

        In any case, thanks again for the great support, isomorphic!

        Regards,

        Paul

        Comment


          #5
          The methods are there in the js side, so you should be able to use this immediately until the proper fix comes. I'm not an expert on JSNI (try google) but something like this may work:
          Code:
          // Java method declaration...
          native void doSomething() /*-{
            // ...implemented with JavaScript
            myTileGrid.selectRecord(1);
          }-*/;

          Comment


            #6
            TileGrid.selectRecord(..), selectRecords(..), deselectRecord(..), deselectRecords(..) added to SVN.

            Sanjiv

            Comment


              #7
              Hi,
              There is still a problem here:
              - selectRecord(tileRec) shows the border around the tile so it looks as selected, but later a call to getSelectedRecord() returns null (as there's no selection)
              Thanks.

              Comment


                #8
                Please show code that reproduces this.

                Comment


                  #9
                  I've also noticed that deselectAllRecords() and deselectRecord(aRec) have no effect IF the selection was done via calls to selectRecord().

                  Comment

                  Working...
                  X