RadComboBox OnClientItemDataBound event not firing

2 posts, 0 answers
  1. Sean
    Sean avatar
    51 posts
    Member since:
    May 2008

    Posted 08 Jul 2014 Link to this post

    Can someone post a complete example of Q2 2011 for making this work .... I have the other events working including OnClientSelectedIndexChanged, OnClientItemsRequesting, OnClientDropDownClosing

    My problem is the OnClientItemDataBound event does not seem to be firing ... I have a somewhat 'different' scenario in that the events are wired up in the code behind and the script as well so 

    so in the page load

    void Page_Load()
                mycombobox.OnClientItemDataBound = "mycombobox_OnClientItemDataBound"

    then register scripts looks like
    private void RegisterScripts()
          StringBuilder sb = new StringBuilder()
          sb.AppendLine("function mycombobox_OnClientItemDataBound(sender, args){console.log(sender);}")
          ScriptManager.RegisterStartupScript(Page, Page.GetType(), "name", sb.ToString(), true);

    the 'binding code looks like this'
    [item generation code]
    mycombobox.DataSource = items;

  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 09 Jul 2014 in reply to Sean Link to this post

    Hi Sean,

    The OnClientItemDataBound event will occur for each item that is created using webservice LoadOnDemand. Please make sure that you are binding RadComBoBox using webservice. Please take a look into this help documentation for further information.

  3. Telerik UI for ASP.NET Core is out
Back to Top