Hi Yukiko,
Thanks for using Syncfusion products.
Based on your query we found that you need to maintain the record in editable state when we select on other rows in Grid. To achieve your requirement, we suggest you to use rowSelecting event of ejGrid. The rowSelecting event will be triggered before the row is going to be selected. In this event we check the condition with grid edit form length and avoid the selection by defining args.cancel as true.
Refer the below code example:
|
<ej:Grid ID="OrdersGrid" runat="server" AllowPaging="True" AllowTextWrap="true" OnServerEditRow="EditEvents_ServerEditRow"
OnServerAddRow="EditEvents_ServerAddRow" OnServerDeleteRow="EditEvents_ServerDeleteRow">
<ClientSideEvents RowSelecting="rowselect" ActionComplete="complete" EndAdd="endAdd" EndDelete="endDelete" EndEdit="endEdit" />
. . . . .
</ej:Grid>
</ContentTemplate>
</asp:UpdatePanel>
</div>
</div>
<script type="text/javascript">
function rowselect(args) {
var Obj = $('#<%= OrdersGrid.ClientID %>').ejGrid("instance");
if(Obj.element.find(".gridform").length > 0)
args.cancel = true
}
</script> |
Refer our help documentation for your reference
Please get back to us if you have further queries.
Regards,
Prasanna Kumar N.S.V