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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...