Where is OnDataRequesting?

2 posts, 0 answers
  1. Kyle
    Kyle avatar
    7 posts
    Member since:
    Apr 2012

    Posted 12 Aug 2014 Link to this post

    This demo page: http://demos.telerik.com/aspnet-ajax/searchbox/examples/programming/serverevents/defaultcs.aspx
    shows that the RadSearchBox has a server event called OnDataRequesting. However, I do not ever see that event fire in the event log on the demo page. Also, I do not see that event in the version of the RadSearchBox control I have (2014.1.225.40).  I have found no demos that refer to that event.
    Using the demo page and Fiddler, I see that when I type in a character, there IS a postback but no event is raised so I need to use Init or Load to capture it.

    I expected that there would be an event similar to the ItemsRequested event in the RadComboBox which is working fine for me (but I want something a little more 'searchy' and the RadSearchBox looked good).

    So, questions:

    1. Is there supposed to be an OnDataRequesting server event in the RadSearchBox?
    2. If so, is it supposed to behave similarly to the ItemsRequested event in the RadComboBox? I.e. it fires when a character is typed into the text box.
    3. I have already looked at the version history and have seen no mention of this. Has something changed in this area since version 2014.1.225.40?
    4. The RadComboBox makes it easy to provide paged results. Is this possible using the RadSearchBox?
    5. The RadComboBox automatically highlights the matched texts. Is this possible using the Rad SearchBox?

    Thanks.


  2. Dimitar Terziev
    Admin
    Dimitar Terziev avatar
    1266 posts

    Posted 14 Aug 2014 Link to this post

    Hi Kyle,

    There is a typo in the demo description, the event is OnDataSourceSelect and not OnDataRequesting. The reason why it is not logged in the console is caused by an omission in the demo code, it is fired correctly. You could find more information about it here. As a token of gratitude for reporting problems with our demo your Telerik points are updated.

    Regards,
    Dimitar Terziev
    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