The Marionette CollectionView displays a Backbone collection object by rendering each objects through the specified childView View object.
Questions tagged [collectionview]
1294 questions
0
votes
0 answers
Unable to set collection view cells to selected when screen first loads
I basically have a collection view with the days of the week, that is set based on a global array. In cellForRowAtIndexPath, the cell will be colored if it is selected in the array. Otherwise it will not be colored. When that cell is selected, it…

Sampath Duddu
- 277
- 1
- 5
- 14
0
votes
0 answers
Animating Cards into a CollectionView from outside the collectionView?
I'm writing a card game for iOS/AppleTV, I have all the cards and other logics pretty much there. But I am stuck when it comes to displaying cards on the screen.
The cards need to be lined up one after the other; so I figure a collection view is the…

zardon
- 1,601
- 4
- 23
- 46
0
votes
2 answers
Making JointJs & Backbone/Marionette work with collections (HTML items inside)
Let me know if you can help me out somehow, i'm kind of struggling to get my head around.
Starting with some Marionette application logics:
app.js
//basic setup
this.Graph = new joint.dia.Graph;
this.Paper = new joint.dia.Paper({ width: 640, height:…

Tom Siwik
- 992
- 9
- 22
0
votes
2 answers
UICollectionViewCell subclass outlet not connected
I'm trying to implement a very basic collection view with a cell subclass that's been designed in IB. A screenshot may better explain the issue that I'm seeing, but basically the image view I've added to my cell in IB does not show up as a subview…

neal
- 557
- 2
- 9
0
votes
1 answer
Collection view shows cells as selected at scrolling that haven't been selected
In my CollectionView I want the user to select cells. If a cell is selected, an image should appear and the label should disappear. The User should also be able do deselect the cell again and then selecting it again (the selecting after deselecting…

maidi
- 3,219
- 6
- 27
- 55
0
votes
2 answers
PrepareForReuse in CollectionViewCell
I want to hide the label in a cell that was tapped and instead show an image. But I want to do this only if a cell with a certain index has already been set to the imageView.
What is the best way to address the cells and store if they are set to…

maidi
- 3,219
- 6
- 27
- 55
0
votes
1 answer
Identify unique CollectionViewCells
I want each CollectionViewCell to show an image and hide a label if it is tapped. But if the user scrolls the image suddenly is displayed in other cess that haven't been touched. How can I identify certain cells?
override func…

maidi
- 3,219
- 6
- 27
- 55
0
votes
1 answer
How to load more data in collectionviewcontroller
I had a little problem which is I can't properly reload a new data in collectionview whilst scrolling down at the bottom of collectionviewcontroller. The problem I had starting at this code if (indexPath.row == [selectedVideoData count] - 1). Below…

Mohamad Afiq
- 275
- 1
- 5
- 14
0
votes
4 answers
Button tag changing automatically
I have a collectionViewCell with a button I want to add a function to (like/unlike function) If user has liked the post the post tag should be set to 1,(color changed to blue) if user unlike the button tag it reset back to 0.(color changed to white)…

et moi
- 127
- 1
- 1
- 9
0
votes
1 answer
Marionette.js collection is undefined in collection view
I am fairly new with Marionette.js and seem to be having some trouble rendering a Collection View.
I am receiving the following console error message when trying to show the view: Uncaught TypeError: Cannot read property 'toJSON' of undefined.
It…

user2232681
- 839
- 4
- 16
- 33
0
votes
2 answers
Adding item to ObservableCollection and make it selected in its bound ListCollectionView
I have a ViewModel with an ObservableCollection, and a View using a Xaml-declared CollectionViewSource, which is bound to a DataGrid.ItemsSource.
The ViewModel has a command to create a new object and add it to the ObservableCollection. Also in the…

heltonbiker
- 26,657
- 28
- 137
- 252
0
votes
1 answer
How to implement clean paging of collectionview where it scrolls to full page
I have a collectionview with a grid of cells that is 3 wide by 3 tall. I have paging enabled to scroll horizontally to see the next page of 9 cells. However, I don't have a full 9 cells for the last page, only 3 remaining cells. The paging only…

tahoecoop
- 378
- 2
- 9
- 30
0
votes
0 answers
collectionView scrolling not smooth in iOS9
I have noticed that the scrolling of the collectionView in my app is very 'choppy' when running on iOS9. I have taken away all items in the collectionView and left only a textView and nothing else and the scroll is still very choppy. There are no…

alionthego
- 8,508
- 9
- 52
- 125
0
votes
1 answer
UICollectionView scroll-to-top animation not working properly
I am using this code to scroll my UICollectionView to the top:
CGPointMake(0, -self.collectionView.contentInset.top) animated:YES];
It does what its supposed to, but the problem is that the cells disappear during scrolling (or better yet, the ones…

andrejbroncek
- 421
- 5
- 17
0
votes
2 answers
UICollection View cell images are changing while scrolling horizontally
I am using array of url's for images to load in collection view. Images are changing while scrolling the collection view. How to fix this issue?
- (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView…
user3588604