Announcement

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

    ListGrid and DataSource

    Hey Iso & Community,

    I have a ListGrid, with a DataSource.

    And I'm trying to achieve this :

    "For a field X in my grid, I would like to set the possible field values according to the current Record. In a way that each record has differents possible values for the field X".

    I don't know if I was clear.

    Btw, i'm using a ClientSideOnly DataSource.

    But how can I do this ? Is it possible ? Or I need to do it on my own ?

    Cheers.
    Last edited by jmichelgarcia; 21 Oct 2011, 01:19.

    #2
    So, I assume this cannot be done ?

    :S

    Comment


      #3
      Of course it can be done! :)

      You can use a ListGridField.cellFormatter for arbitrary values, or you could use a field with a summary function for a calculated value.

      Comment


        #4
        Hey, I appreciate the answer.

        But I think I wasn't clear enought. I want to achieve that :

        Suppose a listGrid :

        FieldA | .........................FieldB .........................| FieldC
        ----------------------------------------------------------
        ----------------------------------------------------------
        Rec1a | (SelectItem showing options : W,X,Y,Z) .....| Rec1c
        ----------------------------------------------------------
        Rec2a | (SelectItem showing options : X,Y) ...........| Rec2c
        ----------------------------------------------------------

        I mean, depending on the current record being edited, the fieldB selectItem would not show the same values.

        FieldB possible values are determined by the values of FieldA and FieldC

        I don't see how I can do that.
        I hope I was more clear.

        Comment


          #5
          The solution is to use Listgrid.setEditorCustomizer.

          Comment

          Working...
          X