Search the Community
Showing results for tags 'tfgcollectionview'.
-
Hi I need TfgCollectionView to respond to onTapItem event and OnTap. I am using view to display list of items. In OnTapItem event I reload view with different items. I wanted to add behavior when user taps on empty space after items. I thought OnTap would be right place but it is not firing. I tried to move to OnTouch but still no luck. Only event that is fired os OnTapItem. I have attached sample whow it works. Is it possible to fire both events Regards Michał Project2.zip
-
Нужно ли после удаления айтема из списка, который связан с CollectionView и выполнения NotifyItemsRemoved для CollectionView еще и вызывать ReloadItems? Вопрос вызван тем, что после удаления не могу выделить какой-то другой айтем для выделения (SelectionMode = SingleSelect), т.к. выделение перескакивает ровно на одну позицию вниз. Если после NotifyItemsRemoved вызываю ReloadItems, то всё выделяется правильно. Пока не могу понять где баг - у меня или в библиотеке?
-
Hi All, i'm testing tfgCollectionView with this rest resource : http://jsonplaceholder.typicode.com/photos In this test my CollectionView Style has 1 fgImage and 1 fgLabel. I get the RestResouce with a TRESTRequest.ExecuteAsync and it works perfectly. When i've the ExecuteAsync CallBack i parse the JSON output string and i fill my Photos collection (TList). I do this step with a separate Task because i've 5000 items ( more or less). When i link data to the CollectionView i call fgCollectionViewGetItemCount and fgCollectionView1BindItem. If i bind only the fgLabel all works
-
Hi All, I'm trying to use a tfgSearchEdit with a tfgCollectionView. I'm searching the better way to set the focus to the CollectionViewitem that match my search value. There is a demo that explain this management ? I've seen that i can fill the SearchEdit.Suggestions with the CollectionViewItems field otherwise i can do a binarysearch in the Tlist<> that is linked to the CollectionView but i've to sort the list. Can you suggest a best practise for that ? Thanks a lot, Luca.
-
Если после открытия формы с CollectionView делаю быстрое пролистывание, приложение схлопывается. При медленном пролистывании не повторяется. Лог с ошибкой прилагаю. Телефон Mi9. Версия 1.1.6.2 Поставил TThread.Sleep(100); в подгрузку данных, проблема не повторяется. logcat.zip
-
В ближайшем релизе FGX Native 1.1.4.0 появится расширение возможностей TfgCollectionView. Речь идет о перетаскивании элементов списка для ручного упорядочивания элементов. video_2020-03-27_04-16-58.mp4 Для того, чтобы воспользоваться новым функционалом нужно: 1. Определить, за какой компонент элемента можно будет выполнять перетаскивание элемента. Например, можно использовать TfgImage с общепринятой иконкой перетаскивания элементов. 2. Указать для такого компонента стиля имя через LookupName. 3. Указать в настройках TfgCollectionView имя компонента из пункт