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

Opens and resizes

5 Answers 94 Views
Window
This is a migrated thread and some comments may be shown as answers.
Mike
Top achievements
Rank 1
Mike asked on 22 Jul 2008, 06:52 PM
I have the following code to open a radWindow

        <telerik:RadWindowManager ID="RadWindowManager1" runat="server" Skin="Vista">  
            <Windows> 
                <telerik:RadWindow Skin="Vista" ID="RadWindowComment" runat="server" Title="Comment" Height="580px" Width="800px" Left="150px" ReloadOnShow="true" Modal="true" /> 
            </Windows> 
        </telerik:RadWindowManager>       

However when I click on the link to open the window it opens just fine, then resizes to wider window.

I have three small dropdownlist in the radWindow and they have a set width that is smaller than the 200px I have for the window.

What could cause this?

5 Answers, 1 is accepted

Sort by
0
Sean
Top achievements
Rank 2
answered on 22 Jul 2008, 10:49 PM
<telerik:RadWindowManager ID="RadWindowManager1" runat="server" VisibleStatusbar="false" EnableEmbeddedBaseStylesheet=false > 
        <Windows> 
            <telerik:RadWindow ID="refViewer" Title="Gallery Image List" Height="700px" Width="800px" 
                runat="server" Animation="None" Modal="false" Left="50px" ShowContentDuringLoad="true" > 
            </telerik:RadWindow> 
                         <telerik:RadWindow ID="galViewer" Title="Gallery Image List" Height="700px" Width="800px" 
                runat="server" Animation="None" Left="900px" > 
                </telerik:RadWindow> 
             <telerik:RadWindow ID="imageViewer" Title="Gallery Image" Height="700px" Width="700px" 
                runat="server" Animation="None" Left="900px" > 
                </telerik:RadWindow> 
        </Windows> 
    </telerik:RadWindowManager> 

In the above, I have two rad windows. One is a gallery of images, the other a blow up of a selected image. In my javascript call, if I mistype the name of the window to open, it has varied effects.

I am not sure how your window call occurs, but here is mine:
 function ShowForm(site,windowName) {  
        window.radopen(site, windowName);  
        return false;  
    } 

If I pass in a wrong name, it will have undesired effects. I had the experience that where I only had one window on the page, the manager would open the window, but it was a small window- even though it was set to 700x900.

Anyway, check the name being passed to ensure. You never know.

Sean
0
Mike
Top achievements
Rank 1
answered on 23 Jul 2008, 12:35 PM
This is what I have
function ShowStatusForm(id,company,rs,supplier,option,rowIndex)  
 {  
  var grid = $find("<%= RadGrid1.ClientID %>");                        
  var rowControl = grid.get_masterTableView().get_dataItems()[rowIndex].get_element();   
  grid.get_masterTableView().selectItem(rowControl, true);                            
  window.radopen("Status.aspx?ID=" + id + "&company=" + company + "&option=" + option , "RadWindowStatus");  
  return false;   
 } 

<telerik:RadWindowManager ID="RadWindowManager1" runat="server" Skin="Vista">  
    <Windows> 
       <telerik:RadWindow Skin="Vista" ID="RadWindowComment" runat="server" Title="Comment" Height="580px" Width="800px" Left="150px" ReloadOnShow="true" Modal="true" /> 
       <telerik:RadWindow Skin="Vista" ID="RadWindowStatus" runat="server" Title="Status" Height="300px" Width="250px" Left="150px" ReloadOnShow="true" Modal="true" /> 
    </Windows> 
</telerik:RadWindowManager>       
0
Mike
Top achievements
Rank 1
answered on 23 Jul 2008, 12:35 PM
This is what I have
function ShowStatusForm(id,company,rs,supplier,option,rowIndex)  
 {  
  var grid = $find("<%= RadGrid1.ClientID %>");                        
  var rowControl = grid.get_masterTableView().get_dataItems()[rowIndex].get_element();   
  grid.get_masterTableView().selectItem(rowControl, true);                            
  window.radopen("Status.aspx?ID=" + id + "&company=" + company + "&option=" + option , "RadWindowStatus");  
  return false;   
 } 

<telerik:RadWindowManager ID="RadWindowManager1" runat="server" Skin="Vista">  
    <Windows> 
       <telerik:RadWindow Skin="Vista" ID="RadWindowComment" runat="server" Title="Comment" Height="580px" Width="800px" Left="150px" ReloadOnShow="true" Modal="true" /> 
       <telerik:RadWindow Skin="Vista" ID="RadWindowStatus" runat="server" Title="Status" Height="300px" Width="250px" Left="150px" ReloadOnShow="true" Modal="true" /> 
    </Windows> 
</telerik:RadWindowManager>       
0
Accepted
Sean
Top achievements
Rank 2
answered on 23 Jul 2008, 02:33 PM
Hi George,

I would have to see your full aspx page to understand why you need to access the MastertableView (it does not look like you are using it here), but that is just for my own curiosity. I assume you are creating a select event at the same time you are opeing the window?

Anyway, what about your title bar? Is it setting correctly? I know that I currently have an issue with a RadWindow where my title gets overridden by a title block I have on the page. The title is actually longer than my window setting, so it expands the window to fit the title..:)

Not sure if that is suppsed to happen or not, but it caused me fits for a few minutes. Other than that, unless there is something strange happening with the browser you are using, I am not really sure. I have oyur code and i am creating a dummy project to see if I get the same event.

Sean
0
Mike
Top achievements
Rank 1
answered on 24 Jul 2008, 08:30 PM
Here is my MasterTableView and client settings
<MasterTableView DataKeyNames="ID" AllowMultiColumnSorting="True" Width="100%">  
 <Columns> 
   <telerik:GridBoundColumn DataField="Name" HeaderText="User" HeaderButtonType="TextButton" HeaderStyle-Width="100" ItemStyle-HorizontalAlign="Left" SortExpression="Name" /> 
   <telerik:GridBoundColumn DataField="DateAdded" HeaderText="Date Added" HeaderButtonType="TextButton" HeaderStyle-Width="75" ItemStyle-HorizontalAlign="center" SortExpression="DateAdded" /> 
   <telerik:GridTemplateColumn HeaderStyle-Width="50" HeaderStyle-HorizontalAlign="Center" HeaderText="Admin" ItemStyle-HorizontalAlign="Center" UniqueName="TemplateEditColumn">  
      <ItemTemplate> 
         <asp:ImageButton ID="ImageButton1" ImageUrl="~/images/email.gif" Height="13" runat="server" /> 
         <asp:ImageButton ID="ImageButton2" ImageUrl="~/images/edit.gif" runat="server" /> 
      </ItemTemplate> 
    </telerik:GridTemplateColumn>    
  </Columns>                              
</MasterTableView>                      
              
<ClientSettings AllowColumnsReorder="True" AllowDragToGroup="True" ReorderColumnsOnClient="True" AllowRowHide="True">  
  <Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="True"></Scrolling> 
     <Resizing AllowColumnResize="True" AllowRowResize="False" EnableRealTimeResize="True" ResizeGridOnColumnResize="True"></Resizing> 
     <Selecting AllowRowSelect="True"></Selecting> 
</ClientSettings> 
<SortingSettings SortedBackColor="LightYellow" /> 
Tags
Window
Asked by
Mike
Top achievements
Rank 1
Answers by
Sean
Top achievements
Rank 2
Mike
Top achievements
Rank 1
Share this question
or