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

Fixed Column Width

3 Answers 107 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.
Meerkat
Top achievements
Rank 1
Meerkat asked on 12 Jan 2011, 01:51 PM
Hello,
I have looked in the all the documentation and Googled but still cannot find out how to fix a column width.
This is obviously such a basic requirement that it must be really obvious how to do it but for some reason I am struggling.
In a nutshell, what I am asking is how do I force a column to have a fixed width and have the rest re-sizable;
@(Html.Telerik().Grid(Model.Articles)
    .Name("Grid")
    .Columns(columns =>
      {
      columns.Template(....).Title("PDF").Width(60);
      columns.Bound("Title");
      columns.Bound("Author");
      })
      .DetailView(view => view.Template(...))
      .Pageable()
      .Sortable()
      .Resizable(resizing => resizing.Columns(true))
       )

Also and perhaps even more importantly, how do I prevent the ability to drag things like titles, selected text etc. when using Firefox or Chrome (IE is OK). I have attached a picture in the hope it helps explain what I mean although it is possible to do the same thing with your demos.
I am really hoping you are not going to say something like these are bugs but they will be fixed sometime next year with a bit of luck :-)
Many thanks in anticipation.

3 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 12 Jan 2011, 03:07 PM
Hi Meerkat,

 I cannot understand the fixed column question. Do you want to disable resizing a specific column? If yes I am afraid this is currently not supported. If resizing is enabled all columns can resized.

 I think dragging of text is default browser behavior specific to FireFox and Chrome and is related with text selection and copy-paste. For example you can drag arbitrary text into an input field (e.g. the address bar) and it will be copied there. We are not doing anything to prevent this default behavior as it would break the browser usability.

Regards,
Atanas Korchev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Meerkat
Top achievements
Rank 1
answered on 12 Jan 2011, 05:36 PM
Hello Atanas

Thanks for the quick reply explaining that the drag problem is some wierd Firefox feature beyond your control.

Do you by any chance happen to know if the ability to fix a column width is likely to be included in the near future?

Many Thanks.
0
Accepted
Atanas Korchev
Telerik team
answered on 13 Jan 2011, 09:46 AM
Hello Meerkat,

 We won't be able to implement this request any time soon. I have logged it for further consideration by the team and I have also updated your Telerik points.

Regards,
Atanas Korchev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Grid
Asked by
Meerkat
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Meerkat
Top achievements
Rank 1
Share this question
or