Hi Ernesto,

I don't get it: How can I change the Label-Text? When I try to change the Model 
of the component Label, nothing happens. The page reloads and the Label has the 
old Text (not the new one which is meant to be changed)




----- Ursprüngliche Mail ----
Von: Ernesto Reinaldo Barreiro <[email protected]>
An: [email protected]
Gesendet: Mittwoch, den 30. September 2009, 11:38:33 Uhr
Betreff: Re: How would you realize a "delete"-Link in a datagrid row?

What about replacing the link. e.g. via AJAX, with a new one containing
the "Do you really want to delete xyz" warning... that once clicked actually
deletes your entry... and refreshes the datagrid. You could even use the
same link and have a flag that says "userWantsToDeleteRow" and use it to
conditionally change the actions to do and the contents to display.
Best,

Ernesto

On Wed, Sep 30, 2009 at 11:29 AM, Peter Arnulf Lustig <[email protected]>wrote:

> Hi,
>
> I'd like to create a delete link where you can delete a row in a datagrid.
> But when you click on the delete link, the delete label should change and a
> warning occurs: "Do you really want to delete xyz".
> After the second click it finally deletes the content.
>
> How can I achieve that? Could you verbalize the procedure?
>
> Thanks!!
>
>
>
>
>
> ---------------------------------------------------------------------
> 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