SlectedIndexChanged not firing

3 posts, 0 answers
  1. CSurieux
    CSurieux avatar
    465 posts
    Member since:
    Jan 2007

    Posted 28 May 2008 Link to this post


    Using a code similar to the TreeView in RadComboBox, setting the combo to AutopostBack, I am unable to Ajaxify the RadComboBox...because the RadComboBox wait a click in the browser window after selecting a treeview node before starting the postback.

    I would appreciate a workaround for this, thanks for help.

  2. CSurieux
    CSurieux avatar
    465 posts
    Member since:
    Jan 2007

    Posted 28 May 2008 Link to this post


    I tried this
    function nodeClicking(sender, args)
                var comboBox = $find('RadComboBox1');
                var node = args.get_node()
                var items=comboBox.get_items();
                var itm=items.getItem(0);
                var comboItem = new Telerik.Web.UI.RadComboBoxItem();
    I get a postback but an exception
    [NullReferenceException: La référence d'objet n'est pas définie à une instance d'un objet.]
       Telerik.Web.UI.ControlItem.LoadFromDictionary(IDictionary`2 dictionary) +165
       Telerik.Web.UI.ClientStateLogPlayer.Insert(ClientStateLogEntry entry, ControlItemCollection items, Int32 index) +168
       Telerik.Web.UI.ClientStateLogPlayer.Play(ClientStateLogEntry entry) +222
       Telerik.Web.UI.ClientStateLogPlayer.Play(IEnumerable`1 clientStateLogEntry) +94
       Telerik.Web.UI.RadComboBox.LoadClientState(RadComboBoxClientState clientState) +102
       Telerik.Web.UI.RadComboBox.LoadPostData(String postDataKey, NameValueCollection postCollection) +282
       Telerik.Web.UI.RadDataBoundControl.System.Web.UI.IPostBackDataHandler.LoadPostData(String postDataKey, NameValueCollection postCollection) +36
       System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) +661
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1194

    Shouldn't it work ?

  3. DevCraft R3 2016 release webinar banner
  4. Veselin Vasilev
    Veselin Vasilev avatar
    2992 posts

    Posted 30 May 2008 Link to this post

    Hello Christian Surieux,

    Please make sure that the tree nodes have Text and Value properties set. I've managed to reproduce the problem when the clicked node did not have a Value set (since you are using comboItem.set_value(node.get_value());)

    I hope this helps.

    All the best,
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top