Javascript function being called of the first tab - RadStrip Multipage

1 posts, 0 answers
  1. Neetu
    Neetu avatar
    5 posts
    Member since:
    Feb 2012

    Posted 30 Apr 2012 Link to this post


    I have created a page with example from I am using RadGrid in tab pages and couple of page have clickable icons. Clicking these icons calls RadWindow, which refreshes the tab/grid. I have couple of problems

    1. Javascript function called is expected in the first tab as opposed to the selected tab. To work around this problem I have added the same Javascript function in all tabs.
    2. Closing the RadWindow updates the grid but again it is the same problem, the update function of the first tab is called as opposed to the selected tab. This is causing us major problem as our project is going live next week.

    I have following scenario in my application

    1. jobauthorisation.aspx -> Main page containing Multipage and Tabstrip. I have logic in the OnLoad function to set the first tab based on how user arrived on this page.This page adds tabs.
    2. jobauthorisationauthorised.ascx, jobauthorisationawaiting.ascx, jobauthorisationawaitingresponse.ascx and jobauthorisationresponsereceived.ascx tab pages with JavaScript functions to call RadWindow and refresh grid - the same functions are copied in all pages to work around the problem of JS functions being called from the first tab

    Steps to reproduce the problem are

    1. Load the page with A, B, C and D tabs added in this order
    2. Select the tab B, click on one of the images to open RadWindow. If the called function is not defined in tab A then gets scripting error. To workaround I have added the same function to tab A.
    3. Click the Send button of RadWindow should call function in tab B. However it calls the function in tab A causing tab A to refresh the data but tab B does not get refreshed. I added alert in the Javascript function of tab A to prove it.

    Please go through the code and let me know what I am doing wrong. 
Back to Top