get_textTop
string get_text()
Get text of the item.
Show/Hide Code
<script type="text/javascript">
function foo()
{
var item = listbox.get_item(3);
alert(item.get_text());
}
</script>
Supported from version: 1.0.0.0
get_valueTop
string get_value()
Get value of the item.
Show/Hide Code
<script type="text/javascript">
function foo()
{
var item = listbox.get_item(3);
alert(item.get_value());
}
</script>
Supported from version: 1.0.0.0
get_indexTop
int get_index()
Get index/position of the item.
Show/Hide Code
<script type="text/javascript">
function foo()
{
var item = listbox.get_item(3);
alert(item.get_index());//Return 3
}
</script>
Supported from version: 1.0.0.0
get_dataTop
array get_data()
Get data of the item.
Show/Hide Code
<script type="text/javascript">
function foo()
{
var item = listbox.get_item(3);
var item_data = item.get_data();
alert(item_data["mydata"]);//Suppose you added a datum called mydata into item at server-side.
}
</script>
Supported from version: 1.0.0.0
enableTop
void enable()
Enable an item.
Show/Hide Code
<script type="text/javascript">
function foo()
{
var item = listbox.get_item(3);
item.enable();
}
</script>
Supported from version: 1.0.0.0
disableTop
void disable()
Disable an item.
Show/Hide Code
<script type="text/javascript">
function foo()
{
var item = listbox.get_item(3);
item.disable();
}
</script>
Supported from version: 1.0.0.0
selectTop
void select()
Make item selected.
Show/Hide Code
<script type="text/javascript">
function foo()
{
var item = listbox.get_item(3);
item.select();
}
</script>
Supported from version: 1.0.0.0
unselectTop
void unselect()
If item is selected, then the function will unselect this item.
Show/Hide Code
<script type="text/javascript">
function foo()
{
var item = listbox.get_item(3);
item.unselect();
}
</script>
Supported from version: 1.0.0.0
checkTop
void check()
Make item checked.
Show/Hide Code
<script type="text/javascript">
function foo()
{
var item = listbox.get_item(3);
item.check();
}
</script>
Supported from version: 1.0.0.0
uncheckTop
void uncheck()
Make item unchecked.
Show/Hide Code
<script type="text/javascript">
function foo()
{
var item = listbox.get_item(3);
item.uncheck();
}
</script>
Supported from version: 1.0.0.0
set_activeTop
void set_active(bool _bool)
Set whether item is active.
Show/Hide Code
<script type="text/javascript">
function foo()
{
var item = listbox.get_item(3);
item.set_active(true);
}
</script>
Supported from version: 1.0.0.0
set_selectedTop
void set_selected(bool _bool)
Set whether item is selected.
Show/Hide Code
<script type="text/javascript">
function foo()
{
var item = listbox.get_item(3);
item.set_selected(true);
}
</script>
Supported from version: 1.0.0.0
set_enabledTop
void set_enabled(bool _bool)
Set whether item is enabled.
Show/Hide Code
<script type="text/javascript">
function foo()
{
var item = listbox.get_item(3);
item.set_enabled(false);
}
</script>
Supported from version: 1.0.0.0
set_checkedTop
void set_checked(bool _bool)
Set whether item is checked.
Show/Hide Code
<script type="text/javascript">
function foo()
{
var item = listbox.get_item(3);
item.set_checked(true);
}
</script>
Supported from version: 1.0.0.0
set_checkableTop
void set_checkable(bool _bool)
Set whether item is checkable.
Show/Hide Code
<script type="text/javascript">
function foo()
{
var item = listbox.get_item(3);
item.set_checkable(true);
}
</script>
Supported from version: 1.0.0.0
set_imageurlTop
void set_imageurl(string image_url)
Set image url for item.
Show/Hide Code
<script type="text/javascript">
function foo()
{
var item = listbox.get_item(3);
item.set_imageurl("image/canada.jpg");
}
</script>
Supported from version: 1.0.0.0
set_textTop
void set_text(string text)
Set text for item.
Show/Hide Code
<script type="text/javascript">
function foo()
{
var item = listbox.get_item(3);
item.set_text("Brazil");
}
</script>
Supported from version: 1.0.0.0
set_valueTop
void set_value(string text)
Set value for item.
Show/Hide Code
<script type="text/javascript">
function foo()
{
var item = listbox.get_item(3);
item.set_value("brazil");
}
</script>
Supported from version: 1.0.0.0
set_dataTop
void set_data(array data)
Set data for item.
Show/Hide Code
<script type="text/javascript">
function foo()
{
var item = listbox.get_item(3);
var data = item.get_data();
data["MyData"] = "My value";
item.set_data(data);
}
</script>
Supported from version: 1.0.0.0
get_selectedTop
bool get_selected()
Get whether the item is selected.
Show/Hide Code
<script type="text/javascript">
function foo()
{
var item = listbox.get_item(3);
alert(item.get_selected());
}
</script>
Supported from version: 1.0.0.0
get_checkedTop
bool get_checked()
Get whether the item is checked.
Show/Hide Code
<script type="text/javascript">
function foo()
{
var item = listbox.get_item(3);
alert(item.get_selected());
}
</script>
Supported from version: 1.0.0.0
get_imageurlTop
string get_imageurl()
Get image url of the item.
Show/Hide Code
<script type="text/javascript">
function foo()
{
var item = listbox.get_item(3);
alert(item.get_imageurl());
}
</script>
Supported from version: 1.0.0.0
get_elementTop
bool get_element()
Get the html element of item.
Show/Hide Code
<script type="text/javascript">
function foo()
{
var item = listbox.get_item(3);
var _item_li_html = item.get_element();
_item_li_html.style.fontSize = "13px";
}
</script>
Supported from version: 1.0.0.0
get_enabledTop
bool get_enabled()
Get whether the item is enabled.
Show/Hide Code
<script type="text/javascript">
function foo()
{
var item = listbox.get_item(3);
alert(item.get_enabled());
}
</script>
Supported from version: 1.0.0.0