i have used the devexpress components in my ASP application . in page _load() i have bind the ASPXtreelist & initialize at page_init . but when i will focused to the particular node then page refresh automatically . same this will happened with ASPxMenu item click event.bothe event bind the gridview datasource. these all control placed in ASPxsplitter.i will try to solve using updatepanel but hole updatepanel get refresh. how to avoid the page refresh after event?
Refresh Page Issue in ASP.Net
i try above link solution also ...
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
Session["update"] = Server.UrlEncode(System.DateTime.Now.ToString());
treeviewer.DataBind();
BatchGV.ClientVisible = false;
pnlreports.Visible = false;
}
}
protected override void OnInit(EventArgs e)
{
base.OnInit(e);
InitTreeList(treeviewer);
}
void InitTreeList(ASPxTreeList tl)
{
tl.KeyFieldName = "unit_id";
tl.ParentFieldName = "unit_parent_id";
tl.DataSource = loadtree();
}
protected void treeviewer_FocusedNodeChanged(object sender, EventArgs e)
{
}
protected void ASPxMenu1_ItemClick(object source, DevExpress.Web.ASPxMenu.MenuItemEventArgs e)
{
if (e != null)
{
if (e.Item.Index == 0)
{
if (Session["update"].ToString() == ViewState["update"].ToString())
{
}
}
if (e.Item.Index == 1)
{
if (Session["update"].ToString() == ViewState["update"].ToString())
{
}
}
if (e.Item.Index == 2)
{
if (Session["update"].ToString() == ViewState["update"].ToString())
{
}
}
if (e.Item.Index == 3)
{
if (Session["update"].ToString() == ViewState["update"].ToString())
{
}
}
}
}
Thanks