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

Selected index not displaying Multipage

3 Answers 123 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Eric
Top achievements
Rank 1
Eric asked on 14 May 2009, 05:53 PM
<telerik:AjaxSetting AjaxControlID="btnAddNew" > 
                    <UpdatedControls >                          
                        <telerik:AjaxUpdatedControl ControlID="rgUsers"  /> 
                        <telerik:AjaxUpdatedControl ControlID="tblHeader" />       
                        <telerik:AjaxUpdatedControl ControlID="rgContract" />                   
                        <telerik:AjaxUpdatedControl ControlID="btnSave" />                       
                        <telerik:AjaxUpdatedControl ControlID="RTSContractInfo" />     
                        <telerik:AjaxUpdatedControl ControlID="RMPContractInfo" />     
                    </UpdatedControls> 
                </telerik:AjaxSetting>   
 
 
 
                <telerik:RadTabStrip runat="server" ID="RTSContractInfo" Orientation="HorizontalTop" SelectedIndex="0" Align="Left" MultiPageID="RMPContractInfo"  > 
                    <Tabs> 
                        <telerik:RadTab Text="Contract Information">  
                        </telerik:RadTab> 
                        <telerik:RadTab Text="Accounting Information">  
                        </telerik:RadTab> 
                    </Tabs> 
                </telerik:RadTabStrip> 
                
              <telerik:RadMultiPage runat="server" ID="RMPContractInfo" SelectedIndex="0" Height="110px">  
                <telerik:RadPageView runat="server" ID="RPVContractInfo" > 
 
                   <asp:Table runat="server"  Width="680px" ID="tblHeader" Enabled="False" BackColor="LightSteelBlue" BorderStyle="Groove" > 
                      
                    <asp:TableRow ID="TableRow3" runat="server" BorderStyle="Solid" > 
                     <asp:TableCell ID="TableCell3"  ColumnSpan="4"  BorderWidth="0px" runat="server"  > 
                             <asp:Label ID="lblStatus" runat="server"  >Status:</asp:Label> 
                            </asp:TableCell> 
                    </asp:TableRow> 
                      
                        <asp:TableRow ID="TableRow4" runat="server" > 
                            <asp:TableCell ID="TableCell4" ColumnSpan="2" Height="5px"  runat="server">  
                                <asp:CheckBox ID="chkIndefinate" runat="server" Text="Indefinate"  AutoPostBack="True" OnCheckedChanged="IndefinateChecked" /> 
                            </asp:TableCell> 
                            <asp:TableCell ID="TableCell5"  runat="server" HorizontalAlign="Right" ColumnSpan="2">  
                                <asp:CheckBox ID="chkNoLimit" runat="server" Text="No Limit" autoPostBack="True" OnCheckedChanged="NoLimitChecked" TextAlign="Left" />   
                            </asp:TableCell>   
                        </asp:TableRow> 
                    </asp:Table>     
                    </telerik:RadPageView> 
                    <telerik:RadPageView runat="server" ID="RPVAccounting" > 
                    <asp:CheckBox ID="CheckBox1" runat="server" Text="Allocate by Objective" autoPostBack="True" OnCheckedChanged="HasObjectiveChecked"  TextAlign="left" Checked="true"/>   
                    </telerik:RadPageView>   
                </telerik:RadMultiPage> 
I have a web page that has a RadAjaxManager on it.  Inside this mananger is a RadTabStrip.  The tab strip works fin in most cases but if the user hits a button to add a new record I want the Tabstrip to default to the first tab.  I have the  code

 RadTabStrip1.SelectedIndex = 0
which the tab os selected but the page that goes with this does not display.  I have to select the other tab and tab back in order to see the page. 

I have also tried RadMultiPage.SelectedIndex = 0 but it did not work either
Is the RadAjaxManager causing the issue?  or is there another step

Protected Sub btnAddNew_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnAddNew.Click  
 
        'Need to reload with fresh data  
        '_LoadData = True 
        tblHeader.Enabled = True 
        Dim myContractService As New ContractService  
        Dim myContractsData As DataTable = myContractService.GetContractObjectives(Session("testid"), Session("ELAFlag"))  
        'Set the grid and all input fields to the default values for a new record  
        rgContract.Width = 460 
        rgContract.Columns(2).HeaderStyle.Width = 300 
        rgContract.Columns(4).Display = False 
        rgContract.Columns(9).Display = False 
        rgContract.Columns(11).Display = False 
        rgContract.Columns(13).Display = False 
        dpStartDate.DbSelectedDate = Date.Now  
        dpEndDate.DbSelectedDate = DateAdd(DateInterval.Day, 30, Date.Now)  
        lblStatus.Text = "" 
        txtNumber.Text = "" 
        chkIndefinate.Checked = False 
        IndefinateCheck(chkIndefinate.Checked)  
        chkNoLimit.Checked = False 
        NoLimitCheck(chkNoLimit.Checked)  
        rgContract.DataSource = myContractsData 
        UnselectRows()  
        rgUsers.Columns(7).Display = True 
        CollapseGrid(rgUsers)  
        btnSave.Enabled = True 
        Session("ContractId") = 0  
 
        RTSContractInfo.SelectedIndex = 0 
        RMSContractInfo.SelectedIndex = 0 
end sub 

I have also noticed that when I hit the add new button I get the icon and text Error on the page in the lower left hand corner of the ie task bar.  This onl happens when I include  <telerik:AjaxUpdatedControl ControlID="RMPContractInfo" />  

3 Answers, 1 is accepted

Sort by
0
Paul
Telerik team
answered on 15 May 2009, 11:48 AM
Hi Eric,

From the provided code snippet we noticed that you have misspelled the ID of the RadMultipage control in your btnAddNew_Click - it should be RMPContractInfo, but not RMSContractInfo.

Regards,
Paul
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Eric
Top achievements
Rank 1
answered on 15 May 2009, 01:07 PM
Well that was an error, but the it did not solve the issue.
0
Paul
Telerik team
answered on 15 May 2009, 01:27 PM
Hello Eric,

I think 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.

Thanks beforehand for your patience and cooperation,
Paul
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
TabStrip
Asked by
Eric
Top achievements
Rank 1
Answers by
Paul
Telerik team
Eric
Top achievements
Rank 1
Share this question
or