Example #1
0
        private void ClearButtonClick(object sender, RoutedEventArgs e)
        {
            var clearSearchValue = GridViewSearchPanelCommands.ClearSearchValue as RoutedUICommand;

            clearSearchValue.Execute(null, GrdBanks.ChildrenOfType <GridViewSearchPanel>().FirstOrDefault());
            textSearch.Focus();
        }
Example #2
0
 private void ScrollToSelectedItem()
 {
     if (GrdBanks.Items.CurrentItem != null)
     {
         GrdBanks.CurrentCellInfo = new GridViewCellInfo(GrdBanks.Items.CurrentItem, GrdBanks.Columns[0]);
         GrdBanks.ScrollIntoView(GrdBanks.SelectedItem);
         GrdBanks.Focus();
         textSearch.Focus();
     }
 }
Example #3
0
        private void ClearClientFilters()
        {
            var clearSearchValue = GridViewSearchPanelCommands.ClearSearchValue as RoutedUICommand;

            clearSearchValue.Execute(null, GrdBanks.ChildrenOfType <GridViewSearchPanel>().FirstOrDefault());

            GrdBanks.FilterDescriptors.SuspendNotifications();
            foreach (GridViewColumn column in GrdBanks.Columns)
            {
                column.ClearFilters();
            }
            GrdBanks.FilterDescriptors.ResumeNotifications();
        }
Example #4
0
        private void TextSearchLoaded(object sender, RoutedEventArgs e)
        {
            GrdBanks.Focus();
            textSearch = GrdBanks.ChildrenOfType <RadWatermarkTextBox>().FirstOrDefault(s => s.Name == "PART_SearchAsYouTypeTextBox");
            if (textSearch != null)
            {
                textSearch.Focus();
                textSearch.PreviewKeyDown        += TextSearchPreviewKeyDown;;
                GrdBanks.Items.CollectionChanged += GrdBankCollectionChanged;
                manageOwnersViewModel             = (ManageOwnersViewModel)DataContext;
            }

            var closeButton = GrdBanks.ChildrenOfType <RadPathButton>().FirstOrDefault(b => b.Name == "CloseButton");

            if (closeButton != null)
            {
                closeButton.Visibility = Visibility.Collapsed;
            }
        }