Office 2007 Ribbon UI

199 posts, 0 answers
  1. p_e_t_e_r
    p_e_t_e_r 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. Sebastian
    Admin
    Sebastian avatar
    9934 posts

    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. p_e_t_e_r
    p_e_t_e_r 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. Sebastian
    Admin
    Sebastian avatar
    9934 posts

    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. p_e_t_e_r
    p_e_t_e_r 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. teletest51
    teletest51 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. p_e_t_e_r
    p_e_t_e_r 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. teletest51
    teletest51 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. teletest51
    teletest51 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. arijit
    arijit 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. Richard Lemmon
    Richard Lemmon 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. p_e_t_e_r
    p_e_t_e_r 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. Pierre
    Pierre avatar
    212 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. Richard Lemmon
    Richard Lemmon 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. p_e_t_e_r
    p_e_t_e_r 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. Richard Lemmon
    Richard Lemmon 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. Vimal
    Vimal 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. Russell Mason
    Russell Mason 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. Tim Larson
    Tim Larson avatar
    19 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. rgf21
    rgf21 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. Russell Mason
    Russell Mason 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. NS
    NS avatar
    179 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. Sjur
    Sjur 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. rgf21
    rgf21 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. Vanathi
    Vanathi avatar
    2 posts
    Member since:
    Dec 2007

    Posted 13 Dec 2007 Link to this post

  26. Michael Josiah
    Michael Josiah 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. A.
    A. 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. Mark Nijhof
    Mark Nijhof 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. V
    V 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. Rogier
    Rogier 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