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

gridlinesvisibility disappears

12 Answers 204 Views
GridView
This is a migrated thread and some comments may be shown as answers.
paul orsillo
Top achievements
Rank 1
paul orsillo asked on 21 Jul 2010, 03:26 PM
I installed the 7/14 trial release of SL RadControls. The new RadGridview appears to default to GridLinesVisibility="None".
Setting the value to Both or Horizontal, I can't get the horizontal lines to display.  Actually what happens is that the grid displays (flashes really) with the lines drawn then redraws with no horizontal lines. The Vertical lines render correctly.

Even setting the line brush has no impact.

I know the previous version worked. Is this a bug? Is there some other style setting that is needed?

Here is a typical gridview declaration:

            <telerikGrid:RadGridView x:Name="MyGView"  Grid.Row="0"  AutoGenerateColumns="False" ShowGroupPanel="True"
                Deleted="MyGView_Deleted" CanUserDeleteRows="True" CanUserInsertRows="False"  FontSize="{StaticResource StandardFontSize}"
                dragDrop:RadDragAndDropManager.AllowDrop="True" SelectionMode="Multiple" ItemsSource="{Binding ActiveList, Mode=TwoWay}" Margin="0,0,0,5"
                GridLinesVisibility="Both" HorizontalGridLinesBrush="Black" AlternateRowBackground="Coral">

There is nothing in the code behind that modifies the grid. But the ItemsSource is bound to an initially empty collection that the user fills in.

Thank you,
Paul

12 Answers, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 21 Jul 2010, 04:07 PM
Hi paul orsillo,

That is very strange. I have prepared a simple project and the grid lines are visible in both directions.

Can you modify it so that it reproduces the behavior that you are faced with and send it back?

Greetings,
Ross
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
paul orsillo
Top achievements
Rank 1
answered on 21 Jul 2010, 04:51 PM
Hi .

Thank you for the quick reply.

I ran your example as you sent it. I get the same behavior in the example you posted as I documented in the original post. I get vertical gridlines but not horizontal lines.

I neglected to mention in my original post that the alternating row color does not work, setting it has no effect. All the rows are the same base color.

I set your XAML to AlternateRowBackground="Coral". I got the same behavior - no alternating color.

In both my app and your app the lines show for a second then the window flashes and the lines disappear. It takes less than a second. As near as I can tell though the alternating row color never shows.
0
paul orsillo
Top achievements
Rank 1
answered on 21 Jul 2010, 05:01 PM
Ross,

I had a colleague run your example and it behaves correctly. So it appears to be something in my environment. It is curious that I hadn't seen it with the previous version of the controls.

Thank you for your help.
0
Rossen Hristov
Telerik team
answered on 22 Jul 2010, 03:04 PM
Hi paul orsillo,

I am sure that you are using the latest binaries, but can you please check what is the version of the grid view assembly in your project's references. This is because we had a bug similar to what you describe but we fixed it a long time ago. Can you Clean your solution, etc. start a new project from scratch, make sure the assemblies are the latest and see how it goes. The actual machine on which this is done should not matter at all.

Best wishes,
Ross
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
paul orsillo
Top achievements
Rank 1
answered on 22 Jul 2010, 09:56 PM
Here's the latest, Ross.

The GridView reference properties  are :
Runtime Version: v2.0.50727
Version: 2010.2.714.1040

Things I tried:
I deleted everything Telerik I could find on my machine, rebooted  and reloaded the binaries from the HotFix zip file.

I have used the grid on two pages in one app

I ran the example you supplied to try out

I built the demos that I got from the distribution prior to the one labeled  Hot Fix.

I wrote wrote a quick app from scratch

All exhibit the same behaviors.

A (so far) complete list of symptoms is:

No Horizontal GridLines

No Alternating Row Background coloring

Selecting a row in the grid is flaky - the selection arrow in the first column (the one with the row pointer)  doesn't always respond to a mouse click and when it does it is one or two rows off.

When dragging from the grid, the DataGrid.SelectedItems collection has multiple items even if I just opened the grid and dragged the very first row.
 
No Grouping. When I drag a column header to the Group By header section, my grid content disappears. I remove the header from the header area and my content reappears.

All of this functionality worked until I loaded the new version (the original 7/14 release prior to the Hot Fix). The Hot Fix was my first attempt to fix the problem.

Things that I know are still ok:
I wrote a couple of custom cell editors and they still work (i.e. they open and close)
Column Sorting works.
Binding Works.
Filtering works
Other controls I looked at seem ok. 

I'm kind of stumped.
0
Rossen Hristov
Telerik team
answered on 23 Jul 2010, 09:02 AM
Hi paul orsillo,

We are completely baffled. Really. And you say that on another machine everything is fine? Can you completely uninstall all Silverlight related things and install them again? We are running out of ideas.

Kind regards,
Ross
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
paul orsillo
Top achievements
Rank 1
answered on 23 Jul 2010, 05:03 PM
Ross,

I know the feeling. As suggested I uninstalled/reinstalled Silverlight . Same deal. The grid is still hosed.

As I mentioned when the page opens the grid renders correctly for less than a second then the window flashes and the grid loses the lines etc. I haven't been able to track down the event that causes the flashing/redraw. But the flashing is consistent  across all the apps I've tried.


Update: For what it's worth I attached a screen shot  the gridlines app you sent me. the gridlines property is Both. Also notice that the 3rd row is selected - clicked on the left most column not the first data column - yet the thumb is still on the first row. It is very sporadic in that sometimes it moves and sometimes it doesn't but when it does move it never goes to the row I actually clicked. It is like something is eating the mouse event but drag and drop (N/A for this particular app) works.
0
paul orsillo
Top achievements
Rank 1
answered on 26 Jul 2010, 03:35 PM
Hello,
 I am still beating on this problem.

This morning I took the GridLinesVisibility project that you asked me to try (which exhibited all the problems noted here) last week and back-leveled the telerik references to DLLs versioned 2010.1.309.1030. The file mod date I have is 3/9/2010 5:28pm.

The grid worked. I used this XAML definition


             xmlns:telerikGrid="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.GridView"

        <telerikGrid:RadGridView Grid.Row="0"  ShowColumnHeaders="True" ShowGroupPanel="True"
                             Name="clubsGrid"
                             GridLinesVisibility="Both"
                             ItemsSource="{Binding Clubs}"
                             AutoGenerateColumns="False"
                              AlternateRowBackground="Coral"
                             Margin="5">

Both horizontal and vertical grid lines worked. Clicking around the grid cell and row selection worked. The thumb kept up with the mouse clicks. Grouping worked (all this is broken using the latest DLLs).

Alternate column background  still does not display.

I think my next step is to back out the new rev from my application.
0
Rossen Hristov
Telerik team
answered on 27 Jul 2010, 09:25 AM
Hi paul orsillo,

You cannot see the alternate row background because you have not specified the AlternateRowCount. This means that all rows are non-alternating.

Best wishes,
Ross
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
paul orsillo
Top achievements
Rank 1
answered on 09 Aug 2010, 02:43 PM
Hello,

I owe you a status update. I finally got everything behaving.

I am not completely sure that I understand what contributed to what but

1)  AlternateRowCount was exactly the problem with alternating rows.

2)  I think I had older ghost versions of RadControls and or SL that were lurking even though I scrubbed as best I could. I think that contributed to the row selection issues I was having but... read on.
 
3)  Most perplexing of all. I discovered that I had my zoom level on IE8 set to 125%. Why it was at 125%,  I don't know. Probably I zoomed a page once upon a time an never reset it. You won't see the setting unless you have the browser Status Bar visible. From the status bar the zoom level is easily selectable.

Anything above 100% makes the RadGridView behave in very strange ways.
Grid lines disappear
Grouping a column is especially obvious: the header doesn't show, the result set disappears. If you sort the column headers while a column is grouped, you will see the grid flash the result set then everything disappears. 

My version is IE8 Version 8.0.6001.18928

0
Yordanka
Telerik team
answered on 10 Aug 2010, 12:42 PM
Hi paul orsillo,

We are familiar with "Zoom in" browser problems but unfortunately we are still not able to provide a solution. We will do our best to improve this as soon as possible.
Please, excuse us for the inconvenience caused.

Best wishes,
Yordanka
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Karlkim Suwanmongkol
Top achievements
Rank 1
answered on 19 Aug 2010, 04:08 AM
Hi,
  I just want to let you know that our application also experience the same issue. It might not look like a big deal since you can just zoom out to fix it. But sometimes our users use browser in zoom in mode (intentionally or not). And IE will always remember the zoom setting even you re-open the browser. The zoom setting will stay there until they zoom out again. If the user does not know the trick, they will think that our application is not working well.

Just my 2 cents!
Karlkim
Tags
GridView
Asked by
paul orsillo
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
paul orsillo
Top achievements
Rank 1
Yordanka
Telerik team
Karlkim Suwanmongkol
Top achievements
Rank 1
Share this question
or