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

[Solved] Scrollable Grid and Width problem

1 Answer 42 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Paul
Top achievements
Rank 1
Paul asked on 14 Jun 2011, 01:46 PM
Hi,

I've just run into the problem of the "Scrollable" grid and the mis-aligned columns.

This only seems to happen when you set a "width" value on all of the columns as I'm sure you are aware.
Is there *any* way to work around this bug ?

It seems to be fine if we can add a column without a specified width value. Is there any way to achieve a blank & empty column in order to achieve this ? Sort of like a : -

 

 

1 Answer, 1 is accepted

Sort by
0
Paul
Top achievements
Rank 1
answered on 14 Jun 2011, 01:58 PM
I can't get the code snippet working... I was thinking along these lines: -

.Columns(columns =>

{

columns.Bound(D => D.FieldOne).Width(15).Filterable(

false);

 

 

columns.Bound(D => D.FieldTwo).Width(120);

 

columns.Command(commands =>

 

    {

 

    commands.Edit().ButtonType(type);

 

    commands.Delete().ButtonType(type);

 

    }).Title(

"Commands").Width(350);

 

 

    
    // This next line causes the empty column and takes up the remaining space... Any way to do something like this?
    columns.Bound(

string.Empty); 

 

 

})

Tags
Grid
Asked by
Paul
Top achievements
Rank 1
Answers by
Paul
Top achievements
Rank 1
Share this question
or