Hi Zane
- There is a technique that consists in renderize a preview region / panel.
- Setting JQGridOptions.SubGrid = True
- And use these events:
/// <summary>
/// The event is raised just before expanding the grid. When set, this event should return true or false.
/// If it returns false the subgrid row is not expanded and the subgrid is not opened.
/// </summary>
property OnSubGridBeforeExpand: TIWCGJSonFunc index 122 read GetFuncValue write SetFuncValue stored IsFuncStored;
/// <summary>
/// This event is called when the expand button is clicked, if SubGrid = True
/// We pass two parameters:
/// arguments are:
/// subgrid_id is a id of the div tag created within a table
/// the row_id is the id of the row
/// If we want to pass additional parameters to the url we can use
/// the method getRowData(row_id) - which returns associative array in type name-value
/// </summary>
property OnSubGridRowExpanded: TIWCGJSonFunc index 123 read GetFuncValue write SetFuncValue stored IsFuncStored;
/// <summary>
/// This event is raised when the user clicks on the minus icon. The event should return true or false;
/// when the returned value is false the row can not be collapsed.
/// </summary>
property OnSubGridRowCollapsed: TIWCGJSonFunc index 124 read GetFuncValue write SetFuncValue stored IsFuncStored;
It was in fact required and for the first time, introduced by Scott Gast, one of the first users, you could try to search for more info in this forum, while we prepare more info
and add to our demo source code, because it should be there a while ago.
Search for "Grid as SubGrid"
Regards
cgdevtools