RadTreeView In RadWindow, It's Bug?

7 posts, 0 answers
  1. Nick Wu
    Nick Wu avatar
    22 posts
    Member since:
    Aug 2005

    Posted 13 Apr 2010 Link to this post

    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.
                                                                                                            
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 13 Apr 2010 Link to this post

    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.

  3. Nick Wu
    Nick Wu avatar
    22 posts
    Member since:
    Aug 2005

    Posted 13 Apr 2010 Link to this post

    Thanks ,Shinu.

    The Window  works perfectly with the css you suggest.
  4. Nick Wu
    Nick Wu avatar
    22 posts
    Member since:
    Aug 2005

    Posted 28 Apr 2010 Link to this post

    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 )
  5. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 29 Apr 2010 Link to this post

    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.
  6. Aruna
    Aruna avatar
    2 posts
    Member since:
    Aug 2011

    Posted 20 Aug 2011 Link to this post

    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


  7. Marin Bratanov
    Admin
    Marin Bratanov avatar
    4569 posts

    Posted 23 Aug 2011 Link to this post

    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 >>

Back to Top