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

[Solved] Headers mis-aligned

1 Answer 65 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.
paulo larini
Top achievements
Rank 1
paulo larini asked on 01 Aug 2011, 02:06 PM
Hi, I'm trying to fix the width of the first column of my grid to 80px. So, I'm using the "Scrollable" option:

    @(Html.Telerik().Grid(Model)
        .Name("Grid")
        .DataKeys(keys => keys.Add(c => c.Handle))        
        .DataBinding(dataBinding => dataBinding
            .Ajax()
            .Select("AjaxPesquisar", "Especialidade")
            .Update("AjaxAtualizar", "Especialidade")
            .Delete("AjaxDelete", "Especialidade"))
        .HtmlAttributes(new { @class = "grid-padrao" })
        .ClientEvents(events => events
            .OnDataBound("atualizarCss")
        )
        .Columns(columns =>
        {
            columns.Template(@<span>@Html.EditActions(item.Handle.ToString())</span>)
            .ClientTemplate("<span>" + Html.EditActions("<#=Handle#>").ToHtmlString() + "</span>")
            .Width(76).Title("Comandos");
 
            columns.Bound("Descricao").Title("Descrição").Width(500);
            columns.Bound("Handle").Title("Código");
             
        })       
        .Pageable()
        .Sortable()
        .Scrollable()
         
        )


The problem is that the headers are not aligned with the body. Please see image attached.

Thanks.

1 Answer, 1 is accepted

Sort by
0
paulo larini
Top achievements
Rank 1
answered on 01 Aug 2011, 03:16 PM
Sorry, the problem was a CSS class applied to this grid.

Thanks. 
Tags
Grid
Asked by
paulo larini
Top achievements
Rank 1
Answers by
paulo larini
Top achievements
Rank 1
Share this question
or