Jump to content


Photo

Mobile TUinmSelect - Filter Shown Items ?

Select

  • Please log in to reply
5 replies to this topic

#1 andyhill

andyhill

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 346 posts
  • LocationMelbourne Australia

Posted 04 February 2018 - 08:15 AM

I have 2 TUnimSelects, the first acts as a Parent (holds about 10 items) to the second one acts as the Child to the Parent and holds about 100 items (averaging 10 items per Parent Item).

 

Based on the Parent's ItemIndex I want to Filter the Child Items that are shown to the user.

 

I see Select Enter and Exit Events but see no Item Visibility property. We obviously would need an Item TagID in order to filter against.

 

Please advise how one would go about this (I do not want to delete and add items on each Parent change, I would prefer to Hide/Show items) ? Thanks


  • 0

Andy


#2 Delphi Developer

Delphi Developer

    Advanced Member

  • Moderators
  • 4969 posts

Posted 04 February 2018 - 11:04 AM

Hi,

 

I do not want to delete and add items on each Parent change...

 

Excuse me, why this decision does not suit you ?!


  • 0

#3 andyhill

andyhill

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 346 posts
  • LocationMelbourne Australia

Posted 04 February 2018 - 08:02 PM

For a busy website there will be too many DB fetches when there is no need to, it could have been loaded once and then filtered - this will be so much faster with less bandwidth.


  • 0

Andy


#4 Delphi Developer

Delphi Developer

    Advanced Member

  • Moderators
  • 4969 posts

Posted 05 February 2018 - 10:55 AM

Hi,

 

We obviously would need an Item TagID in order to filter against.

 

Have you achieved this ?!


  • 0

#5 andyhill

andyhill

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 346 posts
  • LocationMelbourne Australia

Posted 06 February 2018 - 08:21 AM

No, at present I am Deleting and Adding on Change Event.


  • 0

Andy


#6 Delphi Developer

Delphi Developer

    Advanced Member

  • Moderators
  • 4969 posts

Posted 06 February 2018 - 09:52 AM

it could have been loaded once and then filtered

 

Ok, we will try to make a simple testcase (a workaround)


  • 0





Also tagged with one or more of these keywords: Select

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users