1. #1
    Ext User
    Join Date
    Jan 2010
    Location
    Cameroon-Douala
    Posts
    72
    Vote Rating
    0
    jocy is on a distinguished road

      0  

    Default bind a fieldset to a grid

    bind a fieldset to a grid


    morning,
    i have a grid with 5 rows and 6 columns and a formpanel with a fieldset
    problem: i want that on a row selection the name of the fieldset take the row's name wicth is in column one!!!

  2. #2
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    Add a selectionchange listener to the selectionmodel of the grid. Inside that event listener, you can change the fieldset heading with:

    Code:
    fieldset.setHeading(String.valueOf(modelthatgotselected.get(dataIndexOfFirstColumn)));

  3. #3
    Ext User
    Join Date
    Jan 2010
    Location
    Cameroon-Douala
    Posts
    72
    Vote Rating
    0
    jocy is on a distinguished road

      0  

    Default


    ok thanks
    i will try it!!!

  4. #4
    Ext User
    Join Date
    Jan 2010
    Location
    Cameroon-Douala
    Posts
    72
    Vote Rating
    0
    jocy is on a distinguished road

      0  

    Default


    thanks sven for your idea it works but i added myform.layout() after to reload my form...

  5. #5
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    if you need to call layout, than you are doing more than you are stated in your first post.

Thread Participants: 1