deselect dataprovider (list)

Forum to discuss the Web client version of Servoy.

deselect dataprovider (list)

Postby m.moest » Thu May 01, 2014 2:34 pm

Hi,

I have made a list (view property is set on 'list view') that is connected to a dataprovider backed by a datasource. But that list has always a record selected. Is it possible to deselect a record, so that nothing is selected in the list?
m.moest
 
Posts: 5
Joined: Fri Feb 08, 2013 8:22 pm

Re: deselect dataprovider (list)

Postby Harjo » Thu May 01, 2014 9:57 pm

I had the same issue today and asked Johan about it. You can, t have a foundset without a selection. I worked around it by setting a special odd even selected CSS with background: #ffffff
Harjo Kompagnie
ServoyCamp
Servoy Certified Developer
Servoy Valued Professional
SAN Developer
Harjo
 
Posts: 4321
Joined: Fri Apr 25, 2003 11:42 pm
Location: DEN HAM OV, The Netherlands

Re: deselect dataprovider (list)

Postby mboegem » Thu May 01, 2014 10:51 pm

I've used Harjo's workaround in the past. Works well.
To achieve this I used a variable, that was set in order to recognise the '0-selected record' situation.
Based on this variable you can set your odd/even/selected situation differently.

Whenever the user is triggering the onRecordSelect, you can unflag your variable and show the selected colour again.
Marc Boegem
Solutiative / JBS Group, Partner
• Servoy Certified Developer
• Servoy Valued Professional
• Freelance Developer

Image

Partner of Tower - The most powerful Git client for Mac and Windows
User avatar
mboegem
 
Posts: 1743
Joined: Sun Oct 14, 2007 1:34 pm
Location: Amsterdam


Return to Servoy Web Client

Who is online

Users browsing this forum: No registered users and 5 guests

cron