Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
227 views
Hi all,

I wish to load the ASPX file to the pageview on the client site. Can anybody show me the example?

Thanks.

Regards,
Bryan Tan
Veronica
Telerik team
 answered on 13 May 2011
1 answer
61 views
Hi,

I try to use RadPanelBar into an other RadPanelBar and I have a problem with the level2 RadPanelBar.
This is my code :
<telerik:RadPanelBar ID="RadPanelBar1" runat="server" Width="100%">
            <Items>
                <telerik:RadPanelItem Text="PanelItem1">
                    <ContentTemplate>
                        <telerik:RadPanelBar ID="PanelBar2" runat="server" Width="100%">
                            <Items>
                                <telerik:RadPanelItem Text="Title1">
                                    <HeaderTemplate><table style="width:100%;"><tr><td>Title1</td><td style="text-align:right;"><asp:ImageButton ID="ImgBtnRemoveContact1" runat="server" ImageUrl="~/images/cancel.png" /></td></tr></table></HeaderTemplate>
                                    <ContentTemplate>
                                        1iere ligne
                                        <br/>
                                        <br/>
                                        <br/>
                                        <br/>
                                        <br/>
                                        <br/>
                                        <br/>
                                        <br/>
                                        10ieme ligne
                                    </ContentTemplate>
                                </telerik:RadPanelItem>
                                <telerik:RadPanelItem Text="Title2">
                                    <HeaderTemplate><table style="width:100%;"><tr><td>Title2</td><td style="text-align:right;"><asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/images/cancel.png" /></td></tr></table></HeaderTemplate>
                                    <ContentTemplate>
                                        1st line
                                        <br/>
                                        <br/>
                                        <br/>
                                        <br/>
                                        <br/>
                                        <br/>
                                        <br/>
                                        <br/>
                                        10th line
                                    </ContentTemplate>
                                </telerik:RadPanelItem>
                            </Items>
                        </telerik:RadPanelBar>
                    </ContentTemplate>
                </telerik:RadPanelItem>
            </Items>
        </telerik:RadPanelBar>

With this code, I can't expand the level 2 RadPanelItem (or it expand but I can't see the content)
Is it possible to solve this ?

Sorry for my poor english.
Vincent
Top achievements
Rank 1
 answered on 13 May 2011
3 answers
267 views
Can someone help me how t set invalid style in server side.  My code as as following.  When validate through client side, textbox style is set to invalid style(CssClass="InvalidTextBox") if validation fails.  Similarlly I want to do the validation in server side just in case client side validation does not go through.  How to set to Invalid style in server side ?

<

 

telerik:RadTextbox ID="Email" runat="server">

 

    <

 

EmptyMessageStyle CssClass="EmptyTextBox" />

 

 

 

 

 

    <EnabledStyle CssClass="EnabledTextBox" />

 

 

 

 

 

    <FocusedStyle CssClass="FocusedTextBox" />

 

 

 

 

 

    <HoveredStyle CssClass="HoveredTextBox" />

 

 

 

 

 

    <InvalidStyle CssClass="InvalidTextBox" />

 

 

 

</telerik:RadTextbox>
<

 

asp:CustomValidator runat="server" EnableClientScript="true" controltovalidate="Email" id="ev" ClientValidationFunction="ClientValidate" OnServerValidate="ServerValidate" />

 


function

 

ClientValidate(sender, args)
{

 

 

     var email = $find("<%= email.ClientID %>");

 

 

        if (! validate(email.get_value())) 
       {

 

            email._invalid =

true;

 

            email.updateCssClass();

            args.IsValid =

false;

 

        }

}


 

protected void ServerValidate(object source, ServerValidateEventArgs args)

 

{

 

    args.IsValid = validate(email.Text);

 

 

    if (!args.IsValid)

 

    {

 

        //how to set invalid style for email RadTextBox ????

 

 

    }
}

 

Tsvetina
Telerik team
 answered on 13 May 2011
4 answers
77 views
I am using the RadScriptManager1, RadAjaxManager1 and  RadAjaxLoadingPanel in order to have the "loading" graphics kick in while oading my web pages .. filling in data in rsponse to user input. This is ties to a button and I get the overlay everyother time.

 

<telerik:RadScriptManager ID="RadScriptManager1" Runat

="server"> 

</telerik:RadScriptManager> 

 

<telerik:RadAjaxManager ID="RadAjaxManager1" runat

="server"> 

<AjaxSettings >

 

 

<telerik:AjaxSetting AjaxControlID ="Panel2">

 

 

 

<UpdatedControls >

 

 

 

<telerik:AjaxUpdatedControl ControlID="Panel2" LoadingPanelID="RadAjaxLoadingPanel1" />

 

 

 

</UpdatedControls >

 

 

 

</telerik:AjaxSetting >

 

 

 

</AjaxSettings >

 

 

 

</telerik:RadAjaxManager >

 

 

 

<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Height="75px" Width="75px" >

 

 

<img alt="Loading Cycle Count ..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>' style="border:0;" />

 

 

</telerik:RadAjaxLoadingPanel>

 

 

Why is this? I am developing under VS 2008 and using the RadControls for ASP.NET AJAX Q1 2011 NET 35

any help ???

Thanks

gollnick

 

 

Maria Ilieva
Telerik team
 answered on 13 May 2011
5 answers
166 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
127 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
138 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
94 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
80 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
Narrow your results
Selected tags
Tags
+124 more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?