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

Problem with onclientselectedindexchanged

1 Answer 53 Views
This is a migrated thread and some comments may be shown as answers.
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" >
<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" />

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
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:

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.


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.

Asked by
Top achievements
Rank 1
Answers by
Telerik team
Share this question