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

Problem with onclientselectedindexchanged

1 Answer 53 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Hans
Top achievements
Rank 1
Hans asked on 21 Nov 2014, 04:52 PM
Here's my code

<telerik:RadComboBox ID="objetList" runat="server" Skin="Office2010Blue" Width="160px" onclientselectedindexchanged="ModifierCookieObjet" >
<Items>
<telerik:RadComboBoxItem runat="server" Text="<%$ Resources:global,lblTitleFile %>"
Value="2" />
<telerik:RadComboBoxItem runat="server" Text="<%$ Resources:global,lblTitleFolder %>"
Value="3" />
<telerik:RadComboBoxItem runat="server" Text="<%$ Resources:global,lblTitleIMDFolder %>"
Value="13" />
<telerik:RadComboBoxItem runat="server" Text="<%$ Resources:global,lblTitleURL %>"
Value="5" />
<telerik:RadComboBoxItem runat="server" Text="<%$ Resources:global,lblTitlePhysicalFile %>"
Value="8" />
<telerik:RadComboBoxItem runat="server" Text="<%$ Resources:global,lblTitleEmail %>"
Value="11" />
</Items>
</telerik:RadComboBox>

Here's my javascript

function ModifierCookieObjet(sender, eventArgs) {
var tpsexpire = 1000 * 60 * 60 * 24 * 365;
var item = eventArgs.get_item();
fixervaleur("LastUsedObjet", item.get_value(), tpsexpire)
}

My problem is that eventArgs is always undefined. Do you know why ?

1 Answer, 1 is accepted

Sort by
0
Nencho
Telerik team
answered on 26 Nov 2014, 09:36 AM
Hello Hans,

I have performed some local tests, base on the provided code snippet and information, but the issue was not locally replicated. Below is a video, demonstrating the behavior at my end:

http://screencast.com/t/ZZ397QCAWxT

Please make sure that there are no javascript errors on your page, before performing any interaction on the RadComboBox. In addition, specify the browser under which the problem is encountered. Also, specify the version of our controls that you are currently using.

Regards,
Nencho
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
ComboBox
Asked by
Hans
Top achievements
Rank 1
Answers by
Nencho
Telerik team
Share this question
or