|
Rank: Newbie Groups: Member
Joined: 1/31/2012 Posts: 5
|
1. I want to include asp:ImageButton control of ASP.NET in EO Grid's four columns. 2. Also want to handle "Edit", "Delete" & "DataBound" commands, like in asp:GridView we use OnRowDeleting="gvList_Delete" OnRowEditing="gvList_Edit" OnRowDataBound="gvList_RowDataBound"
Please help me at earliest.
|
|
Rank: Newbie Groups: Member
Joined: 1/31/2012 Posts: 5
|
If you have any SAMPLE program then please provide the link.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
You will need to use a StaticColumn, then set the column's DataFormat to something like this: "<img src='{0}' />" and DataField to a data field that holds your image Url.
Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 1/31/2012 Posts: 5
|
What about the second question?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
Sorry that I missed the second question. As to your questions:
1. EO.Grid does not have the server side equivalent of an ASP.NET Grid's DataBound event because a cell can be dynamically generated on client side without going back to the server at all;
2. There is no OnRowEdit event either. Editing always occurs on the client side. So no server event is triggered;
There is ItemDeleted event. However this event is delay triggered. For example, user can delete three items without going back to the server at all, so no server side events will be triggered when the items are "visually" deleted. Later when the page posts back, ItemDeleted event will be fired three times for each deleted item.
Thanks!
|
|