bind a rotator to results received from AJAX call

7 posts, 0 answers
  1. MOD MOD
    MOD MOD avatar
    13 posts
    Member since:
    Jan 2010

    Posted 09 Mar 2010 Link to this post

    Hi ,

    How is it possible on client side dynamically change rotator content ? 

    for example, when user clicks a button, I want to make an AJAX call to a web service ,and bind a results to rotator . 

    Thanks 
  2. Obi-Wan Kenobi
    Obi-Wan Kenobi  avatar
    460 posts
    Member since:
    Aug 2007

    Posted 11 Mar 2010 Link to this post

    The RadRotator for ASP.NET AJAX control doesn't support client-side binding.
    My suggestion is to add RadRotator in an UpdatePanel, get results from the WebService on the server and rebind the grid to the results on every ajax call.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. MOD MOD
    MOD MOD avatar
    13 posts
    Member since:
    Jan 2010

    Posted 11 Mar 2010 Link to this post

    Hi ,

    Can you help me with a sample ? 

    thanks in advance ! 
  5. Lini
    Admin
    Lini avatar
    2144 posts

    Posted 15 Mar 2010 Link to this post

    Hello,

    You can see a similar scenario in our Live XML rotator example - http://demos.telerik.com/aspnet-ajax/rotator/examples/livexml/defaultcs.aspx

    The rotator datasource is retrieved from a remote location - in this case a RSS feed, but it can be a web service request as well. The returned XML is used as data for the rotator. If your web service returns a different type of data (e.g. JSON), you will need to do some processing before you can feed it to the rotator.

    To prevent the whole page from updating when you wish to update the rotator, simply wrap it and the button in a ajax panel or use the RadAjaxManager control to ajaxify it.

    Best wishes,
    Lini
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  6. MOD MOD
    MOD MOD avatar
    13 posts
    Member since:
    Jan 2010

    Posted 16 Mar 2010 Link to this post

    what I need is to display attachment file  names . I have a page (similar to outlook) which contains a list of attachments . the number of files can be relatively big , about 10- 20 and I want to call a web service to get those names.
    Each time when a page opened I need to get a file name list and fill a rotator with them .

    Could you help me with a sample ? 

    thanks in advance .


  7. Pero
    Admin
    Pero avatar
    1156 posts

    Posted 19 Mar 2010 Link to this post

    Hi,

    I have implemented a project retrieves a string from a Web Service method, splits it into a string array and binds the array to a RadRotator control. The demo is attached to the thread.

    Kind regards,
    Pero
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  8. MOD MOD
    MOD MOD avatar
    13 posts
    Member since:
    Jan 2010

    Posted 20 Mar 2010 Link to this post

    Thanks for your replay .

    Is it possible to data bind on client side ? all my logic is on client side . 


     

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