Hi Krunal,
Greetings from Syncfusion support.
We can achieve your requirement of adding a custom column in the resources tab by making use of the beforeOpenAddDialog and beforeOpenEditDialog request types in the actionBegin event. We have pushed the custom column to the column collection in the resources tab when the actionBegin event is fired. The following code snippets demonstrate the solution.
HomeConttoller.cs
|
ResourceGroupCollection Record1 = new ResourceGroupCollection()
{
ResourceId = 1,
ResourceName = "Martin Tamer",
Cost = 500
};
|
|
public class ResourceGroupCollection
{
public int ResourceId { get; set; }
public string ResourceName { get; set; }
public int Cost { get; set; }
}
|
Index.cshtml
|
<script>
function actionBegin(args) {
if (args.requestType == "beforeOpenEditDialog" || args.requestType == "beforeOpenAddDialog") {
args.Resources.columns.push("Cost");
}
}
</script>
|
We have also prepared a sample for your reference.
Please contact us if you require any further assistance.
Regards,
Monisha.