This is a migrated thread and some comments may be shown as answers.

Binding data to user controls within different pageviews

2 Answers 79 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Zachary
Top achievements
Rank 1
Zachary asked on 23 Mar 2009, 06:54 PM
Hello!  First here is an overview of what I have currently:

-A user control that consists of a RadGrid and a public function for pages using the Control to set/data bind the data source.
-A page with a RadScriptManager, RadTabStrip, and a RadMultiPage
-The tabstrip has two tabs defined in the aspx file
-The multipage has two RadPageViews that each contain an instance of my user control, they have different ID's defined

The only thing I have in the aspx code behind file is:

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                Retrieve ret = new Retrieve();
                List<Document> movies = ret.GetDocs("Movies");
                moviesDocumentList.SetDataSource(movies);   //moviesDocumentList is the first instance of my userControl

                List<Document> docs = ret.GetDocs("Screams");
                screamsDocumentList.SetDataSource(docs);  //the second instance of my user control
            }
        }

Whenever I load the page like this, the moviesDocumentList Control shows up, but the entire tab strip disapears (you can see it in the html if you do view source though).

Now, what really wierds me out is that if I comment out the last two lines in my page load function (the one that binds data to the screamsDocumentList) the tabs strip will display correctly.

I had some other issues past this, but I think they all stemed from this initial confusion.  Any idea what is up?  I can provide my solution if needed.

2 Answers, 1 is accepted

Sort by
0
Paul
Telerik team
answered on 24 Mar 2009, 09:01 AM
Hello Zachary,

It will be best if you can open a support ticket and send us a simple running project (incl. your custom skin, CSS, images, DB backup if needed and so on) demonstrating the problem (and step-by-step instructions on doing so). In that way we can reproduce and pinpoint the problems you're facing on our side, understand the logic of your application and provide a solution.

Kind regards,
Paul
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
0
Zachary
Top achievements
Rank 1
answered on 24 Mar 2009, 02:02 PM
Alright, will do.  Thanks!
Tags
TabStrip
Asked by
Zachary
Top achievements
Rank 1
Answers by
Paul
Telerik team
Zachary
Top achievements
Rank 1
Share this question
or