|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
How to add javascript onClick attribute to datagrid's edit template (update command)?How to add javascript onClick attribute to datagrid's edit template (update
command)? any suggestions? Capture the onDataBinding event of the (Edit) button to add an onClick
attribute This is a link to a good tutorial on adding the onClick attribute to
the delete item template. You should be able to adapt it quite easily to the edit template. http://groups-beta.google.com/group/microsoft.public.in.csharp/browse_thread/thread/ca8d08701affa1a6/e8a1c75bc6963bd1?q=asp.net+datagrid+confirm+delete&_done=%2Fgroups%3Fq%3Dasp.net+datagrid+confirm+delete%26qt_s%3DSearch+Groups%26&_doneTitle=Back+to+Search&&d#e8a1c75bc6963bd1 If you want to add it on Update command, better place is
datagrid_EditCommand. Only in that moment, you can get two buttons (Update and Cancel). In either ItemDataBound or ItemCreated event, there is only one Edit button. HTH Elton Wang el***@hotmail.com >-----Original Message----- edit template (update>How to add javascript onClick attribute to datagrid's Show quoteHide quote >command)? > >any suggestions? > > >. >
Adding "delete" functionality in DataGrid - without a ButtonColumn
Add additional row into header? getting the data for dynamically for Datagrid bound columns of a datagrid How To Insert ASP.NET User Control into DataGrid Column? DataGrid with Dropdown list Need to Format a zipcode into xxxxx-xxxx. Datagrid colum has no Dataformat property Why doesn't the CssClass property change the visual display of my datagrid cells? Printer-Friendly DataGrid option |
|||||||||||||||||||||||