How is the rotator used in raeal AJAX scenarios?

2 posts, 0 answers
  1. Marc
    Marc avatar
    21 posts
    Member since:
    Nov 2008

    Posted 27 Jan 2009 Link to this post

    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>
  2. Fiko
    Admin
    Fiko avatar
    1406 posts

    Posted 28 Jan 2009 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top