Questions tagged [tableview]

A table view is a means for displaying and editing hierarchical lists of information. For example: UITableView in Cocoa Touch.

7929 questions
13
votes
5 answers

Swipe to delete on a tableView that is inside a pageViewController

I've got a tableView inside of a pageViewController and when swiping on a cell to bring up the option to delete the cell the gesture is only recognized under certain circumstances, say you swiped very quickly and aggressively. I imagine this is…
13
votes
4 answers

JavaFX 2: How to focus a table row programmatically?

I am trying to select/focus a row of a TableView programmatically. I can select a row, but it is not getting rendered as focused (not highlighted). I have tried many combinations of the code below, but nothing seems to work. …
brnzn
  • 175
  • 1
  • 1
  • 5
13
votes
3 answers

Javafx tableview not showing data in all columns

OK, new to java by several weeks, but have been programming for 30 years. The following code executes, but only the first column is showing anything. The data object is showing multiple rows of data, with fields of data that are filled in. I'm…
kmitchell.dev
  • 133
  • 1
  • 1
  • 6
13
votes
3 answers

Updating TableView row appearance

I'm having some dificulties to change the appearance of some TableView rows. The line should show the text with a stroke and in red. Actually, I can show it in red color but still can't do the stroke. This is the css class I'm using to change the…
brevleq
  • 2,081
  • 10
  • 53
  • 97
13
votes
3 answers

Xcode tableview how to select ONE row in EACH section

I have a tableview with 2 sections. I want only one row to be selected per each section. Right now I have it working to select one row, but it is for the entire table. Ultimately, I want 2 rows selected, but only ONE per SECTION. I have been stuck…
mablecable
  • 385
  • 1
  • 6
  • 15
13
votes
3 answers

JavaFX TableView copy to clipboard

Is it possible to allow a user to select rows and copy from a TableView?
DD.
  • 21,498
  • 52
  • 157
  • 246
12
votes
4 answers

iOS 11 Floating TableView Header

Have an app going with multiple sections, a few rows per section when "expanded", none when "collapsed". Each section has a section header, was reusing them using a subclass of UITableViewHeaderFooterView etc. So far so good. Then in iOS 11: I've…
VDub19
  • 131
  • 1
  • 1
  • 4
12
votes
4 answers

How to add image to row action in Table View?

How to add custom image to delete button when swiping cell from right on UITableview as shown in the below image? func tableView(tableView: UITableView, editActionsForRowAtIndexPath indexPath: NSIndexPath) -> [UITableViewRowAction]? { let…
kumar
  • 481
  • 3
  • 7
  • 18
12
votes
3 answers

Are PostgreSQL VIEWS created newly each time they are queried against?

I am creating a web app which has some complex underlying associations. In order to solve several issues I was having I created a UNION View. There are probably a lot of other ways this could be solved. But I am now considering the efficiency of my…
Oscar
  • 3,218
  • 2
  • 26
  • 26
12
votes
3 answers

How do I disable column sorting in JavaFX TableView

I have noticed that sorting by column headers in the JavaFX TableView class is turned on by default. In my case I need to have a table view that does not allow sorting by any of the columns. Does anyone know how to do this?
user3461443
  • 221
  • 1
  • 3
  • 6
12
votes
7 answers

JavaFX TableView how to get cell's data?

I'm using that method to get whole object. tableView.getSelectionModel().getSelectedItem() How can I get data from single cell? I mean like get S20BJ9DZ300266 as String?
sashaaero
  • 2,618
  • 5
  • 23
  • 41
12
votes
2 answers

How to only override a method depending on the runtime system iOS version?

I've implemented automatic dynamic tableview cell heights for iOS 8 by using self.tableView.rowHeight = UITableViewAutomaticDimension; For pre-iOS 8, which does not support automatic dynamic cell heights, I overrided the heightForRowAtIndexPath…
amirfl
  • 1,634
  • 2
  • 18
  • 34
12
votes
2 answers

How can I add rows and columns to a JavaFX 8 TableView

I see examples on the internet for adding a row to a TableView, for example using the Person class in the Oracle documentation. But I have a variable number of columns, so I can't bind to a Person (or any other) bean business object. The Oracle…
Victor Grazi
  • 15,563
  • 14
  • 61
  • 94
12
votes
4 answers

problems with animation when deleting the last row of a TableView in ios7

I'm having some issues when deleting the last row of my (only) section in my tableView. Any other row works fine, but if I delete the row at the bottom of my tableView at any time (not just when its the last one left) the animation is very strange…
Stonep123
  • 615
  • 3
  • 9
  • 24
12
votes
5 answers

JavaFX, how to freeze the position of some columns in TableView

The idea is: on a TableView of N columns to have the first M columns always visible even when you use the horizontal scroller. The only thing near my requirement is this Binding two tableviews together such that they scroll in sync. The idea to…
Luca
  • 227
  • 1
  • 3
  • 12