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

RadGrid OnSelectedIndexChange to update RadPageView

4 Answers 97 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Patrick
Top achievements
Rank 1
Patrick asked on 02 Sep 2010, 05:25 PM
I have a RadGrid which contains a ButtonColumn with CommandName="Select".  Seperately, I have a RadTabStrip.  I am updating the components within the RadTabStrips RadPageView when the user invokes the Select command on the RadGrid.  Everything updates, but I am having trouble figuring out how to ajaxify the RadPageView to update without post-back. 

<rad:RadGrid runat="server" id="RadGrid1" 
    OnSelectedIndexChanged="grdGrid_OnSelectedIndexChanged"
    AutoGenerateColumns="false" >    
    <MasterTableView>        
        <Columns>
            <rad:GridButtonColumn ImageUrl="edit_16.gif" CommandName="Select" ButtonType="ImageButton" HeaderText="Edit"/>                                                
        </Columns>
    </MasterTableView>               
    <ClientSettings>
        <Selecting AllowRowSelect="true" />
    </ClientSettings>
</rad:RadGrid>
  
<rad:RadTabStrip ID="RadTabStrip1" Width="300px" style="margin:5px" runat="server" MultiPageID="RadMultiPage1" SelectedIndex="0" Align="Justify" >
    <Tabs>
        <rad:RadTab Text="Details" >
        </rad:RadTab>
        <rad:RadTab Text="Activity" >
        </rad:RadTab>
    </Tabs>
</rad:RadTabStrip>
<rad:RadMultiPage  runat="server" ID="RadMultiPage2" >
    <rad:RadPageView runat="server" ID="RadPageView3" Selected="true">
        <asp:Label runat="server" ID="Label1" />
    </rad:RadPageView>
    <rad:RadPageView runat="server" ID="RadPageView4" >        
    </rad:RadPageView>    
</rad:RadMultiPage>
  
<rad:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server">
    <AjaxSettings>
        <rad:AjaxSetting AjaxControlID="RadGrid1" >
            <UpdatedControls>
                <rad:AjaxUpdatedControl ControlID="RadMultiPage2" LoadingPanelID="RadAjaxLoadingPanel1" />
            </UpdatedControls>
        </rad:AjaxSetting>
    </AjaxSettings>
</rad:RadAjaxManagerProxy>

4 Answers, 1 is accepted

Sort by
0
Cori
Top achievements
Rank 2
answered on 02 Sep 2010, 07:41 PM
Hello Patrick,

All you need to do is add the PageView to the RadAjaxManagerProxy AjaxSettings. Like so:

<telerik:AjaxSetting AjaxControlID="RadPageView1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadPageView1" UpdatePanelHeight="" />
                </UpdatedControls>
            </telerik:AjaxSetting>

That's how you would setup a control that initiates the request and updates itself.

I hope that helps.
0
Patrick
Top achievements
Rank 1
answered on 02 Sep 2010, 08:04 PM
Cori, thank you for your reply.  I tried your suggestion and still have the same results (full post-back).  I believe your solution would work if my RadGrid was within the RadPageView, but in my case the controls are sperate....RadGrid followed by a RadTabStrip, where the select command from the RadGrid updates the contents of the RadPageView (which is a child of the RadTabStrip).
0
Accepted
Yana
Telerik team
answered on 07 Sep 2010, 03:54 PM
Hello Patrick,

Actually your settings in the first post are supposed to work. I've tested it with Q2 2010 release, please find attached my test page. What is different in your case?

All the best,
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
0
Patrick
Top achievements
Rank 1
answered on 09 Sep 2010, 09:36 PM
After many hours of scratching my head and comparing code, I discovered that the master page I was pointing to (a secondary master file for popup windows only) did not contain a parent RadAjaxManager for the local RadAjaxManagerProxy to reference.  Problem solved.  Thanks for the help!
Tags
TabStrip
Asked by
Patrick
Top achievements
Rank 1
Answers by
Cori
Top achievements
Rank 2
Patrick
Top achievements
Rank 1
Yana
Telerik team
Share this question
or