Announcement

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

    Grid with cell selection (spreadsheet like selection)?

    Your Grid control has excellent support for various row level selections, however I cannot find any support for multiple cell level (or column level) selection.

    I am basically looking for the ability to do grid selections similar to the way a spreadsheet works. i.e by rows, by columns or a rectangular group of cells. Multiple selections would be nice.

    Is this supported? I noticed that your CubeGrid control in SmartClient allows similar selection modes.

    If this isn't supported out of the box, can I get mouseclick, mouseover and mouseup events for individual Grid cells? If so I can probably mimic cell based selection myself. I am a SmartGWT newbie so I am sorry if this has an obvious answer!
    Last edited by dazza; 28 May 2009, 19:03.

    #2
    The CubeGrid is going to appear in SmartGWT in an upcoming release. There's also underlying behavior in the ListGrid for cell selection that would, for now, have to be accessed via JSNI. If you'd like to avoid rolling your own, you could sponsor the necessary work (at the ListGrid level, or just the work to bring the CubeGrid to SmartGWT) to make this a supported feature.

    Comment


      #3
      I am looking to do this as well. I used the setting:

      countryGrid.setUseCellRollOvers(true);

      This works well for hovering over. I can't find a setting to do the same thing for selection. I'd like to be able to select just 1 cell or multiple cells. Can this be accomplished without JSNI?

      Comment


        #4
        The CubeGrid is available in SmartGWT EE now - samples here - and supports cell selection out of the box.

        The ListGrid is fundamentally row-oriented in it's selection model and has no APIs by which one could discover which cells were selected even if cell-level selection could be turned on, so there would be feature sponsorship required to add it. But if you want to implement your own cell selection, as the original poster said, it can be done using the existing mouse events and styling APIs.

        Comment

        Working...
        X