Hi Igor

Thanks for the tip. It work perfectly.

I overrode the newRowItem() method of AjaxFallbackDefaultDataTable like
this:

protected Item newRowItem(String id, int index, IModel model) {
                Item rowItem = super.newRowItem(id, index, model);
                AjaxEventBehavior onDoubleClickBehaviour = new
AjaxEventBehavior(
                                "ondblclick") {

                        @Override
                        protected void onEvent(AjaxRequestTarget target)
{
                                // the code that will execute once a
double click occurs
        
target.appendJavascript("alert('ondblclick occurred');");
                        }

                };
                rowItem.add(onDoubleClickBehaviour);

                return rowItem;
}


Regards,
Yazeed Isaacs



-----Original Message-----
From: Igor Vaynberg [mailto:[EMAIL PROTECTED] 
Sent: 22 October 2008 05:46 PM
To: [email protected]
Subject: Re: Double clickable rows in AjaxFallbackDefaultDataTable

add a behavior to the row item that listens to ondblclick or whatever
the event is called. i am not sure that TRs support this, so check in
the browser first.

to add the behavior to the row item override newrowitem on the table.

-igor

On Wed, Oct 22, 2008 at 7:58 AM, Yazeed Isaacs
<[EMAIL PROTECTED]> wrote:
> Hi
>
> Does anyone know how to implement something that could do this.
>
> Please point me in the right direction.
>
> Regards,
> Yazeed Isaacs
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to