Hi Dan,
Greetings from Syncfusion support.
From your query we are unable to get your exact requirement. Could you please share explain more about your requirement clearly, which will help us to analyze and provide a better suggestion as soon as possible
Regards,Manivel
|
function toolbarClick(args) {
var gridobj = document.getElementById("CheckboxSelection").ej2_instances[0];
if (args.item.id === 'generate') {
var selectedRow = gridobj.getSelectedRecords();//to get the selected rows
console.log(selectedRow);
var text = document.getElementById('textbox');
var textval = text.value; //to get value inside the textbox
console.log(textval);
var ajax = new ej.base.Ajax();
ajax.type = "POST"
ajax.url = "/Home/Description"
var moveposition = { textval: textval };
ajax.data = JSON.stringify(moveposition);
ajax.send();
}
} |
|
HomeController.cs
public void Description(description des)
{
var value = des;
/*your code*/
} |