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

CommandItems not firing within grid placed inside TabStrip

5 Answers 79 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Rob Himself
Top achievements
Rank 1
Rob Himself asked on 13 Jul 2010, 09:15 PM
The setup:
I have a tabstrip with three tabs. The tabstrip is set to render only the selected page and autopostback. The ajaxmanager handles this guy so that there's no postback. If I click an item on the default tab (loads initially), the command item fires just fine. If I switch tabs to access one of the other grids and click one of that grid's items, it just resets the tabs and never actually fires the command item.

I'm sure I'm missing something really trivial. Does my grid need to be in the ajax manager, and made to control itself?

Thanks in advance.

5 Answers, 1 is accepted

Sort by
0
Tsvetoslav
Telerik team
answered on 15 Jul 2010, 02:49 PM
Hi Rob,

Try ajaxifying the MultiPage control to update itself and do the same for the RadTabStrip. No more ajax settings should be needed. In addition, do make sure that you have set the MutliPageID property of the tabstrip control.

Hope it helps.

Regards,
Tsvetoslav
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
Rob Himself
Top achievements
Rank 1
answered on 15 Jul 2010, 08:14 PM
Here's my basic ascx page (please ignore my common command names; i copypasta'd):

<telerik:RadAjaxLoadingPanel ID="ralp" runat="server" Transparency="10" >
    <img src="../Assets/Images/Common/indicator.gif" alt="Loading..." />
</telerik:RadAjaxLoadingPanel>
 
<telerik:RadTabStrip ID="uxTabStrip" runat="server" MultiPageID="uxMultiPage"
    SelectedIndex="0" EnableEmbeddedSkins="False" Skin="ImlRadSkin" AutoPostBack="true">
    <Tabs>
        <telerik:RadTab runat="server" Text="1" SelectedIndex="0" PageViewID="uxTpTotalRpv">
            <Tabs>
                <telerik:RadTab runat="server" Text="1a" PageViewID="uxTpTotalRpv" />
                <telerik:RadTab runat="server" Text="1b" PageViewID="uxTpMineRpv" />
                <telerik:RadTab runat="server" Text="1c" PageViewID="uxTpDownlineRpv" />
            </Tabs>
        </telerik:RadTab>
        <telerik:RadTab runat="server" Text="2" SelectedIndex="0" PageViewID="uxLapsedTotalRpv">
            <Tabs>
                <telerik:RadTab runat="server" Text="2a" PageViewID="uxLapsedTotalRpv" />
                <telerik:RadTab runat="server" Text="2b" PageViewID="uxLapsedMineRpv" />
                <telerik:RadTab runat="server" Text="2c" PageViewID="uxLapsedDownlineRpv" />
            </Tabs>
        </telerik:RadTab>
        <telerik:RadTab runat="server" Text="3" SelectedIndex="0" PageViewID="uxCsTotalRpv">
            <Tabs>
                <telerik:RadTab runat="server" Text="3a" PageViewID="uxCsTotalRpv" />
                <telerik:RadTab runat="server" Text="3b" PageViewID="uxCsMineRpv" />
                <telerik:RadTab runat="server" Text="3c" PageViewID="uxCsDownlineRpv" />
            </Tabs>
        </telerik:RadTab>
    </Tabs>
</telerik:RadTabStrip>
 
<telerik:RadMultiPage ID="uxMultiPage" runat="server" SelectedIndex="0"
    RenderSelectedPageOnly="true">
     
<telerik:RadPageView ID="uxTpTotalRpv" runat="server">
         <telerik:RadGrid ID="uxGrid1" runat="server"
                Skin="ImlRadSkin" EnableEmbeddedSkins="false"
                onneeddatasource="BuildGrid" AutoGenerateColumns="false"
                onitemcommand="uxCsDownlineIndividualRg_ItemCommand">
         <!-- Column Definitions Here -->
         </telerik:RadGrid>
    </telerik:RadPageView>
     
    <telerik:RadPageView ID="uxTpMineRpv" runat="server">
        <telerik:RadGrid ID="uxGrid1" runat="server"
                Skin="ImlRadSkin" EnableEmbeddedSkins="false"
                onneeddatasource="BuildGrid" AutoGenerateColumns="false"
                onitemcommand="uxCsDownlineIndividualRg_ItemCommand">
         <!-- Column Definitions Here -->
         </telerik:RadGrid>
    </telerik:RadPageView>
     
    <telerik:RadPageView ID="uxTpDownlineRpv" runat="server">
        <telerik:RadGrid ID="uxGrid1" runat="server"
                Skin="ImlRadSkin" EnableEmbeddedSkins="false"
                onneeddatasource="BuildGrid" AutoGenerateColumns="false"
                onitemcommand="uxCsDownlineIndividualRg_ItemCommand">
         <!-- Column Definitions Here -->
         </telerik:RadGrid>
    </telerik:RadPageView>
     
    <telerik:RadPageView ID="uxLapsedTotalRpv" runat="server">
            <telerik:RadGrid ID="uxGrid1" runat="server"
                Skin="ImlRadSkin" EnableEmbeddedSkins="false"
                onneeddatasource="BuildGrid" AutoGenerateColumns="false"
                onitemcommand="uxCsDownlineIndividualRg_ItemCommand">
         <!-- Column Definitions Here -->
         </telerik:RadGrid>
    </telerik:RadPageView>
     
    <telerik:RadPageView ID="uxLapsedMineRpv" runat="server">
        <telerik:RadGrid ID="uxGrid1" runat="server"
                Skin="ImlRadSkin" EnableEmbeddedSkins="false"
                onneeddatasource="BuildGrid" AutoGenerateColumns="false"
                onitemcommand="uxCsDownlineIndividualRg_ItemCommand">
         <!-- Column Definitions Here -->
         </telerik:RadGrid>
    </telerik:RadPageView>
     
    <telerik:RadPageView ID="uxLapsedDownlineRpv" runat="server">
        <telerik:RadGrid ID="uxGrid1" runat="server"
                Skin="ImlRadSkin" EnableEmbeddedSkins="false"
                onneeddatasource="BuildGrid" AutoGenerateColumns="false"
                onitemcommand="uxCsDownlineIndividualRg_ItemCommand">
         <!-- Column Definitions Here -->
         </telerik:RadGrid>
    </telerik:RadPageView>
     
    <telerik:RadPageView ID="uxGioTotalRpv" runat="server">
        <telerik:RadGrid ID="uxGrid1" runat="server"
                Skin="ImlRadSkin" EnableEmbeddedSkins="false"
                onneeddatasource="BuildGrid" AutoGenerateColumns="false"
                onitemcommand="uxCsDownlineIndividualRg_ItemCommand">
         <!-- Column Definitions Here -->
         </telerik:RadGrid>
    </telerik:RadPageView>
     
    <telerik:RadPageView ID="uxGioDownlineRpv" runat="server">
        <telerik:RadGrid ID="uxGrid1" runat="server"
                Skin="ImlRadSkin" EnableEmbeddedSkins="false"
                onneeddatasource="BuildGrid" AutoGenerateColumns="false"
                onitemcommand="uxCsDownlineIndividualRg_ItemCommand">
         <!-- Column Definitions Here -->
         </telerik:RadGrid>
    </telerik:RadPageView>
     
    <telerik:RadPageView ID="uxCsTotalRpv" runat="server">   
        <telerik:RadGrid ID="uxGrid1" runat="server"
                Skin="ImlRadSkin" EnableEmbeddedSkins="false"
                onneeddatasource="BuildGrid" AutoGenerateColumns="false"
                onitemcommand="uxCsDownlineIndividualRg_ItemCommand">
         <!-- Column Definitions Here -->
         </telerik:RadGrid>
    </telerik:RadPageView>
     
    <telerik:RadPageView ID="uxCsMineRpv" runat="server">
        <telerik:RadGrid ID="uxGrid1" runat="server"
                Skin="ImlRadSkin" EnableEmbeddedSkins="false"
                onneeddatasource="BuildGrid" AutoGenerateColumns="false"
                onitemcommand="uxCsDownlineIndividualRg_ItemCommand">
         <!-- Column Definitions Here -->
         </telerik:RadGrid>
    </telerik:RadPageView>
     
    <telerik:RadPageView ID="uxCsDownlineRpv" runat="server">
                <telerik:RadGrid ID="uxGrid1" runat="server"
                Skin="ImlRadSkin" EnableEmbeddedSkins="false"
                onneeddatasource="BuildGrid" AutoGenerateColumns="false"
                onitemcommand="uxCsDownlineIndividualRg_ItemCommand">
         <!-- Column Definitions Here -->
         </telerik:RadGrid>
    </telerik:RadPageView>
     
</telerik:RadMultiPage>
 
<telerik:RadAjaxManagerProxy ID="ramp" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="uxTabStrip">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="uxTabStrip" />
                <telerik:AjaxUpdatedControl ControlID="uxMultiPage" LoadingPanelID="ralp" />
            </UpdatedControls>
        </telerik:AjaxSetting>
        <telerik:AjaxSetting AjaxControlID="uxMultiPage">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="uxMultiPage" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManagerProxy>


I've attempted what you suggested, but the behavior remains the exact same.
0
Tsvetoslav
Telerik team
answered on 19 Jul 2010, 03:15 PM
Hello Rob,

I could not spot anything wrong with your code. Please, open up a formal support ticket and send a runnable sample. We shall debug it and get back to you with the results.

Best wishes,
Tsvetoslav
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
Brendan Kerry
Top achievements
Rank 2
answered on 09 Sep 2010, 09:09 AM
Hi,

I have the same problem is there a solution to this problem?

Regards,

Brendan
0
Tsvetoslav
Telerik team
answered on 09 Sep 2010, 03:39 PM
Hi Brendan,

Unfortunately, without a sample code it is difficult to say what the reason for the problem you are experiencing might be. I'd ask you too to open up a formal support ticket and send a small runnable sample for debugging on our side. Thanks in advance.

Best wishes,
Tsvetoslav
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
Grid
Asked by
Rob Himself
Top achievements
Rank 1
Answers by
Tsvetoslav
Telerik team
Rob Himself
Top achievements
Rank 1
Brendan Kerry
Top achievements
Rank 2
Share this question
or