Hello,
We have a grid with more than 100 columns. And we are trying to use the 'FieldChooser' dialog to enable user to choose a field. However, there is no 'search' functionality in that particular dialog. We would like to add a XamComboBox, which allows auto complete, where users can put couple of letters to choose from and the list of fields will be updated based on the user search. We took the generic style for FieldChooser and start updating but so far could not get the functionality that we would like to have. Can you please let us know how to get this functionality to the FieldChooser?
<DockPanel Visibility="{TemplateBinding FieldGroupSelectorVisibilityResolved}" > <editors:XamCheckEditor x:Name="toggleAllCheckBox" DockPanel.Dock="Left" IsThreeState="false" Value="{Binding Path=AllCurrentFieldsVisible, RelativeSource={x:Static RelativeSource.TemplatedParent}, Mode=TwoWay}" Visibility="{Binding Path=DisplayHiddenFieldsOnly, RelativeSource={x:Static RelativeSource.TemplatedParent}, Converter={StaticResource NotBoolToVisConverter}, Mode=OneWay}" Margin="4,0,0,0" /> <!--This is the combobox that we implemented which is shown for field group selectors.--> <ig:XamComboEditor x:Name="fieldGroupSelector" DockPanel.Dock="Right" ItemsSource="{TemplateBinding CurrentFields}" HorizontalAlignment="Stretch" DisplayMemberPath="Field.Name" OpenDropDownOnTyping="True" SelectedItem="{Binding Path=SelectedField, RelativeSource={x:Static RelativeSource.TemplatedParent}, Mode=TwoWay}" /> </DockPanel>
Hello Murat,
Thank you for your post. I have been looking into and I created a sample project for you with the functionality you want. Basically I added a TextBox above the ListBox that contains the Fields in the FieldChooser. I also handled its TextChanged event and in the handler I set the visibility, of the items that doesn’t contains the text, to Collapsed. You can also use this logic as a base in order to replace the TextBox with a ComboBox or other con troll of your choice.
Hope this helps you.
Hello Stefan,
Can you please verify that you can type into that textbox? Also try it with some databound to the grid.
Best regards,
Murat.
I have modified the sample, so now the XamDataGrid is bound to a DataTable and everything seems to work ok on my side. Could you please test the sample and if you still have issues, could you please send me a screenshot with the result you have and the exact version of NetAdvantage that you use, so I could be able to investigate this further for you.
Looking forward for your reply.
I am just checking if you got this worked out or you still require any assistance or clarification on the matter.
If the sample doesn’t satisfies all your needs feel free to modify it, so it reproduces your issue and send it back to me for further investigation.
Hello Andrew,
Thank you for your response that resolved the keyboard input issue. However, the sample Stefan provided does not provide the actual functionality. First with the 'StackPanel' usage we use the 'ScrollView' on the Listbox. We have resolved the issue by switching to a Grid. However, still when we do filtering Listboxjust starts showing the elements when you scroll through the grid. I would be glad if you can test the example he sent and make sure that it works.
If you are going to (directly or indirectly) use any ToolWindows within a Windows Forms application then you'll need to invoke the static EnableModelessKeyboardInterop method on the Infragistics.Windows.Utilities class so that ToolWindow will call that method for the WPF Window with which it gets associated.
ToolWindow.Parent throws a null pointer exception, we are using 13.1 here. Did you test this sample?