RadTabControl in Composite Application Guidance

Thread is closed for posting
9 posts, 0 answers
  1. B96A0995-1C2F-4D4D-BDA1-9442567CAFA5
    B96A0995-1C2F-4D4D-BDA1-9442567CAFA5 avatar
    60 posts
    Member since:
    Jun 2012

    Posted 05 May 2009 Link to this post

    Requirements

    RadControls version                  2009.1.327.1020

     

    .NET version         3.5 sp1

     

    Visual Studio     version                 2008 sp1

     

    programming language                C#

     

    browser support

    all browsers supported by RadControls


    PROJECT DESCRIPTION
    As we started new project base on Composite Application Guidance (Prism) V2 we want to use Telerik Controls. So To Use RadTabControl for our main region we need to create Custom Region Adapter.
    So the base was MS Tab Control Adapter. With some necessey changes it's done.
    In the attached project there is minimal project that use Prism. With one module (Demo).
    and main region called "MainRegion" that uses RadTabControl with the new adapter.
    One more thing is that the header of the RadTabItem bind to DataContext of the view.
    there is no license for this (Except Telerik license...)
    Enjoy.
    Adiel
  2. A5AF5337-0D1D-4F69-98C3-CBEF941DC832
    A5AF5337-0D1D-4F69-98C3-CBEF941DC832 avatar
    922 posts
    Member since:
    Sep 2012

    Posted 15 Nov 2009 Link to this post

    Hello,

    I updated the project for the 2009.Q3 version of the controls.

    The example has been extended to show populating the TabControl with ViewModels as well. Some unnecessary code has been removed.

    Hopefully this will be useful to the people using the control with Prism.

    Kind regards,
    Miroslav
    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.
  3. E87A0A5E-F97C-4E96-B7CD-3D90C100DCA1
    E87A0A5E-F97C-4E96-B7CD-3D90C100DCA1 avatar
    1 posts
    Member since:
    Oct 2009

    Posted 02 Dec 2009 Link to this post

    Miroslav,

    I have downloaded TelerikPrism Project and opened in VS2008/Silverlight 3 and getting this error as

    Error 1 The property 'DropDownDisplayMode' does not exist on the type 'RadTabControl' in the XML namespace 'clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation'. 
    Error 2 The property 'DropDownDisplayMode' does not exist on the type 'RadTabControl' in the XML namespace 'clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation'. 
    Error 3 The property 'ContentTemplate' does not exist on the type 'RadTabControl' in the XML namespace 'clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation'. 
    Error 4 The property 'DropDownDisplayMode' was not found in type 'RadTabControl'. 
    Error 5 The property 'DropDownDisplayMode' was not found in type 'RadTabControl'. 
    Error 6 The property 'ContentTemplate' was not found in type 'RadTabControl'. 

    Can you please let me know what I am missing here. I opened the Telerik TabControl in object browser it doesnt have DropDownDisplayMode and ContentTemplate properties.

    thanks
    Venkat
  4. A5AF5337-0D1D-4F69-98C3-CBEF941DC832
    A5AF5337-0D1D-4F69-98C3-CBEF941DC832 avatar
    922 posts
    Member since:
    Sep 2012

    Posted 08 Dec 2009 Link to this post

    Hi Venkata Vaddi,

     It seems that you have downloaded the project I attached. It was updated with dlls from the 2009.Q3 release.

    If you remove the properties that cause the errors, you should be able to build the project. Alternatively you can use the dlls from the latest release to run the project.

    The lack of a ContentTemplate property on the TabControl in previous releases can be substituted by an ItemContainerStyle that sets the ContentTemplate and HeaderTemplate properties on the items.

    Do get back to us if you have troubles converting the code.


    Regards,
    Miroslav
    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.
  5. B4CD9118-B37C-4B33-B1A6-075BB052A992
    B4CD9118-B37C-4B33-B1A6-075BB052A992 avatar
    39 posts
    Member since:
    Feb 2010

    Posted 04 Mar 2010 Link to this post

    OK - I replace my previous question (no longer relevant).
    Now I got the TelerikPrism project to compile and run under Silverlight 3 with the new code-change shown below (replaced the asp-declaration with an object tag)
    Other Users: For whatever this is worth - When replacing Silverlight 2 ASP.NET tag with Object Tag - the code below can be used as is - only replace the name of the XAP file (bold underlined), the rest can stay unchanged.
    Question to the Autor: At run-tim I see two tabs "Control-1" and "Control-2" - when I click on them I see only a label in the middle of the blank screen (larger font) repeating the name of the tab.
    There isn't any prism or anything else there.
    Would you mind having a look - what do you think is happening?
    (the code below represents the entire code on the ASPX page):

    <%@ Page Language="C#" AutoEventWireup="true" %>
    <!-- The register-assembly tag was removed -->
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title>TelerikPrism</title>
        <style type="text/css">html, body {height: 100%;overflow: auto;} body{padding: 0;margin: 0;}</style></head>
    <body>
        <form id="form1" runat="server" style="height:100%;">
            <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
            <div  style="height:100%;">
                <!-- The tag asp Silverlight was replaced with this code - the only change made is in the value of the source -->
                 <div id="silverlightControlHost" style="height:100%;">
                 <object type="application/x-silverlight" width="100%" height="100%">
                 <param name="source" value="/ClientBin/TelerikPrism.xap"/>
                 <param name="minRuntimeVersion" value="3.0.40624.0" />
                 <!-- For simplicity Error handling and Auto-Upgrade was removed -->
                 <!-- Current environment does have latest Silverlight 3 installed -->
               </object>
            <iframe id="_sl_historyFrame" style='visibility:hidden;height:0;width:0;border:0px'></iframe>
            <!--    End of Replacement -->
            </div>
        </form>
    </body>
    </html>


  6. 70F21ADF-60C3-4802-A1A8-F11C766C18C3
    70F21ADF-60C3-4802-A1A8-F11C766C18C3 avatar
    588 posts
    Member since:
    Sep 2012

    Posted 09 Mar 2010 Link to this post

    Hello Moni,

    The example is working fine using Composite Application Guidance, known as Prism. Can you explain the exact behavior that you expect?

    Sincerely yours,
    Miro Miroslavov
    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.
  7. B4CD9118-B37C-4B33-B1A6-075BB052A992
    B4CD9118-B37C-4B33-B1A6-075BB052A992 avatar
    39 posts
    Member since:
    Feb 2010

    Posted 09 Mar 2010 Link to this post

    Hi Miro,

    I think we are all set. I understand now better what was meant with this project.
    My question was rather - after I experimented myself with replacing the Silverlight-2 asp-declaration with Silverlight-3 object tag I was not sure if what I see on the screen is OK - looked too basic.

    Now I understand the purpose of the project and I also understand that the simple screens are by design, not because I messed up :)

    So two good things came out of this correspondence.
    1. A very basic sample in replacing an asp-declaration with an object tag (above post).
    2. A new updated version of the project which instantly compiles and gives no trouble (your new work).

    I think that's cool.
    Many thanks Miro.
  8. 447E121B-F161-45B6-BE68-9D544FFD148A
    447E121B-F161-45B6-BE68-9D544FFD148A avatar
    26 posts
    Member since:
    Feb 2011

    Posted 12 Apr 2012 Link to this post

    Please, can you Update this Project to actual Telerik Controls and Prism4 ?

    Thank You !
  9. F3AB3C60-4750-4EDF-8787-A16DCB04B7A1
    F3AB3C60-4750-4EDF-8787-A16DCB04B7A1 avatar
    3299 posts
    Member since:
    May 2017

    Posted 17 Apr 2012 Link to this post

    Hello Thilo,

    You can find sample solutions using Telerik RadTabControl version 2011.1.0419 and PRISM 4 in our code library as follows:

    And I attached also an updated sample project demonstrating how to inject ViewModels in the RadTabControl that are displayed in RadTabItems.

    Let us know if this helps or if we can further assist you.

    Regards,
    Tina Stancheva
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top

This Code Library is part of the product documentation and subject to the respective product license agreement.