GridViewMultiColumnComboBoxColumn search not working when name starts with a special character

1 Answer 151 Views
GridView
Quentin
Top achievements
Rank 1
Quentin asked on 07 Feb 2023, 02:51 PM

Hi,

I am using a GridViewMultiColumnComboBoxColumn in my GridView defined with the following code:

<telerik:RadGridView Grid.Row="1"
                                 AutoGenerateColumns="False"
                                 CanUserDeleteRows="False"
                                 CanUserInsertRows="False"
                                 CanUserGroupColumns="False"
                                 CanUserReorderColumns="False"
                                 CanUserSortColumns="False"
                                 IsFilteringAllowed="False"
                                 ShowGroupPanel="False"
                                 RowIndicatorVisibility="Collapsed"
                                 GroupRenderMode="Flat"
                                 ItemsSource="{Binding Materials}"
                                 AutoExpandGroups="True">
                <telerik:RadGridView.GroupDescriptors>
                    <telerik:GroupDescriptor Member="Category" />
                </telerik:RadGridView.GroupDescriptors>
                <telerik:RadGridView.Columns>
                    <telerik:GridViewDataColumn DataMemberBinding="{Binding Label}"
                                                Header="Name"
                                                HeaderTextAlignment="Center"
                                                TextAlignment="Center"
                                                IsReadOnly="True"
                                                CellStyleSelector="{StaticResource ReadOnlyStyle}"
                                                Width="Auto" />
                    <telerik:GridViewMultiColumnComboBoxColumn DataMemberBinding="{Binding RefSize}"
                                                               DisplayMemberPath="Size"
                                                               Header="Size"
                                                               HeaderTextAlignment="Center"
                                                               ItemsSource="{Binding PossibleSizes}"
                                                               TextAlignment="Right"
                                                               CellStyleSelector="{StaticResource ReadOnlyStyle}"
                                                               Width="250"
                                                               AutoGenerateColumns="False"
                                                               CloseDropDownAfterSelectionInput="True"
                                                               SelectionMode="Single"
                                                               SelectionBoxesVisibility="Hidden"
                                                               CanUserSearchInHiddenColumns="False"
                                                               DropDownHeight="350"
                                                               AutoCompleteMode="Search">
                        <telerik:GridViewMultiColumnComboBoxColumn.Columns>
                            <telerik:GridViewDataColumn DataMemberBinding="{Binding Material}" ShowFieldFilters="False" />
                            <telerik:GridViewDataColumn DataMemberBinding="{Binding Size}" ShowFieldFilters="False" />
                        </telerik:GridViewMultiColumnComboBoxColumn.Columns>
                    </telerik:GridViewMultiColumnComboBoxColumn>
                </telerik:RadGridView.Columns>
            </telerik:RadGridView>

Everything seems to be working fine except when I try to search for a value whose name starts with the '-' character (for example '-2Ni50'). Can you tell me what I should do to fix that?

 

Thanks in advance,

Quentin

1 Answer, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 10 Feb 2023, 12:14 PM

Hello Quentin,

The search functionality in our MultiColumnComboBox treats the symbols "+", "-" and ":" as special characters. You can find their descriptions here. Practically this sub feature works the same way in the GridView's search-as-you-type feature and the multi column combo box control but this information is missing in our documentation and we will address it soon.
In your case to detect values starting with - you need to use double quotes "-yoursearchstring", consider this is like escaping the minus in the quotes.
Let me know your thoughts on this feature, we would be glad to receive any feedback regarding it.

Regards,
Petar Mladenov
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Quentin
Top achievements
Rank 1
commented on 14 Feb 2023, 12:37 PM

Hi Petar,

Thanks for your response, it makes more sense to me now. After reading it, I think that being able to change the searching criteria with those special characters makes sense and can be useful in certain situations. However in my case this is quite annoying because all my items start with the "-" character. So I would be very interested to have the option to de-activate the special character.

Cheers,

Quentin

Petar Mladenov
Telerik team
commented on 16 Feb 2023, 03:31 PM

Thank you for the feedback, Quentin.
I've logged this as a feature request on your behalf in our portal where you can subscribe for future updates:

https://feedback.telerik.com/wpf/1597976-gridview-add-option-to-disable-the-special-chars-behavior-in-search-as-you-type-feature
Tags
GridView
Asked by
Quentin
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Share this question
or