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

RenderSelectedPageOnly Problem?

3 Answers 73 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
sitefinitysteve
Top achievements
Rank 2
Veteran
sitefinitysteve asked on 26 Aug 2010, 05:31 PM
Hi There,
 
My tab strip is defined like this
<telerik:RadTabStrip ID="programTabStrip" runat="server" EnableViewState="false" MultiPageID="programMultiPage" AutoPostBack="true" >
    <Tabs>
        <telerik:RadTab Text="Residents" Selected="true"></telerik:RadTab>
        <telerik:RadTab Text="Rotations"></telerik:RadTab>
        <telerik:RadTab Text="Approvers"></telerik:RadTab>
    </Tabs>
</telerik:RadTabStrip>
 
<telerik:RadMultiPage ID="programMultiPage" runat="server" RenderSelectedPageOnly="true">
    <telerik:RadPageView ID="RadPageView1" runat="server" Selected="true">
        <uc2:Residents ID="Residents1" runat="server" />         
    </telerik:RadPageView>
 
    <telerik:RadPageView ID="RadPageView2" runat="server">
        <uc3:Rotations ID="Rotations1" runat="server" />
    </telerik:RadPageView>
 
    <telerik:RadPageView ID="RadPageView3" runat="server">
    <uc1:ProgramApprovers ID="ProgramApprovers1" runat="server" />
               
    </telerik:RadPageView>
</telerik:RadMultiPage>

So in the rotation usercontrol I'm getting an "Object reference not set to an instance of an object." error in NeedsDataSource (of the Radgrid that exists)

...but it only happens after a click event is triggered?

I can get around it by checking for null on sender in the NeedsDataSource...but is this a bug?  Actually it's the DataSource property of the RadGrid that's null, not the grid itself

3 Answers, 1 is accepted

Sort by
0
Cori
Top achievements
Rank 2
answered on 27 Aug 2010, 02:58 PM
Hello Steve,

Does the problem go away if you have RenderSelectedPageOnly="false"? I don't see how setting it to true would break the RadGrid. How are you binding the RadGrid, is depending on some value being passed by the RadTabStrip or something?
0
sitefinitysteve
Top achievements
Rank 2
Veteran
answered on 27 Aug 2010, 03:05 PM
I know, there shouldn't be anything strange here

Nothing fancy, just NeedsDataSource to populate the Grid...but the DataSource PROPERTY of the darn grid is what's null, not the grid itself...I mean the thing shouldn't even be trying to render and populate its DS
0
Yana
Telerik team
answered on 31 Aug 2010, 01:52 PM
Hello Steve,

I've tried to reproduce this issue in  a test page but to no avail. Could you please open a support ticket and send us a simple runnable page there? Thanks

Kind regards,
Yana
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
TabStrip
Asked by
sitefinitysteve
Top achievements
Rank 2
Veteran
Answers by
Cori
Top achievements
Rank 2
sitefinitysteve
Top achievements
Rank 2
Veteran
Yana
Telerik team
Share this question
or