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

Bug with grouped and pinned columns

3 Answers 92 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Fabien
Top achievements
Rank 2
Fabien asked on 11 Dec 2008, 02:41 PM
I found a graphical bug with pinned and grouped columns.

as you can see in the provided example, there is a graphical bug which looks like :

* not scrolled :
[ ] [column 1 pinned] [column 2 pinned] [column 3          |        ] [column 4 ]
v Group header --------------------------------------------|
    [content  1     ] [content  2     ] [content 3         |        ] [content 4]  
[============= scrool bar ================                 ] <-- right border of grid
 
* scrolled on right
[ ] [column 1 pinned] [column 2 pinned] [column 4 ]        |
v Group header --------------------------------------------|
[ con [content  1   ] [content  2     ] [content 4]        |
[                 ============= scrool bar ================] <-- right border of grid
 
the content 3 is on the left and visible (table header cell is ok)


<ADMIN>LINK REMOVED</ADMIN>

EDIT : an other bug, if you have a GridViewDataColumn after pinned ones which contain child(s) . for example RadComboBoxElement, the RadComboBoxElement will stay visible and won't be sended to back.
If you need more explains, ask me :)

3 Answers, 1 is accepted

Sort by
0
Accepted
Jack
Telerik team
answered on 12 Dec 2008, 04:39 PM
Hello Fabien,

Thank you for the detailed description.

There is a theme issue with the Vista theme. You should process the CellFormatting event to correct the issue. Consider the code snippet below:

void radGridView1_ViewCellFormatting(object sender, CellFormattingEventArgs e) 
    if (e.CellElement.ColumnInfo is GridViewIndentColumn || e.CellElement.ColumnInfo is GridViewRowHeaderColumn) 
    { 
        e.CellElement.ColumnInfo.IsPinned = true
        if (e.CellElement.RowElement is GridDataRowElement) 
        { 
            e.CellElement.DrawFill = true
            e.CellElement.BackColor = Color.White; 
            e.CellElement.GradientStyle = GradientStyles.Solid; 
        } 
    } 


I am not sure that I understand correct the second issue. Could you, please send me a screen shot of the issue? You could so in a new support ticket.

Thank you in advance for your cooperation.
 

Best wishes,
Jack
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Fabien
Top achievements
Rank 2
answered on 15 Dec 2008, 09:39 AM
Thanks for your help.

 I added a RadComboBox in GridViewDataColumn. (in children).

If you scroll, the RadComboBox is always in front. But anyway, I droped it and add a ContextMenu.

0
Jack
Telerik team
answered on 15 Dec 2008, 03:06 PM
Hello Fabien,

Thank you for the clarification.

The RadComboBox contains a textbox control. By default this textbox control is always visible and because it is standard WinForms control it can't be hidden behind the pinned column. Currently there is no workaround for this case. Nevertheless, we will research the situation and will consider a solution in a future releases.

Should you have any other questions, do not hesitate to write us.

All the best,
Jack
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
GridView
Asked by
Fabien
Top achievements
Rank 2
Answers by
Jack
Telerik team
Fabien
Top achievements
Rank 2
Share this question
or