示例#1
0
 protected void RefreshGrid(bool rebind)
 {
     RadGrid1.DataSource = CntLainsaSci.GetCategorias(ctx);
     if (rebind)
     {
         RadGrid1.Rebind();
     }
 }
示例#2
0
    protected void rdcCategoria_ItemsRequested(object sender, RadComboBoxItemsRequestedEventArgs e)
    {
        if (e.Text == "")
        {
            return;
        }
        RadComboBox combo = (RadComboBox)sender;

        combo.Items.Clear();
        foreach (Categoria empresa in CntLainsaSci.GetCategorias(e.Text, ctx))
        {
            combo.Items.Add(new RadComboBoxItem(empresa.Nombre, empresa.CategoriaId.ToString()));
        }
    }
示例#3
0
    protected void CargaCategorias()
    {
        string catid = "";

        rdcCategoria.Items.Clear();
        foreach (Categoria c in CntLainsaSci.GetCategorias(ctx))
        {
            rdcCategoria.Items.Add(new RadComboBoxItem(c.Nombre, c.CategoriaId.ToString()));
            catid = c.CategoriaId.ToString();
        }
        //rdcCategoria.SelectedValue = catid;
        //categoria = CntLainsaSci.GetCategoria(int.Parse(catid), ctx);
        //CargaSubcategorias(categoria);
        rdcCategoria.Items.Add(new RadComboBoxItem(" ", ""));
        rdcCategoria.SelectedValue = "";
    }
示例#4
0
 protected void RefreshGrid(bool rebind)
 {
     //if (uex.Global)
     //{
     //    IList<Categoria> categorias = new List<Categoria>();
     //    foreach (PermisoCategoria pcat in uex.PermisoCategorias)
     //    {
     //        categorias.Add(pcat.Categoria);
     //    }
     //    RadGrid1.DataSource = categorias;
     //}
     //else
     //{
     RadGrid1.DataSource = CntLainsaSci.GetCategorias(ctx);
     //}
     if (rebind)
     {
         RadGrid1.Rebind();
     }
 }