|
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
|
|
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!
|
|
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
|
|
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!
|
|