Hi
Ignite ui 13.2 MVC 5 (C#.NET, Visual Studio 2013, .Net framework 4.5)
I have an igHierarchicalGrid, but this may also apply to igGrid.
I have a column that uses a combo editor. The combo TextKey field is a string and the TextValue is a number (Int64).
The data is simple code/description in the form:
1 One
2 Two
3 Three
etc.
I have a little Java function to change the displayed value:
function formatMaterial(val) { var i; for (i = 0; i < _Materials.length; i++) { _Material = _Materials[i]; if (_Material.LookupCodeID === val) { val = _Material.Description; } } return val;}// formatMaterial
So, my grid cell displays "One" but the value is actually numeric 1.
I have enabled grid filtering.
I am configuring the grid in my MVC controller (much trial and error resulted in my concluding that this is simplest for me).
I have two problems that I would appreciate some help with:
Regards,
Graeme
Here is the link to my idea submission:
http://ideas.infragistics.com/forums/211535-ignite-ui/suggestions/5753364-add-contains-filter-to-ignite-ui-iggrid-combo-edit
Thanks for that but are you missing the point? A filtered column is no good to me because I am trying to filter the drop down list in a combo when used for a column editor. As it happens, the column with the combo editor is indeed set to use a contains filter - it's just that the combo editor for the cell does not use that setting for its drop down list.
A combo filter with "contains" is not a new idea because I can already do it with a standalone combo - it only fails when the combo is used for a grid cell editor. I think that it is an omission of required functionality but that's just semantics I guess - it obviously isn't there.
Thanks for your help on this - it leaves my website somewhat harder to use but at least we know why. Unfortunately the combo in question has rather a lot of values in its drop down list so the "contains" filter would be really helpful.
I'll create a new product idea, as you suggest.
Hello Graeme,
Thank you for the update.
After some research, using the combo filter with the “contains” condition has been determined to be a new product idea. You can suggest new product ideas for future versions (or vote for existing ones) on our UserVoice website: http://ideas.infragistics.com/
There are many benefits to submitting an idea through UserVoice:
- Communicate directly with our product management team. They'll see the idea described in your words and respond to you personally. - Receive notifications whenever new information regarding your idea becomes available. - Vote on your favorite product ideas to let us know which ones are the most important to you. - You and other developers can discuss existing product ideas with members of our Product Management team.
Thank you for your request.
If you want to us the “contains” condition I recommend you instead use the filter as I previously suggested and create a filtering column setting with the condition “contains”.
The column filtering (via the grid filter row) is working fine now that I have converted the column to display and record the text rather than display text and record number.
I am really stuck on the combo filtering though.
I have a list of strings and want the user to be able to type in the combo to filter down the drop down list based on a "contains" filter. Since I can't find the appropriate setting, as described above, it is filtering on a "Starts with" filter which is not what I need here.
Is it possible to configure the column's combo editor as I need it ie with text entered byt he user filtering the drop down list with a "contains" filter rather than "starts with"?
Thanks for the reply.
I think I will convert the column to work on the text that I need to filter on rather than the value that I need to record.
I am still stuck with the Combo condition because I am setting it up in my Controller ie in C# rather than in the View in Razor.
When I set up a normal ig combo that is not in a grid I can set the FilterCondition and the RenderMatchItemsCondition. This works great.
In the controller I can see ColumnUpdatingSetting.ComboEditorOptions.RenderMatchItemsCondition but there is no ColumnUpdatingSetting.ComboEditorOptions.FilterCondition for me to set. Is it hiding somewhere else?