There is a Kendo Ui Grid. I wanted to make it possible for each line to call a substring. watched how it is done here http://demos.telerik.com/kendo-ui/grid/hierarchy
Podgid do this:
function detailInit(e) { $("<div/>").appendTo(e.detailCell).kendoGrid({ dataSource: { transport: { read: { url: kendo.format("/Home/Metod"), dataType: "json", type: "POST", data: {name:"parameter"} } } }, columns: [ { field: "name", title: "name1", width: "50px" }, { field: "name2", title: "name2", width: "50px" } ], resizable: true }); } Called method in the controller that should return data for the subgrid:
[HttpPost] public JsonResult findSchemasInfo(string name) { // .... form a collection of objects
return new JsonResult() { Data = new { //Π²ΠΎΠ·Π²ΡΠ°ΡΠ°Π΅ΠΌ ΠΊΠΎΠ»Π»Π΅ΠΊΡΠΈΡ ΠΎΠ±ΡΠ΅ΠΊΡΠΎΠ² (ΡΠΏΠΈΡΠΎΠΊ), Ρ ΠΊΠ°ΠΆΠ΄ΠΎΠ³ΠΎ ΠΈΠ· //ΠΊΠΎΡΠΎΡΠΎΠ³ΠΎ 2 ΡΠ΅ΠΊΡΡΠΎΠ²ΡΡ
ΠΏΠΎΠ»Ρ - name1 ΠΈ name2 }, }; } The next question is how to send a collection of objects from the controller and how to receive it in the js script (what is wrong with it)?