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

Issues changing to Q1 grid

10 Answers 95 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Tyree
Top achievements
Rank 2
Tyree asked on 21 Mar 2011, 04:08 PM
This is going to contain quite a few items probably through several posts as I have time.

Today I tried out the Q1 grid to replace previous version and I am unable to use it (meaning I cannot upgrade? to it over the previous version because of too many breaking behaviors).

The first such behavior I would like to mention is that as you tab through a wide grid, one wider then the page, I have code that scrolls each cell into view as you tab. This does not work with the Q1 release. The grid does not scroll, you just tab into the invisible part of the grid. Then, instead of eventually tabbing down to the next row and starting again when it reaches the end of the row it starts over on the same row. I have 5 frozen columns in my grid. I will post more soon.

10 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 21 Mar 2011, 04:13 PM
Hi,

 Have you tried our Q1 2011 Beta before upgrading to our official release? I've checked your support communication however didn't found anything related to our beta version.

Greetings,
Vlad
the Telerik team
0
Tyree
Top achievements
Rank 2
answered on 21 Mar 2011, 05:19 PM
I am unsure if the last internal build we tested was considered "beta Q1" or not.

private void tdg_PreparingCellForEdit(object sender, GridViewPreparingCellForEditEventArgs e)
{
    var editor = sender as RadGridView;
    if (editor != null)
        editor.Dispatcher.BeginInvoke(() => editor.ScrollIntoView(editor.SelectedItem, e.Column));
}

That code used to bring things into view as you tabbed - now it does not. I tried the async method with no luck. Right now in testing the grid has completely stopped responding to tabbing all-together.

So PreparingCellForEdit appears to no longer fire for cells that are not visible. It also appears to not properly tab through cells that are not visible either - as in there are 6 cells left, but after only a tab or two it recycles to the first cell.

If i try to do this in CurrentCellChanged it fires once after you tab off the screen but the e.NewCell.Column is not correct.
0
Tyree
Top achievements
Rank 2
answered on 24 Mar 2011, 12:56 PM
Any update how to make the grid tab as the last version did?
0
Tyree
Top achievements
Rank 2
answered on 24 Mar 2011, 04:54 PM
It appears to be related to using IsReadOnlyBinding when the cell is not in the visible area of the grid.
0
Tyree
Top achievements
Rank 2
answered on 24 Mar 2011, 05:41 PM
If I set EnableColumnVirtualization="False" the tabbing almost works as before. It still does not properly focus the cell that is being edited. It appears to not be respecting the actual viewable are when are is a frozen columns and the grid is too wide for the page. When I use grid.ScrollIntoView on a colum that is off the screen (left or right) it does not scroll it into view every time it should. The problem seems to get worse the more frozen columns you have. I have 7. If I set it to 1 I don't notice anything but as I add more it gets worse.

This is in combination with my previous post, using IsReadOnlyBinding.
0
Tyree
Top achievements
Rank 2
answered on 24 Mar 2011, 06:36 PM
With EnableRowVirtualization=True and EnableColumnVirtualization="False" then as I scroll vertically the grid looks wrong - image attached. If I set both to false this does not happen. This is all in conjuction with the above posts and settings.
0
Adam Blank
Top achievements
Rank 1
answered on 25 Mar 2011, 06:00 PM
We hit the same issue in the upgrade from Q3 2010 to Q1 2011. 

This simple line of code no longer works after the upgrade. 
radGridView.ScrollIntoView(item);

I set:

 

radGridView.EnableColumnVirtualization = false;

And now things seem to be working for our purposes.  (my grid is not editable, so less complicated than what you're dealing with)

 

 

 

 

 

0
Tyree
Top achievements
Rank 2
answered on 26 Mar 2011, 03:35 AM
Removing implicit RowStyle prevents the rows from not rendering correctly as I scroll - tabbing still wrong. I must have a RowStyle - will try explicit but that used to be slow.
0
Tyree
Top achievements
Rank 2
answered on 29 Mar 2011, 03:06 PM
<telerik:GridViewColumn Header="P V" Width="32" IsReadOnly="True" IsFilterable="False" IsGroupable="False" IsReorderable="False" IsResizable="False" IsSortable="False" ShowDistinctFilters="False">
    <telerik:GridViewColumn.CellTemplate>
        <DataTemplate>
            <StackPanel Orientation="Horizontal">
                <telerik:RadProgressBar Margin="3,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Center" Height="20" Width="10" Orientation="Vertical" Maximum="{Binding FieldsNeededToPromote}" Value="{Binding CountCompleted}"/>
                <Rectangle Stroke="White" Height="20" Width="10" Fill="{Binding MyDealPriceValStatusColor}" ToolTipService.ToolTip="{Binding MyDealPriceValStatus}"/>
            </StackPanel>
        </DataTemplate>
    </telerik:GridViewColumn.CellTemplate>
</telerik:GridViewColumn>

The above column does not "get" the "CountCompleted" property when an item is added to the CVS. The grid does show the new row, but the property is not evaluated. It is evaluated for the other rows and this does work with the previous version of the grid. Is there something I need to change to make this work again?
0
Yordanka
Telerik team
answered on 30 Mar 2011, 10:26 AM
Hello,

About the problems with Tab navigation and frozen columns - they were confirmed and logged but we are still working on resolving them. We shall do our best to address them in one of our next internal builds.

Regarding Robert's problems:
  • With EnableRowVirtualization=True and EnableColumnVirtualization="False" then as I scroll vertically the grid looks wrong - image attached. - We were not able to reproduce it locally.
  • About "CountCompleted" property problem - Could you send a sample project which demonstrates it? It will be best to open a separate support ticket related to this particular problem.

Regarding Adam's problem:
  • This simple line of code no longer works after the upgrade.  
    radGridView.ScrollIntoView(item);
We were not able to reproduce it locally. Could you give us more details for the scenario where ScrollIntoView()does not work.
 
Regards,
Yordanka
the Telerik team
Tags
GridView
Asked by
Tyree
Top achievements
Rank 2
Answers by
Vlad
Telerik team
Tyree
Top achievements
Rank 2
Adam Blank
Top achievements
Rank 1
Yordanka
Telerik team
Share this question
or