Problem with onclientselectedindexchanged

2 posts, 0 answers
  1. Hans
    Hans avatar
    15 posts
    Member since:
    Oct 2007

    Posted 21 Nov 2014 Link to this post

    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 ?
  2. Nencho
    Nencho avatar
    1661 posts

    Posted 26 Nov 2014 Link to this post

    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.

Back to Top