Dynamic Subgrid

Does anyone know if it is possible to load a subgrid with dynamic URL? I would like pass the URL of the subgrid when a user clicks a cell. The parameters for the URL would be based upon the cell contents.

I have no problems creating subgrids using “sub_row_ajax” cell types, but this structure is a bit too rigid for me as I want the underlying URL generated only when a user selects a grid cell.

You can use sub_row_grid column type and use onSubGridCreated event to define subgrid configuration and data url. From event you can access values from other cells in the grid, and use them in url of sub-grid

docs.dhtmlx.com/doku.php?id=dhtm … ustomizing

docs.dhtmlx.com/doku.php?id=dhtm … gridloaded

Thanks, I had a look at that earlier but the “onSubGridCreated” event doesn’t seem to fire when the subgrid opens.

I resolved this using a little bit of jQuery. I’m not especially provicient, but calling the below on cellmarked event did the trick.

function drill_down(parameter,cell) {
type: “GET”,
dataType: “html”,
url: “sub/” + parameter,
success: function (d) {