Jump to content
uniGUI Discussion Forums
Sign in to follow this  
david_navigator

String Grid - mouse down - which cell ?

Recommended Posts

I need to find out which string grid cell the user clicked in. 
With the VCL there's the MouseToCell method which can be used with the Grid OnMouseDown event, but that doesn't exists for the UniStringGrid.

 

I tried adding an ExtEvent for cellmousedown, hoping that would give me the correct info

function cellmousedown(sender, td, cellIndex, record, tr, rowIndex, e, eOpts)
{
        ajaxRequest(sender, '_cellmousedown', ['CellIndex='+cellIndex,'RowIndex='+rowIndex]);

}

But the OnAjaxEvent doesn't get called with that EventName.

So how can I find out which cell the user just clicked in (The OnSelectCell is no use for me as I want to count the number of clicks in a cell and OnSelectCell only gets called when the cell changes).

 

Thanks

 

David

Share this post


Link to post
Share on other sites

ajaxRequest(sender, '_cellmousedown', ['CellIndex='+cellIndex,'RowIndex='+rowIndex]);


ajaxRequest(this, '_cellmousedown', ['CellIndex='+cellIndex,'RowIndex='+rowIndex]);

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×