YSOD in radwindow when loading page and moving it down

7 posts, 0 answers
  1. G S S
    G S S avatar
    85 posts
    Member since:
    Mar 2008

    Posted 21 Apr 2009 Link to this post

    Problem 1:


    When I fire my site, the content section of one RAD Window throws a YSOD. Now the homepage uses 3 radwindows with content from other local files. 


    Image is here: http://img4.imageshack.us/img4/5599/newpicture2e.png



    Markup:



    <html xmlns="http://www.w3.org/1999/xhtml">
    <head id="Head1" runat="server">
    <title></title>
    </head>
    <body>

    <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" Height="201px" 
    Width="760px">
    <br />
    <br />
    <telerik:RadComboBox ID="RadComboBox1" Runat="server" AutoPostBack="True" 
    Height="16px" onselectedindexchanged="RadComboBox1_SelectedIndexChanged" 
    Skin="Black">
    <Items>
    <telerik:RadComboBoxItem runat="server" Text="Please select a value" 
    Value="Please select a value" />
    <telerik:RadComboBoxItem runat="server" Text="Books" Value="Books" />
    </Items>
    </telerik:RadComboBox>
    <br />
    <telerik:RadComboBox ID="RadComboBox2" Runat="server" Skin="Black" 
    onselectedindexchanged="RadComboBox2_SelectedIndexChanged" Width="160px">
    </telerik:RadComboBox>

    <br />
    <br />

    <telerik:RadGrid ID="RadGrid1" runat="server" AllowFilteringByColumn="True" 
    AllowPaging="True" AllowSorting="True" GridLines="None" ShowGroupPanel="True" 
    Skin="Black">
    <ClientSettings AllowDragToGroup="True">
    </ClientSettings>
    </telerik:RadGrid>
    </telerik:RadAjaxPanel>


    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
    ConnectionString="<%$ ConnectionStrings:playgroundsConnectionString %>" 

    SelectCommand="SELECT [Title], [ImagePath], [Thoughts], [Category] FROM [ReadingList]">
    </asp:SqlDataSource>
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />


    </body>
    </html>

    Obivously, it must be the SqlDatasource causing the problems but I can't see anything wrong with this?


    Also (2), how can I move this RAD Window down? The div is somewhere in the middle right of the page, but the height has been modified and is going right to the top of the window.

    Both of these questions relate to the same RADWindow instance on my webpage.

    Thanks

  2. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 22 Apr 2009 Link to this post

    Hi G,

    To fix the error that you get in the content page, I suggest to wrap the controls that you are using in a form tag with runat=server. You will also need to use RadScriptManager / asp:scriptmanager controls.

    As for the second question, there is a moveTo() client-side method that will allow you to position the window wherever you want it on the page. More information about RadWindow's client-side API is available in the documentation, section Controls / Window / Programming.



    All the best,
    Georgi Tunev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. G S S
    G S S avatar
    85 posts
    Member since:
    Mar 2008

    Posted 22 Apr 2009 Link to this post

    Hi,

    Thanks for that. I add the form tag in but when I run the site, on the RADWindow which is throwing the bug, I now get a YSOD asking for me to put the RADScriptManager in the form tag. So I do this, but then I when I run my site, the webpage which was causing the error (called activities, added to a RADWindow on Default) keeps loading. Default is my standard start page. When I go to the Default page, none of the three RADWindows show up (visible and visibleonpageload set to true for all).

    EDIT: All fixed but got 2 strange errors with the other controls. :) Where is an example of using moveTo to set the position of my RADWindow? I am assuming this is the client side method which will sort out the positioning. What parameters does it take?

    Thanks

  5. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 24 Apr 2009 Link to this post

    Hi G,

    The moveTo() method accepts 2 integers as arguments - the X and Y coordinates (in pixels) of the top left corner of the RadWindow.
    e.g.
    function openWin() 
        var oWnd = radopen("http://www.google.com""RadWindow1");  
        oWnd.moveTo(50,200);  

    will draw RadWindow 50 pixels from the left and 200 pixels from the top of the browser's window (screenshot attached).


    Best wishes,
    Georgi Tunev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  6. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 24 Apr 2009 Link to this post

    Just a quick follow-up.

    If you still experience problems, it will be best to open a support ticket and send me a small sample project where I could reproduce them. I will check it and get back to you.



    All the best,
    Georgi Tunev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  7. Badrinarayanan
    Badrinarayanan avatar
    21 posts
    Member since:
    Apr 2008

    Posted 02 Sep 2009 Link to this post

    Hi,
    We have recently upgraded to "RadControls for ASP.NET AJAX Q2 2009" .  But after upgrading it, we found that the Height and Width that we set for RAD Window is not taking effect.  It always defaults to 200 * 200.  We are forced to keep the resize option on to see the full window. 
    Also when I drag to resize, I could see that RAD Menu is overlapping the RAD Window.

    Do help us with a solution for these issues.

    Thanks
    Badri




  8. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 03 Sep 2009 Link to this post

    Hello,

    To be able to help we need to have a better view over your exact setup. Please open a support ticket and send us a small sample project where this issue could be reproduced - we will check it right away.


    Sincerely yours,
    Georgi Tunev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017