Jump to content

Ajax Double-Click on a TUniDBGrid


Darth Florus

Recommended Posts

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

post-37-0-09485200-1535570719_thumb.png

UniDblClick.zip

Link to comment
Share on other sites

  • 1 month later...
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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...