Welcome Guest Search | Active Topics | Sign In | Register

how to set a row readonly in EO.Web.Grid Options
WS
Posted: Sunday, April 10, 2011 11:58:24 PM
Rank: Advanced Member
Groups: Member

Joined: 2/27/2011
Posts: 37
Hi,

I want know how to set a row readonly in EO.Web.Grid in code or client based a cell value?

Cheers
William


eo_support
Posted: Monday, April 11, 2011 9:27:00 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

You will need to handle the Grid's ClientSideBeforeEditItem and return false from that handler.

Thanks!
WS
Posted: Monday, April 11, 2011 7:11:21 PM
Rank: Advanced Member
Groups: Member

Joined: 2/27/2011
Posts: 37
Hi,

I have added ClientSideBeforeEditItem to my grid and also added js function like below:

<eo:Grid ........ ClientSideBeforeEditItem="StartEditing">
</eo:Grid>

function StartEditing(gridItem, save) {
alert("test");
}

but for some reason the fundction does NOT get fired when editing in a cell, is there anything I should do?

Cheers
William
eo_support
Posted: Tuesday, April 12, 2011 10:26:21 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

Check whether your Grid's FullRowMode is set to true. ClientSideBeforeEditItem is only fired when FullRowMode is set to true. When FullRowMode is set to false, you should handle ClientSideBeginEdit on the GridColumn instead.

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.