Hi Alfonso,
Thanks for using syncfusion support.
From analyzing your query, we understand you like to disable the dropdown column from selecting a value from another dropdown. We have already discussed your requirement in our KB please follow the below link for more information.To disable the column you have to define allowEditing to be false. Please refer the below documentation for more information.Please confirm you want to disable the dropdown initially while editing and you want to enable the column after select a dropdown value from another column.Regards,Rajapandi R
<ej:Grid ID="OrdersGrid" runat="server" AllowPaging="true" >
<ClientSideEvents ActionComplete="complete" />
<EditSettings AllowEditing="True" AllowAdding="True" AllowDeleting="True"></EditSettings>
<Columns>
. . . . . . .
<ej:Column Field="ShipCity" EditType="DropdownEdit" HeaderText="ShipCity" Width="80" />
<ej:Column Field="ShipName" EditType="DropdownEdit" AllowEditing="false" HeaderText="ShipName" Width="80" />
//For disable the dropdown column initially while editing, you have to set allowEditing “false”
. . . . . . .
</Columns>
</ej:Grid>
</div>
<script>
function complete(args) {
if (args.requestType == "beginedit") {
$('#OrdersGridShipCity').ejDropDownList({ //Here we have binded the select event for dropdown column.
select: (args) => { This event triggers when the list of item is selected. So here we are enable the locked column
$("#OrdersGridShipName").ejDropDownList("enable");
}
});
}
}
</script> |