Hello,
I have a filterable datagrid being used as a search screen by the user. When the user begins a search, we select the entry they last selected as a starting point and then set the focus to the filter text box for the first column of the grid.
As they type, we scroll to the first matching entry by hooking the FilterChanged event by executing
and it seems to work well.
1. I'd like to enhance it by actually selecting the row (IsCurrent = true) and then place the focus (cursor) back to the filter text box at the end of the text so the user can keep typing without overwriting the original filter criteria. I figured out how to do everything except placing the cursor at the end of the filter criteria text.
2. A problem did arise in using the mouse. After entering a filter and scrolling the list to the first match, using the mouse to click on an entry in the list causes the list to scroll down the screen 1 line and a blank line appears between the filter row and the first row of results.
I am using VS 2008 version 9.0.30729.1 SP, Framework 3.5 SP1, Telerik Winforms 2010.3.10.1215
Thanks,
Chet
I have a filterable datagrid being used as a search screen by the user. When the user begins a search, we select the entry they last selected as a starting point and then set the focus to the filter text box for the first column of the grid.
As they type, we scroll to the first matching entry by hooking the FilterChanged event by executing
this.TableElement.ScrollToRow(((Telerik.WinControls.UI.GridViewRowInfo)(this.MasterGridViewInfo.TableFilteringRow)).ViewInfo.Rows[0]);
1. I'd like to enhance it by actually selecting the row (IsCurrent = true) and then place the focus (cursor) back to the filter text box at the end of the text so the user can keep typing without overwriting the original filter criteria. I figured out how to do everything except placing the cursor at the end of the filter criteria text.
2. A problem did arise in using the mouse. After entering a filter and scrolling the list to the first match, using the mouse to click on an entry in the list causes the list to scroll down the screen 1 line and a blank line appears between the filter row and the first row of results.
I am using VS 2008 version 9.0.30729.1 SP, Framework 3.5 SP1, Telerik Winforms 2010.3.10.1215
Thanks,
Chet