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

Grid column width changes after callback

5 Answers 125 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Warnestam
Top achievements
Rank 1
Warnestam asked on 05 Nov 2008, 02:14 PM
Hi,

We have a couple of problems where the column widths are changing after callbacks. I'll try to explain one of then here.

Data and columns are created dynamicly (in the Init() method) and we are not using any fixed widths for localisation reason. In a page we have a RadMultiPage containing several views and every view can change data/grid on the other. This is what we do to recreate the error;

1) Load page. Grid in first view is ok
2) Go to second view
3) Go to first view, Grid is ok
4) Go to  second view again
5) Do something that forces a callback
6) Go to first view, Grid not ok (horizontal scrollbar is gone and columns is compressed)

We are using paging, static headers and is allowing scrolling on the client

5 Answers, 1 is accepted

Sort by
0
Warnestam
Top achievements
Rank 1
answered on 06 Nov 2008, 12:03 PM
I've created a sample project where the problem can be replicated. The problem is that when a RadGrid is not visible at loadtime (or callback) the columns will not get the width based on its content, instead the columns are made to fit into the grid itself without horizontal scrollbar. Is this a known bug in Q1 2008 and are there a work around?

Best regards
0
Iana Tsolova
Telerik team
answered on 07 Nov 2008, 12:53 PM
Hello,

Can you please open a formal support ticket and send us the sample you mentioned there? Thus I could debug it locally and turn back with a proper solution for you.

Thank you the cooperation in advance.

Greetings,
Iana
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Warnestam
Top achievements
Rank 1
answered on 10 Nov 2008, 02:02 PM
Ok, I have opened ticket 172895
0
Rob
Top achievements
Rank 1
answered on 09 Jan 2009, 03:35 PM
What was the outcome on this problem?

I have a similar issue where the column widths are lost on an Ajaxified grid that is set up for in-line editing.

The column widths for all columns are set to a fixed width declaratively in the ASPX page, however when an in-line edit is cancelled in the UpdateCommand event I am losing the column width for the majority of my columns.
0
Iana Tsolova
Telerik team
answered on 10 Jan 2009, 08:10 AM
Hello Rob,

Could you please send us the problematic page? Thus I could have a better look into your grid and scenario and try finding what could have cause the issue in your case.

Thank you for your cooperation in advance.

Sincerely yours,
Iana
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
Warnestam
Top achievements
Rank 1
Answers by
Warnestam
Top achievements
Rank 1
Iana Tsolova
Telerik team
Rob
Top achievements
Rank 1
Share this question
or