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

[Solved] Access control from other tab

2 Answers 101 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Marcin Marcin
Top achievements
Rank 1
Marcin Marcin asked on 09 Oct 2009, 09:13 AM
Hello,
I have several tabs. On each tab I placed my control. When I change date on first tab I would like to refresh grid on second tab. Is is possible?
Code looks like:
    <telerik:RadTabStrip ID="CtrlTabStripAccount" CausesValidation="false"  OnClientTabSelecting="onTabSelecting"
        runat="server" MultiPageID="CtrlPageMultiAccount" ShowBaseLine="true"  Skin="Vista"
        AutoPostBack="true">
        <Tabs>
            <telerik:RadTab runat="server" Text="KanaÅ‚y dostÄ™py" Selected="true" ImageUrl="~/App_Themes/EcodTheme/Icons/inbox.gif" />
            <telerik:RadTab runat="server" Text="Zmiana hasÅ‚a" ImageUrl="~/App_Themes/EcodTheme/Icons/outbox.gif" />
            <telerik:RadTab runat="server" Text="ZarzÄ…dzanie adresami" ImageUrl="~/App_Themes/EcodTheme/Icons/relations.gif" />
        </Tabs>
    </telerik:RadTabStrip>
    <telerik:RadMultiPage ID="CtrlPageMultiAccount" runat="server" SelectedIndex="0"
        RenderSelectedPageOnly="true">
        <!-- my control 1 -->
        <telerik:RadPageView ID="CtrlAccessChannels" runat="server" Selected="true">
            <div class="BoxOutermost">
                <ecod:Channels ID="CtrlChannels" runat="server" />
            </div>
        </telerik:RadPageView>
        <!-- my control 2-->
        <telerik:RadPageView ID="CtrlPassword" runat="server" Selected="true">
            <div class="BoxOutermost">
                <ecod:Password ID="ChPassword" runat="server" />
            </div>
        </telerik:RadPageView>
        <!-- my control 3-->
        <telerik:RadPageView ID="CtrlAddresses" runat="server" Selected="true">
            <div class="BoxOutermostBig">
                <ecod:Addresses ID="Addresses" runat="server" />
            </div>
        </telerik:RadPageView>
    </telerik:RadMultiPage>

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 09 Oct 2009, 11:47 AM
Hi Marcin,

I guess you have placed the RadDatePicker Control in first pageView and second pageview contains the RadGrid and want to refresh the grid on selecting the date. You can do it by attaching SelectedDateChanged for RadDatePicker and executng the Rebind() method in he event handler.

 
protected void RadDatePicker1_SelectedDateChanged(object sender, Telerik.Web.UI.Calendar.SelectedDateChangedEventArgs e) 
    // Set the DataSource 
    RadGrid1.Rebind(); 

-Shinu.
0
Paul
Telerik team
answered on 09 Oct 2009, 11:47 AM
Hi Marcin Marcin,

As you are using the RenderSelectedPageOnly property of RadMultipage, this means that only the visible PageView (and its controls) are rendered on the page. That said, you can access the grid in the other pageview on the server only.

Greetings,
Paul
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
TabStrip
Asked by
Marcin Marcin
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Paul
Telerik team
Share this question
or