protected override SortingProperties[] DefaultSort() { SortingProperties paymDateSort = new SortingProperties("PaymentDate"); SortingProperties accSort = new SortingProperties("AccountNum"); return(new SortingProperties[] { paymDateSort, accSort }); }
protected override SortingProperties[] DefaultSort() { SortingProperties duedateSort = new SortingProperties("DueDate"); SortingProperties dateSort = new SortingProperties("Date"); return(new SortingProperties[] { duedateSort, dateSort }); }
protected override SortingProperties[] DefaultSort() { SortingProperties orderNoSort = new SortingProperties("OrderNumber"); orderNoSort.Ascending = false; return(new SortingProperties[] { orderNoSort }); }
protected override SortingProperties[] DefaultSort() { SortingProperties dateSort = new SortingProperties("Date"); var syncMaster = dgFamTransGrid.masterRecord; dateSort.Ascending = (syncMaster is GLDailyJournalPosted || syncMaster is GLDailyJournalLine); return(new SortingProperties[] { dateSort, new SortingProperties("Voucher"), new SortingProperties("VoucherLine") }); }
protected override SortingProperties[] DefaultSort() { SortingProperties createdDateSort = new SortingProperties("Created"); createdDateSort.Ascending = false; return(new SortingProperties[] { createdDateSort }); }
protected override SortingProperties[] DefaultSort() { if (AddFilterAndSort) { SortingProperties dateSort = new SortingProperties("Date"); dateSort.Ascending = false; return(new SortingProperties[] { dateSort }); } return(base.DefaultSort()); }
protected override SortingProperties[] DefaultSort() { SortingProperties dateSort = new SortingProperties("Date") { Ascending = false }; SortingProperties VoucherSort = new SortingProperties("Voucher"); return(new SortingProperties[] { dateSort, VoucherSort }); }
public bool SortingRule(SortingProperties sorting) { if (sorting == 0 || sorting == SortingProperties.ByName || sorting == SortingProperties.DescentByName || sorting == SortingProperties.ByPriority) { return(true); } return(false); }
protected override SortingProperties[] DefaultSort() { if (AddFilterAndSort) { SortingProperties dateSort = new SortingProperties("Date") { Ascending = false }; SortingProperties lineSort = new SortingProperties("LineNumber") { Ascending = false }; return(new SortingProperties[] { dateSort, lineSort }); } return(base.DefaultSort()); }
private void itemsList_Loaded(object sender, RoutedEventArgs e) { ICollectionView defaultView = CollectionViewSource.GetDefaultView(itemsList.ItemsSource); if ((defaultView != null) && (!String.IsNullOrWhiteSpace(SortingProperties))) { defaultView.SortDescriptions.Clear(); var sortingDirections = SortingDirections.Split(new char[] { '-' }); int i = 0; foreach (var sort in SortingProperties.Split(new char[] { '-' })) { var sortDirection = ListSortDirection.Ascending; if (sortingDirections.Length > i) { var sdValue = sortingDirections[i++]; if ((sdValue.ToUpper() == "D") || (sdValue == "1")) { sortDirection = ListSortDirection.Descending; } } defaultView.SortDescriptions.Add(new SortDescription(sort, sortDirection)); } } }
public List <FilterSortingProps> GetBookSortingProps() { SortingProperties sortingProperties = new SortingProperties(); return(sortingProperties.GetBooksSortingProps()); }
public List <FilterSortingProps> GetCategorySortingProps() { SortingProperties sortingProperties = new SortingProperties(); return(sortingProperties.GetCategorySortingProps()); }