c# - Navigation issue when tabbing cells in Telerik RadGrid -
i'm developing c# solution using mvvm silverlight telerik radgrid. have view contains 3 grids, each set of checkboxes above it. can tab through set of checkboxes focus moving radgrid when tabbing lastly cell of each row in grid, have tab twice in order leave cell. in addition, instead of focus moving first cell of next row in grid, focus returns first checkbox above grid , upon tabbing through of checkboxes, focus returned next row of cells in grid.
i need able navigate each cell in grid row clicking tab button once. also, upon tabbing lastly cell focus should homecoming first cell of next row. behavior should repeated each grid row. @ point, focus should move next set of checkboxes after grid.
here snapshot of grid settings. lastly cell of each row contains hyperlink button:
<telerik:radgridview grid.row="1" automationproperties.automationid="grdcars" x:name="grdcars" selectionmode="single" selectionunit="cell" canuserresizecolumns="false" canuserfreezecolumns="false" style="{staticresource gridviewstyle}" showcolumnheaders="true" itemssource="{binding filtercarlist}" canusersortcolumns="false" actiononlostfocus="commitedit" tabnavigation="local" minheight="50" verticalalignment="top" tabindex="290" canuserdeleterows="false">
use xaml:
<telerik:radgridview keydown="grd_keydown"/> c#
private void grd_keydown(object sender, keyeventargs e) { if (e.key == key.return || e.key == key.tab) { movetonext(); //e.handled = true; } } private void movetonext() { var cmd = radgridviewcommands.movenext routeduicommand; cmd.execute(null, grd); } c# silverlight mvvm telerik radgrid
No comments:
Post a Comment