BoldSignA modern eSignature application with affordable pricing. Sign up today for unlimited document usage!
KanbanFeatures.aspx
<input type="button" value="Add Task" class="btn btn-primary" onclick="onclk(this)" /> //onclk function was called when click the button
function OnSuccess(response) {
$("#kanTask").ejKanban("dataSource", response.d.d); // Send data to datasource
}
function onclk(args) {
ViewTask(); // Called view task function when click the button
}
|
KanbanFeature.aspx.cs
[WebMethod]
[ScriptMethod(ResponseFormat = ResponseFormat.Json)]
public static object GetCustomers()
{
NORTHWNDEntities1 db = new NORTHWNDEntities1();
IEnumerable Data = db.Tasks.ToList(); // Get all data in the database
int count = Data.AsQueryable().Count(); // Get data count
Syncfusion.JavaScript.DataSources.DataOperations operation = new Syncfusion.JavaScript.DataSources.DataOperations();
return new { d = Data }; // return data
} |