Hi,
In a data-bound select list, which uses an integer id for the value, the displayed value is 0 when the user has not selected a value yet.
Is it possible to force display of a blank when the value is zero?
I don’t want to have to add {id:0, display:“”} records to all my bound data tables to handle this situation.
I was hoping I could manually add {id:0, display:“”} to each select list that needs one, and then data-bind also.
In the .NET world they call it “append databound items”.
Thanks,
Mike
SmartClient Version: SC_SNAPSHOT-2011-01-05/LGPL Deployment (built 2011-01-05)
Hi,
The new web site looks great.
Any ideas on this question?
Thanks,
Mike
Is is possible to do this type of combo of databound select options and manual ones?
If not, what do you suggest for handling the following situation:
For example, I have a Rush code table used for the select list:
ID
1 - Five Day rush
2 - Two Day rush
3 - Overnight
But the customer’s order has a 0 in the rush field initially. So a 0 is displayed in the select list, when really, I want a blank to show instead. Or “Please select”.
When I write my own html, I can add a few hard-coded options before reading data, to handle the 0 case.
But I’m not sure how to do it in SmartClient.
Any thoughts would be appreciated.
Thanks,
Mike
Hi,
Any suggestions?
SC 8.0 is now deployed in our production system, so I’m hoping to take care of these items.
Thanks,
Mike
Mike, we jump in when we can, but if you’re worried about a production system, you should really buy commercial support.