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

[Solved] RadCombox OnClientSelectedIndexChanged Oject doesnot support this property or method

1 Answer 95 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Lubna Ansari
Top achievements
Rank 1
Lubna Ansari asked on 08 Mar 2010, 11:16 AM
Hi ,
i'm using Client-side Insert/Update/Delete  Grid control. In add/edit tab I am using a combo box. Depending on the selection of combovalue I need to hide and show some rows. After page load when I try to change combobox value it gives me following error
"Object doesnot support this property or method".

Here is my code:


 

<telerik:RadComboBox ID="RcmbControlType" runat="server" Height="200px" Width="200px"

 

 

DropDownWidth="200px" EmptyMessage="Choose a Control" HighlightTemplatedItems="true"

 

 

DataSourceID="SqqlDSControlType" DataTextField="ControlName" DataValueField="ID" OnClientSelectedIndexChanged="OnClientSelectedIndexChanged()">

 

</telerik:RadComboBox>

 

function

 

OnClientSelectedIndexChanged(sender, args)

 

{

var item = eventArgs.get_item();

alert(item);

 

}


 

1 Answer, 1 is accepted

Sort by
0
Veselin Vasilev
Telerik team
answered on 09 Mar 2010, 12:57 PM
Hi Lubna Ansari,

Please remove the parenthesis when setting the OnClientSelectedIndexChanged event:

The correct one is: OnClientSelectedIndexChanged="OnClientSelectedIndexChanged"

Regards,
Veskoni
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
ComboBox
Asked by
Lubna Ansari
Top achievements
Rank 1
Answers by
Veselin Vasilev
Telerik team
Share this question
or