title: Need to enable or disable tabs in RadTabStrip based on a session variable
body: <p>I'm working with Telerik Rad controls and I am trying to figure out the proper method to use when I need to enable or disable tabs in a RadTabStrip based on a session variable. You would think something like <code>RadTabStrip.Mytab.enabled = false</code> but you cant assign individual IDs to the tabs. I've read through the documentation but I cant seem to figur out how to do it based on a session.</p>
  
  <p>Any help is greatly appreciated.</p>
  
  <pre><code>         // If the user is still in a session - Enable a certain Tab in the TabStrip and a certain PageView based on the current session variable.
          if (Session["PaymentStep"] != null)
          {
              switch (Session["PaymentStep"].ToString())
              {
                  case "1":
                      // Need to select the "Bill" tab somehow and disable the rest
                      BillPayRadMultiPage.SelectedIndex = 0;
                      break;
                  case "2":
                      // Need to select the "Provider" tab somehow and disable the rest
                      BillPayRadMultiPage.SelectedIndex = 2;
                      break;
                  case "3":
                      // Need to select the "Payment" tab somehow and disable the rest
                      BillPayRadMultiPage.SelectedIndex = 3;
                      break;
                  case "4":
                      // Need to select the "Confirmation" tab somehow and disable the rest
                      BillPayRadMultiPage.SelectedIndex = 4;
                      break;
                  case "5":
                      // Need to select the "Reciept" tab somehow and disable the rest
                      BillPayRadMultiPage.SelectedIndex = 5;
                      break;
                  default:
                      break;
              }
          }
  </code></pre>
  
  <p>Here's what I have so far in my page</p>
  
  <pre><code>&lt;!-- TabStrip --&gt;
      &lt;div class="BillPayWrapper"&gt;
          &lt;telerik:RadTabStrip ID="BillPayNavigationRadTabStrip" SelectedIndex="0" runat="server" MultiPageID="BillPayRadMultiPage" Align="Justify"
              Skin="Silk" CssClass="tabStrip" CausesValidation="false"&gt;
              &lt;Tabs&gt;
                  &lt;telerik:RadTab runat="server" Text="Bill" PageViewID="Step1View"
                      ImageUrl="Images/1_normal.png"
                      SelectedImageUrl="Images/1_active.png" /&gt;
                  &lt;telerik:RadTab runat="server" Text="Provider" PageViewID="Step2View"
                      ImageUrl="Images/2_normal.png"
                      SelectedImageUrl="Images/2_active.png"
                      DisabledImageUrl="Images/2_disable.png" /&gt;
                  &lt;telerik:RadTab runat="server" Text="Payment" PageViewID="Step3View"
                      ImageUrl="Images/3_normal.png"
                      SelectedImageUrl="Images/3_active.png"
                      DisabledImageUrl="Images/3_disable.png" /&gt;
                  &lt;telerik:RadTab runat="server" Text="Confirmation" PageViewID="Step4View"
                      ImageUrl="Images/4_normal.png"
                      SelectedImageUrl="Images/4_active.png"
                      DisabledImageUrl="Images/4_disable.png" /&gt;
                  &lt;telerik:RadTab runat="server" Text="Reciept" PageViewID="Step5View"
                      ImageUrl="Images/5_normal.png"
                      SelectedImageUrl="Images/5_active.png"
                      DisabledImageUrl="Images/5_disable.png" /&gt;
              &lt;/Tabs&gt;
          &lt;/telerik:RadTabStrip&gt;
  
          &lt;!-- MultiPage Container --&gt;
          &lt;telerik:RadMultiPage ID="BillPayRadMultiPage" runat="server" SelectedIndex="0"
              CssClass="multiPage" BorderWidth="1" BorderColor="#888888"&gt;
  
              &lt;!-- Step 1 PageView --&gt;
              &lt;telerik:RadPageView ID="Step1RadPageView" runat="server"&gt;
                  &lt;h1&gt;Step 1 Content&lt;/h1&gt;
              &lt;/telerik:RadPageView&gt;
              &lt;!-- // Step 1 PageView --&gt;
  
              &lt;!-- Step 2 PageView --&gt;
              &lt;telerik:RadPageView ID="Step2RadPageView" runat="server"&gt;
                  &lt;h1&gt;Step 2 Content&lt;/h1&gt;
              &lt;/telerik:RadPageView&gt;
              &lt;!-- // Step 2 PageView --&gt;
  
          &lt;!-- You get the idea --&gt;
          &lt;/telerik:RadMultiPage&gt;
  </code></pre>