RadSlider in RadGrid PopUp

3 posts, 0 answers
  1. Pete
    Pete avatar
    25 posts
    Member since:
    Jun 2008

    Posted 03 Oct 2008 Link to this post

    Hi,

    I placed a couple of RadSliders to the RadGrid's popup edit window and now I have a problem with sliders when scrolling the popup's content. All the other content scrolls as they should but RadSlider does not scroll at all. Do I have to redraw radsliders somehow or what can I do to fix this one?

    Thanks
  2. Tsvetie
    Admin
    Tsvetie avatar
    1517 posts

    Posted 03 Oct 2008 Link to this post

    Hello Pete,
    The RadSlider uses position=ralative. That is why in order to get it to scroll with the rest of the content as you expect it to, you have to apply "position:relative" to the element that displays scrollbars.

    For example, if it is the EditForm of the grid that displays scrollbars you can do the following:
    1. Define the following class in the HEAD of your page:
      <head runat="server">  
          <title>Untitled Page</title> 
          <style type="text/css">  
          .ContentClass  
          {  
              position: relative;  
          }  
          </style> 
      </head> 
    2. Apply the class to the DIV, holding the content of the EditForm:
      protected void RAdGrid1_ItemCreated(object sender, GridItemEventArgs e)  
      {  
          if (e.Item is GridEditFormItem && e.Item.IsInEditMode)  
          {  
              ((e.Item as GridEditFormItem).Cells[1].Controls[0].Controls[1] as WebControl).CssClass = "ContentClass";  
          }  
    Best wishes,
    Tsvetie
    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
  4. Pete
    Pete avatar
    25 posts
    Member since:
    Jun 2008

    Posted 05 Oct 2008 Link to this post

    Yep, that was it. Thanks!
Back to Top