Hi,
I have one multiselect in cshtml page. When I click on button in cshtml page, I am showing Kendo Window. In kendo window, there is one more multi select and OK, Cancel buttons.
If user clicks on OK, I am calling controller and passing values of multiselect and doing the required operation.
I want to display the same values in multiselect in cshtml page. How can I do this ? Here is my code.
$("#okay").kendoButton({
click: function () {
var rowID = $("#selectedValues").val();
data = { 'rows': rowID };
$.ajax({
type: "POST",
url: "Rows" + window.location.search,
data: data,
traditional: true,
dataType: "json",
success: function (result) {
$("#Dialog").data("kendoWindow").close();
return true;
},
error: function () {
alert("An Error Occured. Please Cancel and Try Again!");
return false;
}
});
}
});
I have one multiselect in cshtml page. When I click on button in cshtml page, I am showing Kendo Window. In kendo window, there is one more multi select and OK, Cancel buttons.
If user clicks on OK, I am calling controller and passing values of multiselect and doing the required operation.
I want to display the same values in multiselect in cshtml page. How can I do this ? Here is my code.
$("#okay").kendoButton({
click: function () {
var rowID = $("#selectedValues").val();
data = { 'rows': rowID };
$.ajax({
type: "POST",
url: "Rows" + window.location.search,
data: data,
traditional: true,
dataType: "json",
success: function (result) {
$("#Dialog").data("kendoWindow").close();
return true;
},
error: function () {
alert("An Error Occured. Please Cancel and Try Again!");
return false;
}
});
}
});