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,
I created a sample project for you with the following your scenario and I wasn’t able to type in the textbox, too. I followed the approach from the link you shared in order to call the method for the FieldChooser in order to enable the user to type in the TextBox. Please let me know if this helps you or you need further assistance on this matter.
Looking forward for your reply.
Hello Stefan,
Seems like we have another issue here. As I mentioned before I cannot type in that text box. One quick note, our WPF application (and our XamDataGrid) is hosted in WinForms application. I did some research and found this link. Can you please investigate why we are having this is issue with this particular dialog. We use bunch of other dialogs like FormulaEditor etc. but we never had this issue.
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.
Can you please verify that you can type into that textbox? Also try it with some databound to the grid.
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.