locked
Telerik Radcombobox onclientselectedchange event is not firing on first time RRS feed

  • Question

  • User417741264 posted

    Telerik Radcombobox onclientselectedchange event is not firing on first time.plz help

    <telerik:radcombobox id="cmbTest" runat="server" Sort="none" MarkFirstMatch="False"
    ShowToggleImage="True" RadControlsDir="<%$ ReplaceTemplateExpn:telerik/radcontrols/%>" Skin="SkeltaCombobox" Width="55px" Height="60px"
    OnClientSelectedIndexChanged="Testing" AutoPostBack="false"><Items>
    <telerik:RadComboBoxItem runat="server" Text="RadComboBoxItem1" Selected="true" />
    <telerik:RadComboBoxItem runat="server" Text="RadComboBoxItem2" />
    <telerik:RadComboBoxItem runat="server" Text="RadComboBoxItem3" />
    </Items></telerik:radcombobox>

    <script type="text/javascript">

    function Testing(){

    alert('hi')

    }

    </script>

    Note: i am using older version of telerik control

    Thursday, May 15, 2014 5:49 AM

All replies

  • User-734925760 posted

    Hi,

    According to your code, you set AutoPostBack property to false, so if you only operate RadCombobox control, it will not do postback, so you need to add a postback in OnClientSelectedIndexChanged event. Please refer to change you code as below:

    function Testing(){
    
    alert('hi')
    _dopostback('RadComboBox1',''); }

    There is a similar thread, please refer to the link below:

    http://www.telerik.com/forums/selectedindexchanged-not-firing-on-first-time

    Hope it's useful for you.

    Best Regards,

    Michelle Ge

    Friday, May 16, 2014 2:04 AM