This is a migrated thread and some comments may be shown as answers.

can tabbing through cells auto-scroll the grid horizontally

4 Answers 130 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Robert
Top achievements
Rank 1
Robert asked on 17 Apr 2014, 02:53 PM
Working with version 2014.1.224.45. mvvm pattern.

I have a grid inside a tileview.  The grid has its own vert/horiz scrollbars.  with respect to the horizontal scrollbar, there are more columns than what the screen can show so the horiz scroll kicks in.

Now as the user enters data and tabs through the cells, eventually they land in a cell that is off the visible part of the grid (e.g. the right hand side of the columns).  is there anyway to force the grid's scroll bar to scroll to the right so that the cell being edited (tabbed into) will be visible?

we tried a couple of things (my developer did) and no luck.  Perhaps we missed the mark on this one?

Any ideas?

4 Answers, 1 is accepted

Sort by
0
Yoan
Telerik team
answered on 18 Apr 2014, 11:16 AM
Hello Robert,

I've tried to reproduce the problem you report, but to no avail. You can check this video which illustrates my attempt. Please check the attached sample project and let me know how it works at your side.

Regards,
Yoan
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.

 
0
Robert
Top achievements
Rank 1
answered on 07 May 2014, 08:32 PM
i almost have it working. i think i found the discrepancy.  Was actually going to post this question separately but it is actually related.

so the sample you sent was good with respect to tile view, radgrid nesting. thanks.

in my radgridview i use telerik:GridViewDataColumn  with <telerik:GridViewDataColumn.CellTemplate>, with <DataTemplate.

now, when i click into the CELL and start tabbing i get the following effect: it goes from tabbing to the CELL and the control in the cell, then the next CELL, and then the next cell's control and so on.  doing this will auto-scroll the grid too.

however, if i click into the control itself and start tabbing, i go from the control in the cell to the next control in the next cell but the grid does not scroll.

so, i am looking for the grid to auto-scroll as i tab, but i want my tabs to only hit the controls inside each cell and not the cell itself.
0
Accepted
Dimitrina
Telerik team
answered on 08 May 2014, 02:54 PM
Hello,

I defined a DataTemplate as a CellTemplate for the columns, similar to:
<DataTemplate>
   <TextBlock Text="{Binding Name}"/>
</DataTemplate>

Then, I click on a cell and start editing it. After that I start tabbing and the scroll bar moves accordingly.

May I ask you to update the demo solution so that I can reproduce the issue?

Regards,
Didie
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
0
Robert
Top achievements
Rank 1
answered on 21 May 2014, 03:09 PM
we followed the example by switching from CellTemplate to CellEditTemplate and we now see the tab/scroll functionality we are looking for.

thanks.
Tags
GridView
Asked by
Robert
Top achievements
Rank 1
Answers by
Yoan
Telerik team
Robert
Top achievements
Rank 1
Dimitrina
Telerik team
Share this question
or