hi,
please suggest for the below scenario:
page having a kendo grid. this is a common page for 3-4 categories.
as per the functionlity the grid has to get display detail grid only for one category.
can anyone suggement me how to hide /show detail grid dynamically based on conditions.. i tried but still the expan/collapse icon is been displaying.
thanks in advance

Tuhin PaulRank #7 · 71.9K reputationPosted Aug 14, 2024, 12:07 AM EDT
$("#grid").kendoGrid({ dataSource: { // Your data source configuration }, detailInit: function (e) { var category = e.data.category; // Assuming 'category' is a field in your data if (category !== "desiredCategory") { e.detailRow.remove(); // Remove the detail row if the condition is not met } else { // Initialize the detail grid as usual $("").appendTo(e.detailCell).kendoGrid({ dataSource: { // Detail grid data source configuration }, // Additional detail grid configuration }); } }, detailExpand: function (e) { var category = e.data.category; if (category !== "desiredCategory") { e.preventDefault(); // Prevent the expansion if the condition is not met } }, columns: [ // Your column definitions ] });CHeck this code it might help.