Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
168 views
Dear Telerik,

We're facing a problem in Maximizing a RadWindow on Open from Javascript or with InitialBehaviors="Maximize"
from ASPX.

To reproduce the problem we created a small Default.aspx page like this:

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Default" %>
  
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  
<head runat="server">
    <title></title>
    <telerik:RadStyleSheetManager id="RadStyleSheetManager1" runat="server" />
</head>
<body>
    <form id="form1" runat="server">
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        </telerik:RadScriptManager>
        <script type="text/javascript">
            function showWindow() {
                var proWindow = $find('<%= xW.ClientID %>');
                proWindow.set_navigateUrl('http://www.telerik.com');
                proWindow.set_title('My Window Title');
                window.setTimeout(function () {
                    proWindow.show();
                    proWindow.setActive(true);
                }, 0);
                return false;
            }
        </script>
        <div>
            <telerik:RadWindowManager ID="wM"
                runat="server"
                Overlay="true"
                ReloadOnShow="false"
                VisibleStatusbar="false"
                VisibleOnPageLoad="false"
                ShowContentDuringLoad="false" >
                <Windows>
                    <telerik:RadWindow ID="xW" runat="server" 
                        VisibleTitlebar="true" EnableViewState="false" Behaviors="Move,Close,Maximize" ReloadOnShow="true" Modal="true" InitialBehaviors="Maximize" >
                    </telerik:RadWindow>
                </Windows>
            </telerik:RadWindowManager>
            <asp:LinkButton ID="btnShow" Text="Show Maximized Window" runat="server" OnClientClick="return showWindow();" /> 
        </div>
    </form>
</body>
</html>

When you open this page in IE9 and click on the Show Maximized Window Link, you see a page that is not maximized to the full height. But when you open it in Chrome, you see it Maximized.

We're using the latest published version as of today.

Attached please find the 2 Screen Shots under IE9 and Under Chrome.

Thanks, as Always

Salah A. Malaeb
TeknoBuild
Svetlina Anati
Telerik team
 answered on 13 May 2011
1 answer
136 views

Hi,

Is it possible to delete the file from the source folder after the file is uploaded?  For example, if I am uploading the file File1.txt from my local drive C:\Temp\File1.txt, how do I delete the file(File1.txt) from C:\Temp\ directory after the upload?

Thanks.

Wilson

Peter Filipov
Telerik team
 answered on 13 May 2011
1 answer
141 views
Hi,
I have some menu items that post back but I don't want them to stay selected. Are they supposed to stay selected then we have to manually deselect them? I saw that another user had an issue with databound controls but I am not doing that.  What I'd like to do is have some menuitems stay selected on postback and some to not stay selected. Example, if there is a menu item named "Save" I don't want it to stay selected after postback and the save functionality is executed. However, let's say I have a menu item that sets a property true/false like say "Bold", I want that to stay selected on postback. Any advice would be appreciated.
Thanks,
G
Princy
Top achievements
Rank 2
 answered on 13 May 2011
3 answers
98 views
Hi

I am adding columns from codebehind. there are some hidden columns and some columns are visible. When we display a hidden column and then do sorting etc , the particular column hides back again as we are rebinding the datagrid on page load. Is there any where to persist the display of columns ?
Tsvetina
Telerik team
 answered on 13 May 2011
3 answers
85 views
Hi all,

This is supposed to be simple but some how not working for me. I tried changing page size from grid at runtime but doesnt change the page size and it always come  back at 10 . Any suggestions ?


I am adding columns from code behind and rebinding the grid at page load.




Regards,
Tsvetina
Telerik team
 answered on 13 May 2011
1 answer
84 views
Is it possible to hide the standard filter menu in a filtered rad grid column and instead, handle the client-side keyprss event in the filter textbox and filter the grid after each character is entered?
Shinu
Top achievements
Rank 2
 answered on 13 May 2011
4 answers
96 views
Hi. I've upgraded to version 2011_1_315_Dev and noticed that any grid that I have with the attirbute UseStaticHeaders set to true, it doesn't display anything. Set it to false and the data shows okay. This only happens in IE9 and viewing the site in compatibility mode doesn't fix the problem. Thanks.

Daniel

<ClientSettings><Scrolling UseStaticHeaders="true" AllowScroll="true" ScrollHeight="394px" SaveScrollPosition="true" /></ClientSettings>


Daniel
Top achievements
Rank 1
Iron
Iron
Iron
 answered on 13 May 2011
0 answers
111 views
To Telerik..................

This item may be closed and deleted, please and thank you.  I kept working on this and discovered an erroneous .select earlier in the page load event that was setting the selected item to an incorrect item.

Sorry to kluge up the works with a useless forum entry.

I have a combo box (current version) that I am populating at Page Load.  The combo box definition is:

<telerik:RadComboBox
    ID="SearchCountry"
    MarkFirstMatch="True"
    TabIndex="5"
    style="z-index: 9000;"
    Width="200px"
    EnableEmbeddedSkins="true"
    Skin="Sitefinity"
    runat="server"
    Height="150px"
    OnClientSelectedIndexChanging="aLoadSearchStateProv"
>

The code used to populate the combo box is:
Dim reader As SqlDataReader = cmd.ExecuteReader()
Do While reader.Read()
    RCBI = New RadComboBoxItem()
    RCBI.Text = Convert.ToString(reader(sFieldToPopulate))
    RCBI.Value = reader("CodeList")
    If oValueToMatch = RCBI.Value Then
        RCBI.Selected = True
    End If
    RadComboBox1.Items.Add(RCBI)
Loop
reader.Close()
reader = Nothing

Here are the pertinent facts:
(1) The combo box is being populated correctly as far as the total entries are concerned.  See attached graphic.
(2) I have stepped through the code and the "RCBI.Selected = True" line of code is being executed ONCE during page load and it is being executed for the correct RCBI.Value (key value of 128).  But the first item in the list is showing (the one saying "Select from this list").  Refer to the second uploaded graphic.

Why isn't the item selected (actually the record for key value 128, United States) being displayed in the combo box display area after page load?

Thanks in advance for your assistance?  Let me know if you need additional information and I will happily comply!

Lynn
Lynn
Top achievements
Rank 2
 asked on 12 May 2011
2 answers
73 views
Hello everybody,

When I am using radtooltip 100% width on the left and right appear smaller spaces, which can not occupy the entire width of the page. How do I remove these spaces?

Thanks
Klayton Fratoni
Top achievements
Rank 1
 answered on 12 May 2011
2 answers
115 views
Hey guys,

By default, when I enable check boxes on the RadTreeView, I'd like the cursor to show up as a hand ( 'pointer' ). I'd like to just make that the default style, but can't seem to find the right thing to target the check boxes. Any help would be appreciated.
Developer Developer
Top achievements
Rank 1
 answered on 12 May 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?