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

Dropdown grid example

$
0
0
Hello.
I'm trying to get optimal settings for me at example
http://smartclient.com/#dropdownGrid
And I noticed two things using this code in example:
Code:

isc.DynamicForm.create({
    ID:"exampleForm",
    width:300,
    fields: [
        {
            name:"itemID",
            type:"select",
            width:240,
            title:"Item",
            optionDataSource:"supplyItem",
            valueField:"SKU",
            displayField:"itemName",
            //pickListWidth:600,
            pickListProperties: {
                canResizeFields:true,
                showRowNumbers: true,
                autoFitFieldWidths: true//,
//                autoFitWidthApproach: "both"
            },
            pickListFields: [
                { name: "itemName" },
                { name: "units" },
                { name: "unitCost" }
            ]
        }
    ]
});

1) enabling showRowNumbers leads to small annoying changes of row height at selection (at least in Chrome)
2) if I enable autoFitWidthApproach: "both" grid size remains the same as if I use just autoFitFieldWidths: true, but horizontal scroll appears (it would be better to increase grid size I think).

At all I wouldn't want set grid size via pickListWidth, but let drop down grid get sized enough to show contents with column titles.

Viewing all articles
Browse latest Browse all 4756

Trending Articles