Office 2007 Ribbon UI

Thread is closed for posting
199 posts, 0 answers
  1. CC93C10B-91B3-4F11-9627-5C56AE700DDA
    CC93C10B-91B3-4F11-9627-5C56AE700DDA avatar
    7 posts
    Member since:
    Aug 2007

    Posted 27 Aug 2007 Link to this post

    I have also written master pages solution for asp.net 1.1 to simplify building complex layout. sure, its not a full fledged master pages like microsoft stuff, but works very similiar in many cases. you have contentplaceholder and content controls to make a layout and override default content from master.

    This is how i use it:

    ASPX page:
        <bhm:content ContentPlaceHolderID="FormHolder" runat="server" id="Content2"
            Main form 
        </bhm:content> 

    Master page:
    <bhm:contentplaceholder id="FormHolder" runat="server">default master content</bhm:contentplaceholder> 

    Master pages are ascx files, ordinary web forms are aspx files.
    The only difference is that your codebehind in aspx inherits my BaseMasterPage class:

        public class WebForm1 : BaseMasterPage 
        { 
            private void Page_Load(object sender, System.EventArgs e) 
            {   
            }  
            #region Web Form Designer generated code 
            override protected void OnInit(EventArgs e) 
            { 
                InitializeComponent(); 
                base.OnInit(e); 
            } 
            private void InitializeComponent() 
            {     
                this.Load += new System.EventHandler(this.Page_Load); 
     
            } 
            #endregion 
        } 

    regards
  2. C7498A83-7E2E-418C-8791-93EF573A7569
    C7498A83-7E2E-418C-8791-93EF573A7569 avatar
    9934 posts
    Member since:
    Nov 2016

    Posted 27 Aug 2007 Link to this post

    Hello p_e_t_e_r,

    Thank you for posting your MasterPage analog for ASP.NET 1.x in this code library thread. We will be expecting the NET 1.x version of the Office 2007 Ribbon project once you are ready to deliver it.

    Best regards,
    Stephen
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. CC93C10B-91B3-4F11-9627-5C56AE700DDA
    CC93C10B-91B3-4F11-9627-5C56AE700DDA avatar
    7 posts
    Member since:
    Aug 2007

    Posted 28 Aug 2007 Link to this post

    already sent to support@telerik.com and sales@telerik.com
  4. C7498A83-7E2E-418C-8791-93EF573A7569
    C7498A83-7E2E-418C-8791-93EF573A7569 avatar
    9934 posts
    Member since:
    Nov 2016

    Posted 30 Aug 2007 Link to this post

    Hi Piotr,

    Thank you for submitting ASP.NET 1.x version of the Office 2007 Ribbon UI demo developed by Mr. Russell Mason. I am posting your project in the same code library thread for everyone interested in version for the .NET 1.x version of the development environment. Additionally , I have added 5000 Telerik points to your account for the involvement.

    Best regards,

    Stephen

    the Telerik team


    Instantly find answers to your questions at the new Telerik Support Center
  5. CC93C10B-91B3-4F11-9627-5C56AE700DDA
    CC93C10B-91B3-4F11-9627-5C56AE700DDA avatar
    7 posts
    Member since:
    Aug 2007

    Posted 05 Sep 2007 Link to this post

    Hi,

    fixed couple of bugs, now all client and server examples work with no problem :)
    I'll send it when i have time.

    regards.
  6. 29C62A23-540C-4876-98E2-2D3DFBBD32F2
    29C62A23-540C-4876-98E2-2D3DFBBD32F2 avatar
    3 posts
    Member since:
    Aug 2007

    Posted 07 Sep 2007 Link to this post

    After using your controls, if I add to my pages other rad controls I get error like this one:

    Could not load file or assembly 'RadAjax.Net2, Version=1.6.2.0, Culture=neutralPublicKeyToken=3f7b438d1c762d0b' or one of its dependencies. 
    The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) 


    Can you help me?

    Thanks

    rgf21/Russell: I'm currently testing this feature for my company (using the trial version Q1 2007) and I have the same error, were you able to find out the solution?  I cant seem to regenerate the bin folders.

    Thanks,

  7. CC93C10B-91B3-4F11-9627-5C56AE700DDA
    CC93C10B-91B3-4F11-9627-5C56AE700DDA avatar
    7 posts
    Member since:
    Aug 2007

    Posted 07 Sep 2007 Link to this post

    Please note, if you are using .net 1.1 you should register assemblies of .net 1.1 version. so your RadAjax.Net2

    should be renamed to
    RadAjax
  8. 29C62A23-540C-4876-98E2-2D3DFBBD32F2
    29C62A23-540C-4876-98E2-2D3DFBBD32F2 avatar
    3 posts
    Member since:
    Aug 2007

    Posted 07 Sep 2007 Link to this post

    Peter: i'm using .Net framework 2.0 (vs 2005)
  9. 29C62A23-540C-4876-98E2-2D3DFBBD32F2
    29C62A23-540C-4876-98E2-2D3DFBBD32F2 avatar
    3 posts
    Member since:
    Aug 2007

    Posted 07 Sep 2007 Link to this post

    Just recompiled the solution and got it to work...

    thanks,
  10. F9587B60-DD4E-4D38-AB2F-481E3C368213
    F9587B60-DD4E-4D38-AB2F-481E3C368213 avatar
    49 posts
    Member since:
    Jun 2012

    Posted 12 Sep 2007 Link to this post

    Please check this link in IE6

    http://chatterjeenet-1.at.vwdhosting.net/public/

    Every time when mouseOver on the groups and buttons, images are loaded. please help me to fix or i will have to replace the control

    chatterjee.net@hotmail.com

  11. 703CE2BE-7DEF-4051-BE98-A96CBCA952B5
    703CE2BE-7DEF-4051-BE98-A96CBCA952B5 avatar
    10 posts
    Member since:
    Feb 2006

    Posted 13 Sep 2007 Link to this post

    Possible bug:
    When I create a webpage in a sub-folder off the root and use the Office2007MasterPage as the Master, I get a javascript error when it tries to load each of the panels in the menu.  Has anyone else experienced this?
  12. CC93C10B-91B3-4F11-9627-5C56AE700DDA
    CC93C10B-91B3-4F11-9627-5C56AE700DDA avatar
    7 posts
    Member since:
    Aug 2007

    Posted 13 Sep 2007 Link to this post

    most probably you have relative paths in you head section where you include javascript library of ribbon bar. you can check it, and see if path starts without / at the beggining. i.e. ../script/file.js is relative path. you should use autogenerated paths using server variables to be undependant of where your files are.

    greets
  13. CC4045FB-857C-43D1-8D2F-5FD7ABA4B9E9
    CC4045FB-857C-43D1-8D2F-5FD7ABA4B9E9 avatar
    261 posts
    Member since:
    Apr 2007

    Posted 13 Sep 2007 Link to this post

    HI, I try the framework in VS2008 Beta2. I recompile all the framework in 3.5 version without error. But I can't use it on my webpage witout javascrip error (undifined) on all the clientMember variable.

    Someone have succesfully jump to VS2008 with the RussellMason framework?
  14. 703CE2BE-7DEF-4051-BE98-A96CBCA952B5
    703CE2BE-7DEF-4051-BE98-A96CBCA952B5 avatar
    10 posts
    Member since:
    Feb 2006

    Posted 14 Sep 2007 Link to this post

    Here is what I have in my <head section:

    <script language="javascript" type="text/javascript" src="Office2007Client/Scripts/RibbonBar.js"></script>

    What should it be?

  15. CC93C10B-91B3-4F11-9627-5C56AE700DDA
    CC93C10B-91B3-4F11-9627-5C56AE700DDA avatar
    7 posts
    Member since:
    Aug 2007

    Posted 15 Sep 2007 Link to this post

    All scripts can be automated in codebehind like this:
    Page.RegisterClientScriptBlock("RibbonBar""<script type='text/javascript' src='" + Request.ApplicationPath + "/Office2007Client/Scripts/RibbonBar.js'></script>"); 
    Page.RegisterClientScriptBlock("RibbonPreloader""<script type='text/javascript' src='" + Request.ApplicationPath + "/Office2007Client/Scripts/RibbonPreloader.js'></script>"); 

    Please note, that above is from .net 1.1 and this syntax is depreciated in 2.0. but theres analog version of page.registerclientscriptblock, just taka a look on msdn.
    by using this method you're no longer troubled with js files location.

    greets.
  16. 703CE2BE-7DEF-4051-BE98-A96CBCA952B5
    703CE2BE-7DEF-4051-BE98-A96CBCA952B5 avatar
    10 posts
    Member since:
    Feb 2006

    Posted 17 Sep 2007 Link to this post

    Thanks for your reply peter.  The problem with using the method that you suggested is now the NavigateUrl in the Template no longer points to the correct location.  I tried using NavigateUrl="~/MyRootPage.aspx" but still get an error.

    To re-cap:
    I have my OfficeTemplate file in the root of the application. 
    On the menu, I have a RibbonButton that has a NavigateUrl="MyRootPage.aspx"

    I have a page in the root folder called "MyRootPage.aspx" which uses the OfficeTemplate.  When I compile and run, the RibbonButton loads the proper file.

    One page that also uses the OfficeTemplate is located in a subfolder /Folder1/MySubPage.aspx. 

    Based on your previous suggestion, I add the clientscriptblock code to the codebehind in the "MyRootPage.aspx" and /Subfolder/"MySubPage.aspx" so the JavaScript files would load properly.  Now when I click on the RibbonButton from the "MySubPage.aspx", it can no longer find "MyRootPage.aspx" becuase it is looking in it's current folder.

    If I change the NavigateUrl to NavigateUrl="~/MyRootPage.aspx" that also causes the "resource cannot be found" error.


     

  17. 5CCD806F-A107-4247-841F-F0DD15EE4E23
    5CCD806F-A107-4247-841F-F0DD15EE4E23 avatar
    2 posts
    Member since:
    Feb 2007

    Posted 03 Oct 2007 Link to this post

    I want to dynamically displaying the controls of the Ribbonbar from the Database.I have successfully implemented it.But there is one problem The Ribbon buttons are not displaying the Text for the control.If I dont include the image property of the button,the text is being displayed.But I want both the text and image of the ribbon button to be displayed
  18. 8298AB06-B1F3-47DE-9861-0AAE744432C1
    8298AB06-B1F3-47DE-9861-0AAE744432C1 avatar
    87 posts
    Member since:
    Oct 2006

    Posted 05 Oct 2007 Link to this post

    Hi Vimal

    Just a quick one, try using AutoSizeWidth() or one of its overloads once the text has been set. Sounds as if the text does not fit the button width and is over-running the control area.

    Thanks
    Russell Mason
  19. DB8046BD-E28F-4937-8736-D5D392F9128F
    DB8046BD-E28F-4937-8736-D5D392F9128F avatar
    35 posts
    Member since:
    Sep 2007

    Posted 08 Oct 2007 Link to this post

    Hi Vimal,

    Hopefully you will be able to share this with the rest of us.  I was going to start working on making the menu database driven but if someone else has done it might as well save some time.

    Tim
  20. 4ABA8077-1087-4C78-9F01-287634E49AA6
    4ABA8077-1087-4C78-9F01-287634E49AA6 avatar
    100 posts
    Member since:
    May 2007

    Posted 10 Oct 2007 Link to this post

    When will it follow the 2007 UI guidelines completely? Do You have an possible date? Thanks
  21. 8298AB06-B1F3-47DE-9861-0AAE744432C1
    8298AB06-B1F3-47DE-9861-0AAE744432C1 avatar
    87 posts
    Member since:
    Oct 2006

    Posted 31 Oct 2007 Link to this post

    Hi

    I did originally intend to do all required features (some of the requirements and optional features are a bit of a challenge for a web client). I have been busy on other projects for a while now and will be for the foreseeable future, so as this is just a project done in my spare time I don't foresee any further development any time soon. Sorry for the lack of additions but it is still at the back of my mind. I may come back to it but at this point I can't promise anything.

    Thanks
    Russell Mason
  22. 9C86B76A-4B5E-44E9-BB5E-5E3C65508F4C
    9C86B76A-4B5E-44E9-BB5E-5E3C65508F4C avatar
    189 posts
    Member since:
    Jan 2007

    Posted 17 Nov 2007 Link to this post

    Russell,
    I'm wondering if you wante to share the source files of the images (eg Ribbonbarend.gif, etc)

    I'm interested in making other skins than the default light blue of Office 2007.

    Nicolas
  23. AC8B005E-FF36-4CF8-8390-3515E4B9491F
    AC8B005E-FF36-4CF8-8390-3515E4B9491F avatar
    8 posts
    Member since:
    Oct 2007

    Posted 03 Dec 2007 Link to this post

    Hi all,

    Has anyone worked on getting the Ribbon Bar to render faster? Render times are fine in Safari for Windows but IE, FF and at times Opera often use from 5 to 15 seconds on my desktop computer - both for Russel's ClientMockup.aspx and my own pages as well. I am not interested in full Office 2007 guideline conformancy, so removing parts of the control is definitely an option for me.

    Regards,
    Sjur
  24. 4ABA8077-1087-4C78-9F01-287634E49AA6
    4ABA8077-1087-4C78-9F01-287634E49AA6 avatar
    100 posts
    Member since:
    May 2007

    Posted 06 Dec 2007 Link to this post

    Will you use Prometheus in a future version? Thanks
  25. 002C4F1C-4175-4CAA-8718-B9DFAD031432
    002C4F1C-4175-4CAA-8718-B9DFAD031432 avatar
    2 posts
    Member since:
    Dec 2007

    Posted 13 Dec 2007 Link to this post

  26. A3ACEC8A-084F-41E3-8EE2-2C93D1BC65B7
    A3ACEC8A-084F-41E3-8EE2-2C93D1BC65B7 avatar
    92 posts
    Member since:
    Nov 2007

    Posted 22 Jan 2008 Link to this post

    I am also interested in a prometheus version of this framework. I have been using prometheus exclusively with my latest projects and would like to introduce a ribbon control. I just dont want to have to use the old controls to get the job done. Telerik what is your stance on this?
  27. 9BBF470E-8C02-4D69-9B86-9BA42D6726B8
    9BBF470E-8C02-4D69-9B86-9BA42D6726B8 avatar
    1 posts
    Member since:
    Feb 2008

    Posted 06 Feb 2008 Link to this post

    Is it free ??
    if yes, why this message always appear

    a.d.menu 4.2.2 trial version. Copyright telerik © 2002-2007. To remove this message, please purchase a developer version.

    Thank you
  28. 3FF49BBF-4342-4F8D-82F7-F9B4401ABF07
    3FF49BBF-4342-4F8D-82F7-F9B4401ABF07 avatar
    3 posts
    Member since:
    Sep 2002

    Posted 09 Feb 2008 Link to this post

    Hi Russel,

    Thanks for this great looking ribbon, I am having one issue with IE 6.0 SP2 I know you have only tested it with version 7.0 but I was hoping you have an idea where to look to try and fix it. It is with registering the resize event as far as I can see what happens.

    The problem is that IE has an un ending loop going from function from RadTabStrip.js line 274:

    return function(e){
    if(!_4._domEventHandlingEnabled&&!_3){
    return false;
    }
    return _4[_2](e||window.event);
    };

    to function from RibbonBar.js line 30:
    function associateObjectWithEvent(object, methodName)
    {
        return (function(event) {event = event || window.event; return object[methodName] (event, this);})
    }

    Thanks anyway for the control

    -Mark
  29. E79D9A36-CC97-4258-A906-47D47BBFB4ED
    E79D9A36-CC97-4258-A906-47D47BBFB4ED avatar
    1 posts
    Member since:
    Feb 2008

    Posted 15 Feb 2008 Link to this post

    Hi Russel,

    Thanks for your wonderful application. I downloaded the latest version of the application framework. I tried to use the ribbon resizing manager which works fine on ribbons created during design view. But when creating the ribbons at runtime, ribbon resizing manager does not work. I even created instance of ribbonresizingmanager and attached all the required properties. Please let me know if you have solution for this problem.

    Regards,
    VS
  30. A7DA0FD7-252B-40BE-A127-B81B6105B3DE
    A7DA0FD7-252B-40BE-A127-B81B6105B3DE avatar
    5 posts
    Member since:
    Feb 2008

    Posted 02 Apr 2008 Link to this post

    Hi Russell,

    Is there a possibility to use the Office 2007 layout for the Radwindow?
    We now implemented the ribbon bar inside the Radwindow but it would be nice if we could get rid of the radwindow title bar and drag and drop the window by the applicationbar.

    Do you have such a thing planned?

    Regards,
    Rogier van de Roer
Back to Top

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