I use kenod UI to create my Web UI. I have a column template like below
var template = "<input id='details-button' type='image' src='images/detail_button.png' ng-click='showDetals(this.dataItem)'/>#: Contact #";
I want to popup a window every time I click the details button, and the popup's position should be at the bottom right of the button which I click. Here's what I do currently
var popup = $("#detailsPopup");
popup.kendoPopup({
anchor: "#details-button",
origin: "bottom right",
});
But it doesn't work. Every time, the popup display at the bottom right of the button in the first row, not the bottom right of the button which I click.
Checking the generated html, all of the buttons' id are same(details-button). So the popup always display related to the first details-button.
Updated:
This is my changed solution, but still doesn't work.
function popupDetails(item) {
detailsGrid.kendoGrid({
columns: ...,
dataSource: item.Details
});
var anchor = "#details-button" + item.id;
var popup = $("#details-popup");
popupp.kendoPopup({
anchor: anchor,
origin: "bottom right",
});
popup.data("kendoPopup").open();
}
Anyone can help?