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

RadGrid Column alignment

3 Answers 262 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Josh
Top achievements
Rank 1
Josh asked on 20 Oct 2008, 10:57 PM
Hi,
I have a radgrid with like 5 columns and one hidden column(index 1).

When a conflict occurs, I will show the hidden column + the "image" in the hidden column.

Problem.  I have like 4 columns with predefined width, like 100px each, and one column with undefined width.
Something like this:
<telerik:GridBoundColumn SortExpression="name" DataField="enrol_stage_name" HeaderText="stages" Reorderable="False" HeaderStyle-Width="100px" ItemStyle-Width="100px"/>

When I show the hidden column using RadGrid1.MasterTableView.showColumn(index); similar to that from http://demos.mcmscontrols.com/aspnet/Grid/Examples/Client/ClientSideAPI/DefaultCS.aspx
Note:RadGrid1.MasterTableView.ShowColumn(index) does not work with the Uppercase "S" as shown in the link above.
It will cause the predefined columns to resize its width, those 100px columns, where I was expecting it to only resize the one column without the width defined.  It looks ugly now, plz help.

Grid width is set to 100%.

Cheers

3 Answers, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 22 Oct 2008, 11:53 AM
Hi Josh,

Based on the supplied information, it is hard to troubleshoot the setup.
In order to further assist you, please open a formal support ticket, and send us a small working project, demonstrating the setup, as well as the issue. We will debug it locally, and get back to you with our findings.

Kind regards,
Yavor
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Josh
Top achievements
Rank 1
answered on 24 Oct 2008, 12:23 AM
I dont have time to create a project, but u can reproduce the thing I am talking about at http://demos.mcmscontrols.com/aspnet/Grid/Examples/Client/ClientSideAPI/DefaultCS.aspx

Just follow these steps:
1) Under "Column resizing", put in 4 in "Column Index" and 200 in "Column Width", click "resize column". ( I want Address column to be 200px wide)
2) Click on the "hide" column. (Notice how the 200px wide column applies to PostCode column now instead of the "Address" column I want?)

Cheers
0
Yavor
Telerik team
answered on 28 Oct 2008, 07:25 AM
Hello Josh,

I tested the control in the following example, since it is consistent with the version you have specified. The application behaved as expected.
Let me know what your findings are.

Sincerely,
Yavor
the Telerik team

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