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

[Solved] FrozenColumn and Navigation in excel-like grid

3 Answers 150 Views
Grid
This is a migrated thread and some comments may be shown as answers.
guillaume.lebel
Top achievements
Rank 1
Iron
Iron
guillaume.lebel asked on 29 Jul 2009, 05:35 PM
Hi,

I have a radgrid who need to have the firstcolumn frozen. I set the property allowscroll (true), frozencolumncount (1) and usestaticheader(true).

If i use the scroll manually it works fine.

Also, on key press event of the grid i change my focused cell. But when i'm navigating to the right my first column(the frozen one) desapear like the frozen column isn't working correctly. The first column will be hidding a bit more each time i'll navigate to the right till it deseapear completly.

If i try to navigate back to the left or use the scroll i won't be able to make it reapear completly.

How can i keep the column frozen while i'm using navigation in my grid??

Thx again for your time!!!

Guillaume

3 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 03 Aug 2009, 02:13 PM
Hello Guillaume,

Can you please check whether setting fixed widths for your grid columns (through their HeaderStyle -> Width property) or TableLayout = Fixed for the master table makes a difference?
Please note that the default table layout for the grid with scrolling enabled is auto and this may cause the unwanted effect when you enable the frozen columns functionality.

Kind regards,
Pavlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
guillaume.lebel
Top achievements
Rank 1
Iron
Iron
answered on 03 Aug 2009, 02:51 PM
Hi Pavlina,

Thx for your answer. Actually my grid is using a fixed table layout. But for the headerstyle i have a problem with it. I mean when my first column have a headerstyle-with set to a specific value all my other column aren't align correctly when the usestaticheaders is set to true.

I had to set the itemstyle-width and add rgHeader:FirstChild in my css to change the header width. It resolved the alignment problem. I know that's better to user the headerstyle-width but i don't rly now how to correct the alignment problem.

Hope it isn't too confusing my english isn't pretty good hehe. Anyway let me know if you need more explanation and again thx for your help!!

Guillaume
0
Pavlina
Telerik team
answered on 05 Aug 2009, 05:09 PM
Hello Guillaume,

Please have in mind that  all column widths should be set by using HeaderStyle-Width only. No ItemStyle-Width if you want all column to align correctly.
If the issue persists, you can open a formal support ticket, and send us a small project, demonstrating the case, for further review.

Greetings,
Pavlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Grid
Asked by
guillaume.lebel
Top achievements
Rank 1
Iron
Iron
Answers by
Pavlina
Telerik team
guillaume.lebel
Top achievements
Rank 1
Iron
Iron
Share this question
or