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

RadSlider in RadGrid PopUp

2 Answers 100 Views
Slider
This is a migrated thread and some comments may be shown as answers.
Pete
Top achievements
Rank 1
Pete asked on 03 Oct 2008, 10:42 AM
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 Answers, 1 is accepted

Sort by
0
Tsvetie
Telerik team
answered on 03 Oct 2008, 01:21 PM
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.
0
Pete
Top achievements
Rank 1
answered on 05 Oct 2008, 08:03 AM
Yep, that was it. Thanks!
Tags
Slider
Asked by
Pete
Top achievements
Rank 1
Answers by
Tsvetie
Telerik team
Pete
Top achievements
Rank 1
Share this question
or