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" >
    <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 ?
  2. Nencho
    Admin
    Nencho avatar
    1458 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:

    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.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top