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

How is the rotator used in raeal AJAX scenarios?

1 Answer 95 Views
Rotator
This is a migrated thread and some comments may be shown as answers.
Marc
Top achievements
Rank 1
Marc asked on 27 Jan 2009, 11:39 PM
I am building a small web site in which I was hoping to put a scrolling bar at the top using the rotator.
It would scroll from right to left thru all the registered users on the site.

however I notice that since I have defined a simple template in the rotetor, the rotator renders the entire template FOR EACH AND EVERY USER right in the page.

It seems to me that this couold get ugly if me site would get any popularity as this would render that same template each time

1 million users = 1 million template ( times ? number of bytes)

is there another way of doing this? AJAX perhaps?


this is what it renders foir each user:
<li class="radr_item" style="height:75px;"><div id="ctl00_UserProfilePhotoStrip1_RadRotator1_i22">
        
               
          
                
                      <div id="ctl00_UserProfilePhotoStrip1_RadRotator1_i22_panAvatar" class="UserPhotoStripPan" style="background-color:#CC66FF;border-color:#00CC00;border-width:2px;border-style:Outset;height:66px;width:90px;">
         
                        
                          <div id="ctl00_UserProfilePhotoStrip1_RadRotator1_i22_Panel4">
          
                       
                    
                       <small><span id="ctl00_UserProfilePhotoStrip1_RadRotator1_i22_Label1" class="UserPhotoStripUserName" style="font-size:XX-Small;font-weight:bold;">SampleEditor</span></small>
                          
         </div>
                          <div id="ctl00_UserProfilePhotoStrip1_RadRotator1_i22_Panel2">
          
                         
               <table border="0" cellpadding="0" cellspacing="0" class="photo-frame">
                                    <tr>
                                        <td class="topx--"></td>
                                        <td class="top-x-"></td>
                                        <td class="top--x"></td>
                                    </tr>
                                    <tr>
                                        <td class="midx--"></td>
                                        <td>
                                            <img id="ctl00_UserProfilePhotoStrip1_RadRotator1_i22_Image1" src="images/ProfilePictures/SampleEditor/OriginalPic/cutie.jpg" style="width:25px;border-width:0px;" />
                                         <td class="mid--x"></td>
                                    </tr>
                                    <tr>
                                        <td class="botx--"></td>
                                        <td class="bot-x-"></td>
                                        <td class="bot--x"></td>
                                    </tr>
                                </table>
                               
         </div>
                              
             
        </div>
                 
       </div></li>

1 Answer, 1 is accepted

Sort by
0
Fiko
Telerik team
answered on 28 Jan 2009, 01:37 PM
Hello Marc,

The RadRotator control is designed to load its content before it is started and in current version of the control you cannot control this behavior. We plan to implement an "on demand" data binding functionality but this will happen in the future. For the time being you can check the attached workaround that can be applied only when you databind programatically.

I hope this helps.

Best wishes,
Fiko
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Rotator
Asked by
Marc
Top achievements
Rank 1
Answers by
Fiko
Telerik team
Share this question
or