kendo-panelbar

How to prevent Kendo Panelbar from collapsing when I click button which is places on the panelbar itself

自古美人都是妖i 提交于 2019-12-23 17:36:15
问题 I have a button which is placed on Kendo Panelbar. I was writing a jQuery function so that when user clicks on the button panelbar does not collapse. Other logic that I put on is that there is no post-back when button is clicked. I can't get this to work. Help appreciated ! :) Here is the code snippet. $("#panelBarCarDetails").kendoPanelBar({ expandMode: "multiple" $('#btnTakeOwnership').click(function (e) { if (e.target) { e.preventDefault(); } }); 回答1: I managed to find a solution for your

Loading of Kendo UI panelbar using datasource

六眼飞鱼酱① 提交于 2019-12-23 05:43:08
问题 I am trying to load panelbar dynamically using datasource. Actually In the documentation I got information with using ajax only, so I have implemented like this, $.ajax({ type: "POST", url: '/Home/GetPanelInfo', contentType: "application/json; charset=utf-8", dataType: "json", success: function (json) { $("#panelBar").kendoPanelBar({ expandMode: "single", id: "usr_id", dataSource: [{ text: json[0].groups_name, expand: true, contentUrl: "/Home/Index" }, { text: json[1].groups_name, expand: