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

RadTreeView In RadWindow, It's Bug?

6 Answers 140 Views
Window
This is a migrated thread and some comments may be shown as answers.
Nick Wu
Top achievements
Rank 1
Nick Wu asked on 13 Apr 2010, 01:06 PM
I put RadTreeView In RadWindow,  code blow:

RadTreeView:
          <telerik:RadTreeView ID="rtvRules" runat="server"   Height="240px"  Width="250px"  />
RadWindow:
          <telerik:RadWindow ID="rwDetail" runat="server" Behaviors="Close, Pin, Move"  Modal="true" Width="300px"
                    Height="350px"  VisibleStatusbar="False" >

I get data from database and fill this treeview, then  expand nodes .  Now The window show vertical scroll bar.
(btw, I use the window loading a page , the treeview is in the page .)
I put the treeview in div .
<div style="overflow:hidden;width: 260px; height: 250px; />

but The window still show vertical scroll bar.

why? pls help me.
                                                                                                        

6 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 13 Apr 2010, 03:04 PM

Hi Nick,

Have you tried setting AutoSize property of the RadWindow to True?

Also try adding the following style in the page that is loaded in RadWindow in order to hide the scrollbars and see whether it helps.

CSS:

 
<style type="text/css">     
    HTML     
    {     
        overflow-x: hidden;     
    }     
</style>   

-Shinu.

0
Nick Wu
Top achievements
Rank 1
answered on 14 Apr 2010, 12:57 AM
Thanks ,Shinu.

The Window  works perfectly with the css you suggest.
0
Nick Wu
Top achievements
Rank 1
answered on 28 Apr 2010, 11:41 AM
sorry ,Unmark this answer.

because I found the problem is not caused by RadTreeview or RadWindow, but RadFormDecorator  .

I use RadFormDecorator in the page, and the  "CheckBoxes" attribute of RadTreeView  is true.
(btw ,  the nodes are static, not generate from any methods. I use client script to expand all nodes of the tree  )
When I expand the tree, and scroll the tree to bottom , then check the lastest node  to see what happened.
if  I add that  style  in the page ,  then the page disappear. if not , the page scroll up.

when I remove the RadFormDecorator, all works ok no matter of that style be used or not.
In other pages , I use RadTreeView without CheckBoxes attribute, all works ok.

Now, Is something error When use RadTreeView(CheckBoxes="true")  and RadFormDecorator together .

(I use 2010 Q1, and I test some skin ----Vista/Windows7/Office2007 )
0
Georgi Tunev
Telerik team
answered on 29 Apr 2010, 12:54 PM
Hi Nick,

This could happen in some scenarios because of the way RadFormDecorator styles checkboxes. When RadFormDecorator is used, the real checkboxes are hidden outside of the viewport. When the decorated checkbox is clicked however, browsers try to focus the real checkbox, hence the "jumping". To avoid that, you should set position:relative to the parent container.

If you still experience problems after that, I strongly recommend to open a support ticket and to send us a small sample page where this issue could be reproduced. This way we could get a better view over your setup and provide you with the most appropriate solution for it.


All the best,
Georgi Tunev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Aruna
Top achievements
Rank 1
answered on 21 Aug 2011, 02:36 AM
Hi Telerik team

when i tried to run your combo box selenium test cases , I am getting error in 
the very first getEval statement

ie

getEval  window.mycombo = frames['myiframe'].window.RadComboBox1;

i am getting the error as" iframes undefined"

i am running directly from your website

please help me


0
Marin Bratanov
Telerik team
answered on 23 Aug 2011, 08:45 AM
Hello Aruna,

Accessing the window object of an iframe should go through its contentWindow property first and I believe the following links on properly accessing an iframe would be helpful in your coding:
http://www.dyn-web.com/tutorials/iframes/
http://xkr.us/articles/dom/iframe-document/

http://www.google.com/search?&q=access+an+iframe



Greetings,
Marin
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Tags
Window
Asked by
Nick Wu
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Nick Wu
Top achievements
Rank 1
Georgi Tunev
Telerik team
Aruna
Top achievements
Rank 1
Marin Bratanov
Telerik team
Share this question
or