This is a migrated thread and some comments may be shown as answers.

bind a rotator to results received from AJAX call

6 Answers 81 Views
Rotator
This is a migrated thread and some comments may be shown as answers.
MOD MOD
Top achievements
Rank 1
MOD MOD asked on 09 Mar 2010, 08:51 AM
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 

6 Answers, 1 is accepted

Sort by
0
Obi-Wan Kenobi
Top achievements
Rank 1
answered on 11 Mar 2010, 11:56 AM
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.
0
MOD MOD
Top achievements
Rank 1
answered on 11 Mar 2010, 01:53 PM
Hi ,

Can you help me with a sample ? 

thanks in advance ! 
0
Lini
Telerik team
answered on 15 Mar 2010, 12:02 PM
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.
0
MOD MOD
Top achievements
Rank 1
answered on 16 Mar 2010, 09:29 AM
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 .


0
Pero
Telerik team
answered on 19 Mar 2010, 09:26 AM
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.
0
MOD MOD
Top achievements
Rank 1
answered on 20 Mar 2010, 07:33 PM
Thanks for your replay .

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


 

Tags
Rotator
Asked by
MOD MOD
Top achievements
Rank 1
Answers by
Obi-Wan Kenobi
Top achievements
Rank 1
MOD MOD
Top achievements
Rank 1
Lini
Telerik team
Pero
Telerik team
Share this question
or