getDataTop
array getData()
Get data of the item
Show/Hide Code
<script type="text/javascript">
function foo()
{
//Get the text data of first item in combobox
var oItem = kac.getItem(kac.getItemIds()[0]);
alert(oItem.getData()["text"]);
}
</script>
Supported from version: 1.0.0.0
enableTop
void enable()
Set whether the item is enabled
Show/Hide Code
<script type="text/javascript">
function foo()
{
var oItem = kac.getItem(kac.getItemIds()[0]);
//Disable the item
oItem.enable(false);
}
</script>
Supported from version: 1.0.0.0
isEnabledTop
bool isEnabled()
Return true if the item is enabled
Show/Hide Code
<script type="text/javascript">
function foo()
{
var oItem = kac.getItem(kac.getItemIds()[0]);
//Check if the item is disabled
if(!oItem.isEnabled())
{
alert("This item is disabled");
}
}
</script>
Supported from version: 1.0.0.0
setVisibleTop
void setVisible()
Set the visibility of an item
Show/Hide Code
<script type="text/javascript">
function foo()
{
//Get the text data of first item in combobox
//Make the item invisible
oItem.setVisible(false);
}
</script>
Supported from version: 1.0.0.0
selectTop
void select()
Make the item selected
Show/Hide Code
<script type="text/javascript">
function foo()
{
//Select the first item of combobox
var oItem = kac.getItem(kac.getItemIds()[0]);
oItem.select();
}
</script>
Supported from version: 1.0.0.0