Darth Florus Posted August 29, 2018 Share Posted August 29, 2018 Hi Pals: I want to do a Ajax Double-Click on a TUniDBGrid. When I do a double click on a DBGrid I want to do some database operations and show the result on a next tab sheet. I want to show the wait mask when the event is procesing data. On normal OnDoubleClick of the DBGrid I can't show any type of mask of some else equal, then my users think the program was frezze. I try al the dblclick client events I found and only the dblClick of the panel object reacts to double click. The problem is that react for all types of double click wherever you make on the dbgrid. I want to act equal that the standard double click event that react only when you make double click on the rows of cells. Y try also the celldblclick and rowdblclick client events and don't fire de ajax event. Please if some of You was deal with issue like this. Thanks and Best Regards UniDblClick.zip Link to comment Share on other sites More sharing options...
Sherzod Posted August 30, 2018 Share Posted August 30, 2018 Hi, Try this: function celldblclick(sender, td, cellIndex, record, tr, rowIndex, e, eOpts) { grid=sender.grid; grid.showMask('Espere por favor...'); ajaxRequest(grid, 'dblClick'); } Link to comment Share on other sites More sharing options...
Darth Florus Posted August 30, 2018 Author Share Posted August 30, 2018 Works very well!!! Thank You so much my friend! Link to comment Share on other sites More sharing options...
Abaksoft Posted October 17, 2018 Share Posted October 17, 2018 On 8/30/2018 at 6:54 AM, Sherzod said: Hi, Try this: function celldblclick(sender, td, cellIndex, record, tr, rowIndex, e, eOpts) { grid=sender.grid; grid.showMask('Espere por favor...'); ajaxRequest(grid, 'dblClick'); } Hi Sherzod, Thank you for your precious help With this CLientEvent, it just see the mask, for 1 or 2 secondes. Is there a possibility to show the mask indefinitely (with this ajaxRequest ) ? I have a Frame with an UniDBGrid. When doubleClick On, it retreive somme data on a new ModalForm. The process take about 5 to 10 secondes and don't want the user double click again ! After ModalResult then HideMask. Thx ____ Edit : Don't want to use Unisession.Synchronize Link to comment Share on other sites More sharing options...
Abaksoft Posted October 17, 2018 Share Posted October 17, 2018 Solved function celldblclick(sender, td, cellIndex, record, tr, rowIndex, e, eOpts) { grid=sender.grid; grid.showMask('Espere por favor...'); } Without ajaxRequest line. Thx Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now