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

Help Using RadAjaxManagerProxy

2 Answers 159 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
nhaydon
Top achievements
Rank 1
nhaydon asked on 01 Jun 2007, 04:20 PM
 Help, I have a user control (ProductList.ascx) made up of datalist and two hyperlinks (displaying "Previous page" and "Next page" respectively).  FYI, these hyperlinks are set dynamically.

The datalist is initially populated by 10 rows (each row has two cells each cell displays a product image and its corresponding description and "Add To Cart" button)

  This is what I want to accomplish:
   1. When "Next" or "Previous" link is pressed, the datalist should  be 
   refreshed with the next (or previous) 10 records without the flicker.

   2. Display the same set of records when the "Add To Cart" button is
       pressed without the flicker.

   3. How can I make the "Add Button" imbedded in the datalist to trigger 
       Ajax request.

  This is what I what I have done:
     1. I added the Script Manager to the master page.
     2. I added the RadAjaxManagerProxy to the user control
         (ProductList.ascx)
     3. I did not do anything in the container (ProductCatalog.aspx) 
         where the user control ProductList.ascx is being used.

   This is the way I set up the RadAjaxmanagerProxy:
    1. Controls that will initiate ajax request: "Previous" link, "Next" Link.
    2. Controls that need to be updated by Ajax: dataList and the labels 
         that display the number of records.
  
   Any input is appreciated.

   Shark
    
 

2 Answers, 1 is accepted

Sort by
0
Leon
Top achievements
Rank 1
answered on 02 Jun 2007, 07:18 AM
Hello,

You can configure the proxy control adding the DataList as ajaxified and updated control as well.

The other way to achieve your goal is to find each button on DataList population at the code-behind and add the necessary setting (Button -> controls to update) there. This article should help:

http://www.telerik.com/help/radcontrols/prometheus/ajxUserControls.html
0
tigershark
Top achievements
Rank 1
answered on 04 Jun 2007, 07:18 PM
Thank u very much Leon. I'll try it.
Tags
Ajax
Asked by
nhaydon
Top achievements
Rank 1
Answers by
Leon
Top achievements
Rank 1
tigershark
Top achievements
Rank 1
Share this question
or