I have a radgrid definition that has AllowFilteringByColumn enabled. One of the grid column's is populated from a RadComboBox using a lookup table (via a foreign key). The filter in this case, only works on the foreign key value. (see screen shot)
Is it possible to configure this filer to accept the text value.
7 Answers, 1 is accepted
I guess you want to filter the GridDropDownColumn by the ListValueField. The built-in GridDropDownColumn is filtered by its ListValueField when the default filtering feature of the control is used. RadGrid does not include any support for filtering by ListTextField instead.
This limitation is because the filtering mechanism relies on the DataField of the filtered column and for GridDropDownColumn this property specifies the mapping field in the drop-down source. Use a hidden GridBoundColumn (with Display = false). Add an ItemCommand event handler that catches filter commands from the dropdown column and substitutes a filter command from the GridBoundColumn instead Please check the following code snippet I tried.
Please check this help documentation for details.
Great! Worked like a charm. Thanks for your help.
I am using AllowFilteringbyColumn in telerik:Gridtableview in my application and we need to implement the WCAG Compliance.
Please let me know how can we implement aria-label for allowFilteringByColumn textboxes.
I tried EnableAriaSupport but it did not worked.
You can use the ItemDataBound event handler to access the filter TextBox and add the desired attributes to it:
You can find here information about the differences of ItemCreated and ItemDataBound:
I hope this will prove helpful.
Thank you Eyup for quick reply.
Also I want back to focus on same tab [from where it is initiated] after clicking first, last prev and Next also on Paging. So what approach we can follow for the same. Actually we are in process of WCAG compliance so we need focus back if we hit on any button or postback.
Please share code snippet, that will be highly appreciated.
You need to manually determine which element made the action and apply the focus back to it after the PostBack or AJAX request. I am sending 2 web site samples which can give you some ideas.