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

dynamically updating a server control on server click event

3 Answers 21 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Elango
Top achievements
Rank 1
Elango asked on 04 Sep 2008, 02:57 AM
Hi,
       I have a scenario where i have a asp.net button which has a server click event. On click of that i will be parsing few folders and file structure and it will take bit time. Currenly my need is a way that which updates any of the asp.net control dynamically showing the user a status about the folder or file that is currently getting processed. To keep it simple assume there is a for loop which runs 2000 times and inside i print the counter value and this counter value has to be keep updated in a panel once the counter is incremented. something like this i require

processing ....1
processing ....2
processing ....3

..
..

processing ....2000

and finally it should exit. Currently the behaviour is once the click event returns it updates the value in my control visually. if i need the above requirement how to to do it using telerik ajax stuff. Please let me know if anything can help to satisfy my requirement.

Regards,
Elango

3 Answers, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 04 Sep 2008, 07:43 AM
Hi Elango,

General information about how to use RadAjax for ASP.NET AJAX in order to update parts of your page asynchronously you can gather from the online resources linked below:

http://demos.telerik.com/ASPNET/Prometheus/Ajax/Examples/Overview/DefaultCS.aspx
http://www.telerik.com/help/aspnet-ajax/ajx-how-it-works.html

Furthermore, I think that the discussion from the following public forum post will help you attain the functionality you are searching for (using it as a starting point for your development).

Best regards,
Stephen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Elango
Top achievements
Rank 1
answered on 12 Sep 2008, 10:54 PM
Sorry for my delayed response. The samples that you gave doesn't help me much and also the discussion thread is mainly with javascript. But my requirement is something from server side. If you have any solution please let me know.

Regards,
Elango
0
Sebastian
Telerik team
answered on 15 Sep 2008, 07:51 AM
Hello Elango,

Our RadAjax framework allows you to display loading panel while the actions on the server (processing of the folder structure in your case) take place, however a real-time indicator which reflects the progress and the remaining time is not included.

As an alternative you may consider using the ajax progress bar control referenced in this blog post. Since Mr. Matt Berseth built it as AJAX Toolkit extender over the ASP.NET AJAX framework, it should provide seamless interoperability with our ASP.NET AJAX controls.

Best regards,
Stephen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
General Discussions
Asked by
Elango
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Elango
Top achievements
Rank 1
Share this question
or