Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
149670 | Dec 5,2019 02:11 AM UTC | Dec 6,2019 01:06 PM UTC | ASP.NET Web Forms | 3 |
![]() |
Tags: Grid |
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> |
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.