Hi,
I am facing an issue where I am binding a datasource to dropdownlist from Access Database.
Following works :
protected void Page_Load(object sender, EventArgs e)
{
ddlDepartment.DataSource = dtDept;
ddlDepartment.DataBind();
}
The above code binds the data to dropdownlist every time the page loads i.e on every postback.
But if i check the isPostback Property of Page and want to load the data only on the initial Page Load, the data gets lost after a postback event.
protected void Page_Load(object sender, EventArgs e)
{
if(!isPostBack)
{
ddlDepartment.DataSource = dtDept;
ddlDepartment.DataBind();
}
}
Hence, unlike asp.net Dropdownlist, I cannot populate the Dropdown on first page load, I need to repopulate it on every page load and that has become an overhead. And this is the case with every other syncfusion control as well.. may it be Grid, Treeview, ListView, Accordian etc.
Please let me know if there is any work around for this.
Thanks-
Gaurang Kelkar