CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

Record View Panel

Suggest new components/features

by zsleo » 12 Mar 2013 14:19

Is it possible to introduce a Record View Panel?

For reference see Woll2Woll's Win32 InfoPower TwwRecordViewPanel component. see www woll2woll com

Regards

Zane
zsleo
 
Posts: 776
Joined: 03 Feb 2013 03:33

by Jorge Sousa » 12 Mar 2013 16:27

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
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58


Return to Suggestions

Who is online

Users browsing this forum: No registered users and 7 guests

Contact Us.