Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

Picker value css issue

$
0
0
Hi,
we currently have an issue on some pickers, the value displayed first is using the hint style ( grey and italic ).

the version we use is : SmartClient Version: v9.1p_2014-11-24/Pro Deployment (built 2014-11-24)
It's reproducable on every browser.

we re currently using Picker of type selectItem providing a datasource.
The thing is because our call takes 40ms, the picker already has his CSS style ( grey and italic ) meaning there is no value so far.
When the data arrives, it's updated with the value but the style remains.
If I put a break point in my console and just resume, the data arrives before the display and the CSS style is correct.

here is the setup with have for the picker :

ProfilePicker.addClassProperties
({

getSelectPickerFieldDefinition : function(properties)
{
var baseProperties =
{
autoFetchData : true,
name : 'profile',
title : MeiStrings.get('profile.picker.name'),
hint : MeiStrings.get('profile.picker.hint.name'),
showHintInField : true,
width : 250,
defaultToFirstOption : false,
optionDataSource : 'dsProfilePickerOptions',
editorType : 'SelectItem',
displayField : 'name',
sortField : 'name',
sortDirection : 'ascending',
valueField : 'primaryKey',
addUnknownValues : false,
validateOnExit : false,
pickListFields :
[
{ name : 'code', width : '30%', title : MeiStrings.get('profile.code') },
{ name : 'name', width : '70%', title : MeiStrings.get('profile.name') }
],
criteriaProperties : null,
getPickListFilterCriteria : function()
{
var criteria = this.Super('getPickListFilterCriteria', arguments);

if (!criteria)
criteria = {};

if (this.criteriaProperties)
criteria = isc.addProperties(criteria, this.criteriaProperties);

return criteria;
}
};

var fld = isc.addProperties(baseProperties, properties);
return fld;
}

});


My question is, Is there any way to say the component wait for the value before to create the component ?

Thanks for you help,
Bruno

Viewing all articles
Browse latest Browse all 4756

Trending Articles