CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

iwcgjqgrid drag and drop

General discussion

by hsbelli72 » 30 Apr 2014 13:37

hi, i have this situation..

iwcgjqgrid A and iwcgjqgrid B. how drag a row from grid A and drop in grid B?. please any example...

regards
hsbelli72
 
Posts: 297
Joined: 14 Mar 2013 18:10

by hsbelli72 » 10 May 2014 21:30

hi, please can helpme with this situation..

regards
hsbelli72
 
Posts: 297
Joined: 14 Mar 2013 18:10

by Jorge Sousa » 11 May 2014 00:34

Hi hsbelli?

What do you need? What do you know already? What documentation you've read?

it's done using JQDragAndDropOptions
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by hsbelli72 » 11 May 2014 13:22

hi, i read the documentation and probe jqdradAndDropOptions but not obtaing a good result. i miss anythings.. because need a simple example in delphi code please. for example what event use to drag from iwcgjqgrid A and what even use to drop in iwcgjqgrid B..

regards
hsbelli72
 
Posts: 297
Joined: 14 Mar 2013 18:10

by Jorge Sousa » 13 May 2014 10:52

Hi hsbelli

Set bot grids with JQDragAndDropOptions.Active=True

The most important is using

JQDragAndDropOptions.ConnectWith and adding the other grid.

Add JQDragAndDropOptions.BrowserParams and set

ServerName = 'SourceRowId';
BrowserScript:= 'ui.draggable[0].id';

Assign JQDragAndDropOptions.OnDrop, where you can check the dropped row

procedure TIWFormGridTest.GridJQDragAndDropOptionsDrop(Sender: TObject; AParams: TStringList);
begin
WebApplication.ShowMessage(AParams.Values['SourceRowId']);
end;

Please let me know what more do you need
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by hsbelli72 » 13 May 2014 14:00

hi, perfect!.... thank you very much

regards
hsbelli72
 
Posts: 297
Joined: 14 Mar 2013 18:10


Return to General - Archive

Who is online

Users browsing this forum: No registered users and 2 guests

Contact Us.