Questions tagged [tablecolumn]

used to represent the column of the table.

It is used to represent the column of the table. The table can be from database,html or any other language.

281 questions
45
votes
7 answers

How do I autosize the column in SlickGrid?

I want slickgrid to autosize the columns based on the widest content or header text - whichever is wider. In simpler terms, I want it to simulate the default behavior of regular HTML tables when it comes to column sizing. How can I do it in…
PJ.
  • 1,196
  • 2
  • 12
  • 25
32
votes
4 answers

Auto resizing the JTable column widths

I need my JTable to automatically re-size its column widths to fit the content. I found the TableColumnAdjuster class very useful. But there's a small problem. Say i have 5 columns, and their content is very short. In that case, if i use the auto…
Sumudu
  • 5,705
  • 14
  • 49
  • 82
23
votes
4 answers

Slickgrid, column with a drop down select list?

Hi I was wondering if anyone knows if it's possible to define a column in slickgrid as being a drop down select list. If not does anyone with some experience with slickgrid know how I should go about adding this option? Thanks
Sam
  • 2,337
  • 2
  • 21
  • 25
16
votes
3 answers

SlickGrid Column Groups

Is there a way to add a column groupings? For example: Unit 1 | Unit 2 | Pre Mid Post | Pre Mid Post | --- --- ---- | --- --- ---- | 2 4 5 | 3 4 4 | 1 2 4 | 3 4 5 | Basically, I need a header row for Unit…
Varmint
  • 161
  • 1
  • 4
12
votes
1 answer

JavaFX: TableView: Arrow for a column sorted by default

I have a simple java fx application which has a table view. The table view shows some data that is sorted in a certain order. Is there a way to show the arrow(by default) indicating that the data has been sorted in that order? My code is…
Aspirant
  • 1,884
  • 2
  • 23
  • 43
11
votes
2 answers

How to adjust JTable columns to fit the longest content in column cells

I'm using answer https://stackoverflow.com/a/5820366 and http://tips4java.wordpress.com/2008/11/10/table-column-adjuster/ and it works, but frequently columns' sizes are too wide or too narrow. No matter filling my table with HTML or text. Using…
trickster77777
  • 1,108
  • 2
  • 18
  • 30
10
votes
1 answer

SlickGrid Columns - Difference between id and field

A simple question i cant workout. In a column definition whats the difference between the field property and the id property...Fx.. columns.push({ id: "officeId", name: "Office Id", field: "officeId", width: 40 }); When would they be different/why…
Tim
  • 3,136
  • 4
  • 36
  • 55
10
votes
1 answer

Make only certain columns editable in SlickGrid

I have a grid with multiple columns and I use the first column for a row label. I looked at the example for making the grid editable, but that appears to make the whole grid editable. Is there away to specify a certain column(s) only?
Alfawan
  • 282
  • 2
  • 10
10
votes
2 answers

cannot convert from String to ObservableValue

I'm making a program to manage and show data about airports, their flights and so on. The fact is that I have a tableView (in javafx) with several tableColumns, and I want to show some information (destiny, origin, company, etc) on each column so I…
JOSEMAFUEN
  • 614
  • 2
  • 12
  • 31
9
votes
1 answer

slick grid column (text-align)

Is there any way to align the header in a slick grid to center and the text in the columns to left? any css files need modification or something else? Please guide. var columns = [ { id: "colEmpId", name: 'Number', field: "EmpId", "unselectable":…
Premanshu
  • 606
  • 2
  • 13
  • 22
9
votes
2 answers

Prevent certain SlickGrid columns from being reordered

The drag/drop column reordering is a great feature, but how do I prevent the users from moving particular (non-data) columns? For example, I am using the Checkbox Selectors for my mutli-select Grid, but this column should always be locked to the…
Kevin
  • 541
  • 3
  • 6
  • 16
9
votes
3 answers

Automatically adjust Jtable Column to fit content

I am trying to match the JTable column width depending on the data inside. My Code: for(int column = 0; column < gui.testsuiteInfoTable.getColumnCount(); column ++){ int width =0; for (int row = 0; row <…
Hans En
  • 846
  • 5
  • 14
  • 30
9
votes
2 answers

could not set the column width to zero i.e. not made column invisible

I am trying to make one column from JTable, invisible by setting width to zero but it could not happen and it remain visible to width = 15. Here is code - public void restoreColumnWithWidth(int column, int width) { try { …
Ashish Pancholi
  • 4,249
  • 9
  • 43
  • 80
7
votes
6 answers

Make a column non-editable in a JTable

I created a MasterDetail Simple Form using Netbeans, and I have a JTable which is related to the database. I want to edit a column in this JTable to make it non-editable. I Googled about it and this all I can find…
Azer Rtyu
  • 319
  • 3
  • 9
  • 18
6
votes
1 answer

Accessing nested properties in JavaFx TableView / TableColumn

I havea TableView, and I access properties of the list's objects as follows. This works just fine.
Stealth Rabbi
  • 9,370
  • 17
  • 89
  • 161
1
2 3
18 19