RadMulti page not retaining content (Urgent))

4 posts, 0 answers
  1. Francis Frank
    Francis Frank avatar
    35 posts
    Member since:
    Mar 2010

    Posted 27 Feb 2012 Link to this post

    Hello Telerik Team,

    Please am trying to do a search and open the result on a new tab and a new pageview but the search result clears up each time i navigate back to it and if i try another search on a giving opened tab, it show me error:

    Multiple controls with the same ID 'ctl03' were found. FindControl requires that controls have unique IDs.

    I have tried to enable view state but it did not help.

    RadTab newTab1 = new RadTab();

    newTab1.Text = Session["session_newtab"].ToString();

    newTab1.Width = Unit.Pixel(150);
    RadTabStrip1.Tabs.Add(newTab1);

      (RadTabStrip1.FindTabByText(Session["session_newtab"].ToString())).Selected = true;
    RadPageView newwindow = new RadPageView();
    newwindow.ID = newTab1.Text;
    newwindow.ContentUrl = "search/search_judges.aspx?name=" + item;
    newTab1.PageViewID = newwindow.ID;
    newwindow.Width = Unit.Pixel(878);
    newwindow.Height = Unit.Pixel(785);
    newwindow.EnableViewState = true;

    RadMultiPage2.PageViews.Add(newwindow);

    Please this is urgent on my timeline

     Thanks 

  2. Dimitar Terziev
    Admin
    Dimitar Terziev avatar
    1266 posts

    Posted 29 Feb 2012 Link to this post

    Hi,

    Please refer to the following help article here  where it's discussed the common causes for such error.  The error message is also self explanatory, a control with the same ID as the one that you are dynamically adding already exists on the page. If you want to add tabs and pageviews dynamically,  please follow the approach from the following demo here.

    Greetings,
    Dimitar Terziev
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Francis Frank
    Francis Frank avatar
    35 posts
    Member since:
    Mar 2010

    Posted 01 Mar 2012 Link to this post

    Thanks for the reply

    But the link you sent is working with Usercontrol not a webpage

    Please i want to display content in .aspx not ascx

    Still needing help urgently for my timeline

    Thanks

  5. Dimitar Terziev
    Admin
    Dimitar Terziev avatar
    1266 posts

    Posted 02 Mar 2012 Link to this post

    Hi,

    The important aspect of the demo which I've provide is the approach on how to add RadTabs and RadPageViews dynamically. The fact that you are loading the content of your pageview using its ConentUrl property should not make any difference. My suggestion is to open a support ticket and provided a runnable sample page so we could examine your exact implementation.

    All the best,
    Dimitar Terziev
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top