Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
174 views

I've been having some trouble clearing server variables during unload events of pages using RadAjaxManager.

If I click on a link which navigates away from the page, I need to clear a session variable before continuing.  

TestPage.aspx page:
       <telerik:RadAjaxManager runat="server" ID="RadAjaxManager1" OnAjaxRequest="OnAjaxRequest"  />
        ....
        <a href="google.com">google!</a>
        ...
        <telerik:RadScriptBlock runat="server">
            <script type="text/javascript">
                function onunload(sender, args) {
                    var ajaxManager = $find("<%= RadAjaxManager.GetCurrent(Page).ClientID %>");
                    ajaxManager.ajaxRequest("pageUnload");                    
                }
                Sys.Application.add_unload(onunload);
            </script>
        </telerik:RadScriptBlock>


TestPage.aspx.cs code:

        protected void OnAjaxRequest(object sender, AjaxRequestEventArgs e)
        {
            if (e.Argument == "pageUnload")
            {
                Session["someSessionVar"] = null;
            }
      }

Unfortunately this does not work.  After the OnAjaxRequest event, the browser remains on the TestPage.aspx.  It does not continue navigating to the original link clicked (google.com).  

How can I set a server variable when a page is navigated away from? 

Thanks,
Josh
Genti
Telerik team
 answered on 28 Jun 2011
4 answers
193 views
I have a simple form with a radMaskedTextBox.  The clientside event is firing correcly, but the control does not put valid characters in to the text box.  I have even tried getting it to accept any value  but it seems that the keypress event is preventing any character from being added.

Any suggestions would be welcome as I am against a brickwall with this one now.

Example page added.
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default2.aspx.vb" Inherits="Default2" %>
 
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>
 
<!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>
    <script type="text/javascript" language="javascript">
        function keyPress(sender, eventArgs) {
           var c = eventArgs.get_keyCode();
 
           if ((c < 48) || (c > 57)) {
              eventArgs.set_cancel(false);
                
           }
 
        }
   
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
     
        <telerik:RadScriptManager ID="RadScriptManager1" Runat="server">
        </telerik:RadScriptManager>
     
        <telerik:RadMaskedTextBox ID="RadMaskedTextBox1" Runat="server">
            <ClientEvents OnKeyPress="keyPress" />
        </telerik:RadMaskedTextBox>
     
    </div>
    </form>
</body>
</html>
Ian
Top achievements
Rank 1
 answered on 28 Jun 2011
1 answer
100 views
How to make a radsplitbar click event from script code..?
Dobromir
Telerik team
 answered on 28 Jun 2011
5 answers
79 views
Hi all,

I'm a bit confused here. When users are browsing site collection with the url of the site collection in upper case the Telerik document manager shows "Not Found" next to each folder instead of the folder name.

Is there something I can do about it or is it a Telerik bug ?

For instance: :
- http://myintranet/mysitecollection/mysite/Pages/Page.aspx ==> the Document Manager works fine
- http://myintranet/MYSITECOLLECTION/mysite/Pages/Page.aspx ==> the Document Manager shows NOT FOUND next to all folders (see attachment).

Kind regards,

Sébastien
Stanimir
Telerik team
 answered on 28 Jun 2011
2 answers
137 views
Hi all,
      plz give me solution for this,
that is i got one combo-box , i have all column in the combo-box(table columns),
if i select the value from combo-box i need to bind that column to the rad grid..
which displays me only one column in the grid.
thanks.
Tamkeen
Top achievements
Rank 2
 answered on 28 Jun 2011
1 answer
135 views
Hi,

How to disable the download option if folder does not have files on right click of rad file explorer gridview context menu.
Please send me the code
Thanks
sandhya.
Dobromir
Telerik team
 answered on 28 Jun 2011
3 answers
76 views
Hello,

I was trying to use the Mac skin for the RadGrid control. Unfortunatley I do not see it listed in the drop down list box for Skin property. Is the Mac skin still supported? I see the Mac skin listed in the help files.
I am currently using the latest release of the Rad Tools for ASP.NET for AJAX.

      Thanks in advance,
      Tim
Georgi Tunev
Telerik team
 answered on 28 Jun 2011
5 answers
117 views
Hi ,


I m using Sp RadEditor in my web control control is display after deploy webpart but i cant see header toolbar in this speditor and give javascript error

Sys.ArgumentOutOfRangeException: Value must be an integer.
Parameter name: width Actual value was NaN.

please help to solve this issue..

Thanks in advance....
Stanimir
Telerik team
 answered on 28 Jun 2011
2 answers
65 views
Hi,

I have a page with a radgrid, scrolled down to a specfic row. I click on the row and make my window visible by setting the "VisibleOnPageLoad"-property to True and I center it using the "OnClientAutoSizeEnd"-clientevent.
The window is positioned correctly at this moment but is then automatically repositioned lower on the page.
Any ideas which setting could be causing this?

This is the definition of my window:
<telerik:RadWindow ID="wdwDetail" Modal="true" Skin="Telerik" Width="800px" AutoSize="true" AutoSizeBehaviors="Height" OnClientAutoSizeEnd="OnClientShowCenterOnly" runat="server" VisibleOnPageLoad="false" VisibleStatusbar="false" IconUrl="~/img/favicon.ico" ShowContentDuringLoad="true" Title="Detailed Info" DestroyOnClose="false" EnableShadow="true" Behaviors="Close">
    <ContentTemplate>
        ...
    </ContentTemplate>
</telerik:RadWindow>

Note that it isn't defined inside a RadWindowManager as I want to use a asp updatepanel inside it.

Thanks in advance,

Wim
Wim
Top achievements
Rank 1
 answered on 28 Jun 2011
2 answers
73 views
Hello,

I am looking forward to draw some interactive charts from the data present in my website. I have seen Telerik RadCharts very useful in this and want to implement them for my website. Can I freely implement them in my site?

Thanks.
Georgi Tunev
Telerik team
 answered on 28 Jun 2011
Narrow your results
Selected tags
Tags
+? 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?