Revision history [back]

click to hide/show revision 1
initial version

answered 2013-05-17 18:33:51 +0800

phdsong gravatar image phdsong

BTW,

I didn't create custom combobox. I am going to do it near future. But, I set code into value in my comboitem.

                    <combobox id="attributeDataType" width="150px" readonly="true"
                    model="@load(vm.dataType)" selectedItem="@load(vm.dataTypeCode) @save(vm.dataTypeCode)"
                    onAfterRender="@command('openCode', combo=attributeDataType, code=vm.element.dataType)">
                            <comboitem 

                        <template name="model">label="@load(each.label)" value="@load(each.code)"/>
                        </template>
                    </combobox>

BTW,

I didn't create custom combobox. I am going to do it near future. But, I set code into value in my comboitem.

                    <combobox id="attributeDataType" width="150px" readonly="true"
                    model="@load(vm.dataType)" selectedItem="@load(vm.dataTypeCode) @save(vm.dataTypeCode)"
                    onAfterRender="@command('openCode', combo=attributeDataType, code=vm.element.dataType)">

<template name="model"> <comboitem <template name="model">label="@load(each.label)" <="" p="">

                        label="@load(each.label)" value="@load(each.code)"/>
                        </template>
                    </combobox>

BTW,

I didn't create custom combobox. I am going to do it near future. But, I set code into value in my comboitem.

 <combobox id="attributeDataType" width="150px" readonly="true"
                     model="@load(vm.dataType)" selectedItem="@load(vm.dataTypeCode) @save(vm.dataTypeCode)"
                     onAfterRender="@command('openCode', combo=attributeDataType, code=vm.element.dataType)">

<template name="model"> <comboitem <="" p="">

                         label="@load(each.label)" value="@load(each.code)"/>
                         </template>
                     </combobox>

BTW,

I didn't create custom combobox. I am going to do it near future. But, This is my example. I set code into value in my comboitem. I planned to create custom combobox like your example near future. It would be appreciated if you can post your solution if this example helps.

<combobox id="attributeDataType" width="150px" readonly="true"
                        model="@load(vm.dataType)" selectedItem="@load(vm.dataTypeCode) @save(vm.dataTypeCode)"
                        onAfterRender="@command('openCode', combo=attributeDataType, code=vm.element.dataType)">
<template name="model">
                                <comboitem                          label="@load(each.label)" value="@load(each.code)"/>
                            </template>
                        </combobox>

This is my example. I set code into value in my comboitem. I planned to create custom combobox like your example near future. It would be appreciated if you can post your solution if this example helps.

<combobox id="attributeDataType" width="150px" readonly="true"
                        model="@load(vm.dataType)" selectedItem="@load(vm.dataTypeCode) @save(vm.dataTypeCode)"
                        onAfterRender="@command('openCode', combo=attributeDataType, code=vm.element.dataType)">
<template name="model">
         <comboitem  label="@load(each.label)" value="@load(each.code)"/>
                            </template>
                        </combobox>
Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More