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

ComboBox SelectedIndexChanged Event problem

4 Answers 147 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
vairam
Top achievements
Rank 1
vairam asked on 30 Dec 2008, 09:44 AM
Hi

I am having Employee combo,Date picker,Button with in Ajax panel.
Both employee name,Date are require fields.
If the user chage the Employee in combo or click the Button both having the same function loading the Employee detail grid. 
so i have given the causesvalidation property="True" for both button,Combo.If date is empty i select the employee its giving the error message "InvalidDate".then i gave the date and click the button .First the combo's SelectedIndexChanged Event is firing then button click event is firing.So LOADGIRD function calling dwice.Why both event's are firing at this time?

Thanks
Vairam

4 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 1
answered on 30 Dec 2008, 11:24 AM
Hi Vairam,

I found the following forum link which discusses a similar issue. Go through it and see if it helps.
RadComboBox SelectedIndexChanged fired incorrectly

Shinu
0
vairam
Top achievements
Rank 1
answered on 30 Dec 2008, 01:01 PM
Hi

I have installed telerik version 
Telerik.Web.UI-2008.1.415.20 .This  is the corrcet version or i need to upgrade the version.
If i need to upgrade means from where can i download the latest version.Because still i am having the same problem.
I tried this but i get combo is undifined javascript error

<script language="javascript" type="text/javascript">  
        function OnClientSelectedIndexChanging(item)  
        {  
            if (item.Text == item.ComboBox.GetText())  
            {  
                return false;  
            }             
        }  
</script>   
<radC:RadComboBox  
    ID="RadComboBox1" 
    runat="server" 
    OnClientSelectedIndexChanging="OnClientSelectedIndexChanging">  
    ...  
</radC:RadComboBox> 

Thanks
Vairam

0
Yana
Telerik team
answered on 30 Dec 2008, 02:13 PM
Hello Vairam,

The latest official version of RadControls is 2008.3.1125, you can download it from your Client.Net account.
The provided code is for RadComboBox for ASP.NET, not for RadComboBox for ASP.NET AJAX, so which one exactly are you using?

You can check this help article about "combo is undefined" error.
 
Best wishes,
Yana
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
vairam
Top achievements
Rank 1
answered on 31 Dec 2008, 05:35 AM
Hi

I am using RadComboBox for ASP.NET AJAX.And i dont want to upgradfe the version now.Can you give me the solution for this version Telerik.Web.UI-2008.1.415.20.I dont want to fire the combo selectedIndexchanged event when i click the button.

Thanks
Vairam
Tags
ComboBox
Asked by
vairam
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 1
vairam
Top achievements
Rank 1
Yana
Telerik team
Share this question
or