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

Hello,

 Here's my scenario:

1.  I have 3 pages.  The first page (let's call it MainPage.aspx) opens a RadWindow1.  RadWindow1 opens RadWindow2

2.  In RadWindow2, some processing is done, and after the processing, from the code behind in RadWindow2, I want to close RadWindow1.  However, I want to keep RadWindow2.

3.  On loading RadWindow1 from MainPage.aspx, I want to redirect the main page to a different aspx page.

 

 

 This is the current code:

Code in MainPage.aspx That Opens RadWindow1 (ID = OpenTok)

==================================================

 ASPX

=====

 <telerik:RadWindowManager runat="server" ID="RadWindowManager1">
        <Windows>
            <telerik:RadWindow ID="openTok"  NavigateUrl="OpenTokWindow.aspx" Header="Loading Settings ..." VisibleStatusbar ="false" VisibleOnPageLoad="false" Modal="false" OffsetElementID="main" InitialBehaviors="Maximize" runat="server" />
        </Windows>
    </telerik:RadWindowManager>

 JavaScript

========

GetRadWindowManager().open(url, "openTok");

 

Code in RadWindow1 That Opens RadWindow2 (ID = cogTest)

================================================== 

ASPX

===== 

<telerik:RadWindowManager runat="server" ID="RadWindowManager1">
        <Windows>
            <telerik:RadWindow ID="cogTest" Skin="Sunset" NavigateUrl="JSCognitiveAssessment.aspx" VisibleOnPageLoad="false"  Header="Cognitive Assessment" VisibleStatusbar="false" Modal="false" OffsetElementID="main" InitialBehaviors="Maximize" runat="server" />
        </Windows>
    </telerik:RadWindowManager>

 

JavaScript

========

 function GetRadWindow() {
         var oWindow = null; if (window.radWindow)
             oWindow = window.radWindow; else if (window.frameElement.radWindow)
                 oWindow = window.frameElement.radWindow; return oWindow;
     }

 

var oBrowserWnd = GetRadWindow().BrowserWindow;
      oBrowserWnd.hide();

        
      function closeWin() {
          oBrowserWnd.close();
      }

 

 GetRadWindowManager().open(null, "cogTest");

 

Closing the RadWindow1 from RadWindow2 code behind

============================================

string script = "function f(){closeWin(); Sys.Application.remove_load(f);}Sys.Application.add_load(f);";
        ScriptManager.RegisterStartupScript(Page, Page.GetType(), "key", script, true); 

 

Thank you for any information.

Marin Bratanov
Telerik team
 answered on 11 Jun 2015
1 answer
243 views

I'm using RadGrid for an application.

The rendered grid has filters on top of each column.  When I supply a value and select any filter from the dropdown (e.g. contains, Begins with, etc) the form posts back to the server.

I'm trying to determine the event handler for this postback.

Please advise.

 Thank you,

Tim Inouye

Eyup
Telerik team
 answered on 11 Jun 2015
6 answers
1.3K+ views

Hello,

 

I have a RadGrid that is displayed inside another RadGrid through NestedViewTemplate. This RadGrid contains auto generated columns, and one GridTemplateColumn that I have added to calculate the sum of two auto generated columns. I would like to change the location of this column, currently it shows as the first column in the RadGrid.

 

This is what the RadGrid looks like:

<telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="false" Width="100%"
    AllowFilteringByColumn="true" AllowSorting="true" EnableHeaderContextMenu="true" EnableLinqExpressions="false"
    EnableHeaderContextFilterMenu="true" Skin="Windows7" ShowFooter="true" OnItemDataBound="RadGrid1_ItemDataBound"
    OnNeedDataSource="RadGrid1_NeedDataSource" OnPreRender="RadGrid1_PreRender" OnColumnCreated="RadGrid1_ColumnCreated" >
    <MasterTableView EnableNoRecordsTemplate="true" ShowHeadersWhenNoRecords="true" AutoGenerateColumns="true" IsFilterItemExpanded="false" AllowFilteringByColumn="true" TableLayout="Auto">
    <NoRecordsTemplate>
        <div style="width:100%;text-align:center;">
            No are no records to display!
        </div>
    </NoRecordsTemplate>
    <Columns>
        <telerik:GridTemplateColumn UniqueName="Total" HeaderText="Total" SortExpression="Total">
                                                        
        </telerik:GridTemplateColumn>
    </Columns>
    <FooterStyle Font-Bold="true" Font-Size="Large" />
    </MasterTableView>
</telerik:RadGrid>

 

And the PreRender contains:

(sender as RadGrid).MasterTableView.GetColumn("Total").OrderIndex = 2;

 

But it still is being displayed as first.

Maria Ilieva
Telerik team
 answered on 11 Jun 2015
3 answers
87 views

Hi,

 I have a four page tabstrip and radmultipage with a radgrid on each page.

 I have a user control with an export button in it.

Ajax is turned off for that button.

On the initial page load, the grid does export to excel. But click on the second tab, and the export does not work.  Click on the first initial tab, and the export does not work there.  Debugging shows that the export button in my uc fires off the function with the grid.MasterTableView.ExportToExcel() call.  But the function named in the OnGridExporting RadGrid control does not fire.

 

Any insight would be greatly appreciated!

-John

Kostadin
Telerik team
 answered on 11 Jun 2015
1 answer
145 views

I'm facing 2 issues while using the RadProgressArea :

Firstly, I have a RadAsyncUpload on my page through which I am uploading files and displaying the uploaded files on the same page in a RadGrid. Each line item in the RadGrid is a downloadable file which gets downloaded on click of the link. Now, the problem which I'm facing is, whenever I click on a particular file for download, the RadProgressArea shows up and doensn't go away until I refresh the page. There is no progress indicated in the Progress Area as well.

Even if I'm hiding the Progress Area using Javascript function, it doesn't help as still the Progress Area appears.

 

Secondly, I'm facing a compatibility issue, being the functionality of the Progress Area works best in IE 10,11 and Chrome but not in IE 9, 9(Compatibility Mode).

Whenever I cancel an upload using the RadAsyncUpload - 'Cancel' Button(Runtime Button) while a file is getting uploaded, the ProgressArea still stays on the screen, though the upload is stopped. This happens only in the case of IE9 but not in IE10,11 and Chrome.

Pls. help me sort these appearance issues.

 

 

 

Ivan Danchev
Telerik team
 answered on 11 Jun 2015
6 answers
333 views

do you have an example of radpagelayout in a repeater control?  The Master page is using PageLayout as well.

Thanks, Marty

Peter Filipov
Telerik team
 answered on 11 Jun 2015
6 answers
259 views

Hi,

I am using RadCaptcha in sharepoint 2013.

I used the following code in the ascx WP:

<div class="divCaptcha">         
    <telerik:RadCaptcha ID="RadCaptcha1" runat="server" ValidatedTextBoxID="rcTextBox1" EnableRefreshImage="true"  >
        <CaptchaImage EnableCaptchaAudio="true" RenderImageOnly="true"  BackgroundNoise="Low"></CaptchaImage>
    </telerik:RadCaptcha>

    <div style="float:left">
    <p >Type the code from the image:</p>           
    <asp:TextBox ID="rcTextBox1" runat="server" MaxLength="5" Width="170px"></asp:TextBox>&nbsp;&nbsp;&nbsp;
    <input type="button" title="submit" onclick="CallHandler();" value="submit">
            </div>  
</div>

 
And I define the following in the web.config of the
sharepoint:

   <httpHandlers>
      <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource, Telerik.Web.UI, Version=2015.1.401.45, Culture=neutral, PublicKeyToken=121fae78165ba3d4" verb="*" validate="false" />
</httpHandlers>

 <handlers>
<remove name="Telerik_Web_UI_WebResource_axd"/>
<add name="Telerik_Web_UI_WebResource_axd" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource, Telerik.Web.UI, Version=2015.1.401.45, Culture=neutral, PublicKeyToken=121fae78165ba3d4" verb="*" preCondition="integratedMode" />
</handlers>

 

I click the link to generate new image – nothing happen.

Can you help me?

Slav
Telerik team
 answered on 11 Jun 2015
0 answers
111 views

Hello,

I have been getting Unresponsive Script Error in browser (most often in FF) while executing any request to server. We have used "telerik:RadScriptManager" and "RadAjaxLoadingPanel" in all webpages. Below error occurs randomly and it hangs up the browser.

Error message : "a script on this page may be busy or stopped responding...."

Please find attached screen shot for the same error. It suggests that error is coming from "Telerik.Web.UI.WebResource.axd?_TSM_HiddenFeild_=RadScriptManager1&..."

 

I have been facing this issue recently (without any code change), Please help.

 

Thanks in advance,

Jalak

Jalak
Top achievements
Rank 1
 asked on 11 Jun 2015
2 answers
142 views
Hi,

Is it possible to handle any event if I lose internet connection during uploading of large file?
Uploading freezes if I lost internet connection even for few seconds and doesn't try to reconnect.
OnClientFileUploadFailed event isn't fired in this case.
It would be nice to continue uploading if I repair my internet connection, or at least to show some error.

Best regards,
Dennis
Sangamesh
Top achievements
Rank 1
 answered on 11 Jun 2015
1 answer
89 views

Hi 

I have two datapicker controls datapicker1 & datepicker2.

once I set the date for datepicker1 i have to assign the same date to datepicker2. but here i can not fill the input text. it should show as empty. i have to give user to fill  the date but the datepicker2 calendar should be open as the first datepicker1 date stamp.

example. datepickert1 date : 05-Jun-2010   then

when i click the daterpicker2 calendar icon i should able to open the 05-Jun-2010 and in the input box should be empty until user choose the date from the datepicker2 calender.

how can i achieve this. please respond asap its quiet urgent.

Thx

Eyup
Telerik team
 answered on 11 Jun 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
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?