Example #1
0
 protected void RadGrid1_ItemCommand(object source, GridCommandEventArgs e)
 {
     if (e.CommandName == "FilterRadGrid")
     {
         RadFilter1.FireApplyCommand();
         div.Style.Add("display", "none");
     }
 }
Example #2
0
 protected void rdcFiltro_SelectedIndexChanged(object sender, RadComboBoxSelectedIndexChangedEventArgs e)
 {
     RadFilter1.RootGroup.Expressions.Clear();
     RadFilter1.RecreateControl();
     txtFiltro.Text = "";
     if (rdcFiltro.SelectedValue != "")
     {
         Filtro f = CntLainsaSci.GetFiltro(int.Parse(rdcFiltro.SelectedValue), ctx);
         txtFiltro.Text = f.Nombre;
         RadFilter1.LoadSettings(f.Expresion);
     }
     RadFilter1.FireApplyCommand();
 }
 protected void AplicarFiltro(Filtro f, string tipo)
 {
     if (tipo == "Revision")
     {
         RadFilter1.RootGroup.Expressions.Clear();
         RadFilter1.RecreateControl();
         RadFilter1.LoadSettings(f.Expresion);
         RadFilter1.FireApplyCommand();
     }
     else
     {
         RadFilter2.RootGroup.Expressions.Clear();
         RadFilter2.RecreateControl();
         RadFilter2.LoadSettings(f.Expresion);
         RadFilter2.FireApplyCommand();
     }
 }
Example #4
0
 protected void btnApplyFilter_Click(object sender, EventArgs e)
 {
     RadFilter1.FireApplyCommand();
 }
Example #5
0
 protected void btnExportToExcel_Click(object sender, EventArgs e)
 {
     RadFilter1.FireApplyCommand();
     RadGrid1.MasterTableView.ExportToExcel();
 }