Welcome Guest Search | Active Topics | Sign In | Register

EO-Grid Image Button & Grid Commands Options
Kiran More
Posted: Saturday, April 7, 2012 10:38:02 AM
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.
Kiran More
Posted: Saturday, April 7, 2012 10:44:36 AM
Rank: Newbie
Groups: Member

Joined: 1/31/2012
Posts: 5
If you have any SAMPLE program then please provide the link.
eo_support
Posted: Monday, April 9, 2012 9:07:39 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,195
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!
Kiran More
Posted: Monday, April 9, 2012 1:32:21 PM
Rank: Newbie
Groups: Member

Joined: 1/31/2012
Posts: 5
What about the second question?
eo_support
Posted: Monday, April 9, 2012 1:54:12 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,195
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!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.