I want my users to be able to see that there is a spot to enter the criteria for the filter without having to know to click on the empty space and a box will appear. Is there a simple way to show those boxes to the users even when they do not have focus?
1 Answer, 1 is accepted
0
Dimitar
Telerik team
answered on 24 Oct 2014, 11:53 AM
Hi J,
Thank you for writing.
This can be achieved by creating a custom cell which contains a textbox:
public class MyFilterCell : GridFilterCellElement
{
public MyFilterCell(GridViewDataColumn column, GridRowElement row) : base(column, row)
if (e.CellType == typeof(GridFilterCellElement) && e.Column is GridViewTextBoxColumn)
{
e.CellElement = new MyFilterCell(e.Column as GridViewDataColumn, e.Row);
}
}
I hope this helps.
Regards,
Dimitar
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.