Пример #1
0
 private void RebindInputGrid(bool callRebind)
 {
     //inputConfigurations = new List<Models.InputConfiguration>();
     DataProviders.DBaccess db = new DataProviders.DBaccess();
     if (db.GetInputConfigurations(ref inputConfigurations, out string errmsg) == false)
     {
         LabelError.Text = errmsg;
     }
     RadGridInput.DataSource = inputConfigurations;
     if (callRebind)
     {
         RadGridInput.Rebind();
     }
 }
Пример #2
0
 protected void RadAjaxManager1_AjaxRequest(object sender, AjaxRequestEventArgs e)
 {
     if (e.Argument == "Rebind")
     {
         RadGridInput.MasterTableView.SortExpressions.Clear();
         RadGridInput.MasterTableView.GroupByExpressions.Clear();
         RadGridInput.Rebind();
     }
     else if (e.Argument == "RebindAndNavigate")
     {
         RadGridInput.MasterTableView.SortExpressions.Clear();
         RadGridInput.MasterTableView.GroupByExpressions.Clear();
         RadGridInput.MasterTableView.CurrentPageIndex = RadGridInput.MasterTableView.PageCount - 1;
         RadGridInput.Rebind();
     }
 }