This is a migrated thread and some comments may be shown as answers.

RadcomboBox Attrribute

1 Answer 43 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Azhar
Top achievements
Rank 1
Azhar asked on 16 Jul 2010, 04:14 PM
I want add some attribute to RadcomboBox but it is not render on clientside .
Like if i add onclick,onchange attribute to radcomboBox this attribute not render .
my second problem is how to set clientsidesevent on server like onclientBlur,onclientSelectedIndexChanged .......

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 19 Jul 2010, 06:53 AM
Hello Azhar,


You can add the client events to RadComboBox as shown below.

C#:

RadComboBox1.OnClientSelectedIndexChanged =
"OnClientSelectedIndexChanged";

Client code:
<script type="text/javascript">
    function OnClientSelectedIndexChanged(sender, args) {
        // alert Selected Item
        alert(args.get_item().get_text());   
    }
</script>


-Shinu.
Tags
ComboBox
Asked by
Azhar
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or