Ejemplo n.º 1
0
 void grdFilters_NeedDataSource(object source, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
 {
     using (Facade.ITrafficSheetFilter facTrafficSheetFilter = new Facade.Traffic())
     {
         grdFilters.DataSource = facTrafficSheetFilter.GetForUser(((Entities.CustomPrincipal)Page.User).IdentityId, chkShowDeactivated.Checked);
     }
 }
Ejemplo n.º 2
0
        private void PopulateFilterList()
        {
            int identityId = ((Entities.CustomPrincipal)Page.User).IdentityId;

            Facade.ITrafficSheetFilter facTrafficSheetFilter = new Facade.Traffic();
            cboFilters.DataSource = facTrafficSheetFilter.GetForUser(identityId, false);
            cboFilters.DataBind();
            cboFilters.Items.Insert(0, new ListItem("-- Blank Filter --", "0"));
        }