Hi Nihaal,
Greetings from syncfusion support,
We are currently validating your reported query, and will update you with further details in two business days by 23rd June 2021.
Regards,
Indrajith
Please help me ASAP
|
constructor() {
super(...arguments);
this.data = new DataManager({
url: 'http://localhost:54738/Home/LoadData',
updateUrl: 'http://localhost:54738/Home/UpdateData',
insertUrl: 'http://localhost:54738/Home/UpdateData',
removeUrl: 'http://localhost:54738/Home/UpdateData',
adaptor: new UrlAdaptor(),
crossDomain: true
});
}
|
|
using System.Data;
using System.Data.SqlClient;
public class HomeController : Controller
{
DataTable dt = new DataTable("Task");
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
//Render Kanban cards.
SqlConnection myConnection = new SqlConnection(ConfigurationManager.ConnectionStrings["SQLConnectionString"].ToString());
dt = new DataTable("Task");
SqlCommand cmd = new SqlCommand();
cmd.Connection = myConnection;
cmd.CommandText = "select * from Tasks";
cmd.CommandType = CommandType.Text;
SqlDataAdapter da = new SqlDataAdapter();
da.SelectCommand = cmd;
if (myConnection.State == ConnectionState.Closed)
{
myConnection.Open();
}
da.Fill(dt);
return Json(da, JsonRequestBehavior.AllowGet);
}
}
}
|
Hello.
Would this method work if you are using the filtering option on the kanban board?
or how would you do it?
|
public JsonResult LoadData(Params param) // Here we can filter the cards using where query.
{
var data = db.ScheduleEventDatas.ToList();
var model = from r in db.ScheduleEventDatas orderby r.Subject where r.Subject == "Inprogress" select r;
return Json(model);
//return Json(data, JsonRequestBehavior.AllowGet);
} |