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

YSOD in radwindow when loading page and moving it down

6 Answers 71 Views
Window
This is a migrated thread and some comments may be shown as answers.
G S S
Top achievements
Rank 1
G S S asked on 21 Apr 2009, 09:47 PM
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

6 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 22 Apr 2009, 10:17 AM
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.
0
G S S
Top achievements
Rank 1
answered on 22 Apr 2009, 08:31 PM

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

0
Georgi Tunev
Telerik team
answered on 24 Apr 2009, 10:47 AM
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.
0
Georgi Tunev
Telerik team
answered on 24 Apr 2009, 10:48 AM
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.
0
Badrinarayanan
Top achievements
Rank 1
answered on 02 Sep 2009, 11:05 AM
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




0
Georgi Tunev
Telerik team
answered on 03 Sep 2009, 11:38 AM
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.
Tags
Window
Asked by
G S S
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
G S S
Top achievements
Rank 1
Badrinarayanan
Top achievements
Rank 1
Share this question
or