1. SmartClient Version: v12.0p_2018-09-15/Pro Deployment (built 2018-09-15)
2. Build identifier: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Firefox/31.0
3. N/A
4. N/A
5. N/A
6. Code follows
User need:
Resize a picklist both vertically and/or horizontally
What I tried:
I took the following code from the show case -> https://www.smartclient.com/smartcli...comboBoxStyled
and added the property canDragResize : true to the pickListProperties.
I expected the pick list to become resizable but the it does not work.
Does a ComboBoxItem support "canDragResize" property on the PickList autochild?
From the documentation, a ComboBoxItem will display a PickListMenu autochild which does have the "canDragResize" property
2. Build identifier: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Firefox/31.0
3. N/A
4. N/A
5. N/A
6. Code follows
User need:
Resize a picklist both vertically and/or horizontally
What I tried:
I took the following code from the show case -> https://www.smartclient.com/smartcli...comboBoxStyled
and added the property canDragResize : true to the pickListProperties.
I expected the pick list to become resizable but the it does not work.
Does a ComboBoxItem support "canDragResize" property on the PickList autochild?
From the documentation, a ComboBoxItem will display a PickListMenu autochild which does have the "canDragResize" property
Code:
isc.DynamicForm.create({
ID: "testForm",
width: 500,
items: [{
name: "itemName", title: "Item Name", editorType: "ComboBoxItem", valueField: "itemID",
addUnknownValues: false,
optionDataSource: "supplyItem",
width: 250,
pickListCellHeight: 50,
pickListProperties: {
canHover: true,
[B]canDragResize : true,[/B]
showHover: true,
cellHoverHTML : function (record) {
return record.description ? record.description : "[no description]";
},
formatCellValue : function (value, record, field, viewer) {
var descStr = record.description ? record.description : "[no descripton]";
var styleStr = "font-family:arial;font-size:11px;white-space:nowrap;overflow:hidden;";
var retStr = "<table>" +
"<tr><td ><span style='" + styleStr + "width:170px;float:left'>" + record.itemName + "<span></td>" +
"<td align='right'><span style='" + styleStr + "width:50px;float:right;font-weight:bold'>" + record.unitCost + "<span></td></tr>" +
"<tr><td colSpan=2><span style='" + styleStr + "width:220px;float:left'>" + descStr + "</span></td></tr></table>";
return retStr;
}
}
}]
Comment