jQuery UI Widgets Forums Grid multiple nested grid

This topic contains 1 reply, has 1 voice, and was last updated by  sonotano 8 years, 7 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • multiple nested grid #87603

    sonotano
    Participant

    I have two main grids, in two tabs, one grid in each tab

    each grid have nested grids, but both “automatic” name or id starts with
    grid0
    grid1
    grid2

    but when i am in the other tab and I expand (and is created the nested grid)
    the control set the same ids
    grid0
    grid1
    grid2
    etc

    can I assign differents names of both grids to control the correct grid?
    for example

    firstTabGrid_nestedgrid0
    firstTabGrid_nestedgrid1
    firstTabGrid_nestedgrid2
    firstTabGrid_nestedgrid3

    and

    SecondTabGrid_nestedgrid0
    SecondTabGrid_nestedgrid1
    SecondTabGrid_nestedgrid2
    SecondTabGrid_nestedgrid3

    thanks in advance

    multiple nested grid #87607

    sonotano
    Participant

    I was wrong, …
    I copied the same code in each tab,

    and I didn’t know that the following code set the name and id of each nested grid,

    rowdetailstemplate: {
    rowdetails: “<div id=‘gridCxC’ name=’subgrid’ style=’margin: 10px;’></div>”,
    rowdetailsheight: 220,
    rowdetailshidden: true
    },

    the ‘gridCxC’ is the id
    gridCxC0
    gridCxC1
    gridCxC2
    etc

    I copied (wrongl

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.