InnerItem does not exist in the type 'RadQuickAccessToolBar'

3 posts, 1 answers
  1. Brian
    Brian avatar
    37 posts
    Member since:
    Jul 2010

    Posted 13 Apr 2018 Link to this post

    I apologize if this is not the correct area, I did not see one for this.

    With that said, I am working on the Bug Tracker example you have posted, and am trying to compile it and step thru what it does. I opened the ZIP file and extracted the contents. Went to compile the C# portion of the project and I get two errors.
    The type name 'InnerItem' does not exist in the type of 'RadQuickAccessToolBar' and method 'GetInnerItem' accepting a first argument of type 'RadQuickAccessToolBar' could not be found (are you missing a directive or an assembly reference?)

    This is the offending code section.

    private void CustomizeRibbon()
    {
        radRibbonBar1.RibbonBarElement.ApplicationMenuRightColumnWidth = 0;
        radRibbonBar1.OptionsButton.Visibility = ElementVisibility.Collapsed;
        RibbonBar.ExitButton.Visibility = ElementVisibility.Collapsed;
        RadQuickAccessToolBar.InnerItem item = RibbonBar.RibbonBarElement.QuickAccessToolBar.GetInnerItem();
        item.Visibility = ElementVisibility.Collapsed;
        radRibbonBar1.StartButtonImage = Resources.bug_logo;
    }

    I tried to update to the current WinControls.UI and that made it worse. Is this an older control thing?

     


  2. Brian
    Brian avatar
    37 posts
    Member since:
    Jul 2010

    Posted 13 Apr 2018 in reply to Brian Link to this post

    If found the answer;

    take the two lines;

    RadQuickAccessToolBar.InnerItem item = RibbonBar.RibbonBarElement.QuickAccessToolBar.GetInnerItem();
     item.Visibility = ElementVisibility.Collapsed;

     

    and change with;

                radRibbonBar1.RibbonBarElement.QuickAccessToolBar.Visibility = ElementVisibility.Collapsed;

  3. Answer
    Hristo
    Admin
    Hristo avatar
    1508 posts

    Posted 13 Apr 2018 Link to this post

    Hello Brian,

    Thank you for writing.

    I confirm that at the moment this is the correct way to collapse the whole QuickAccessToolBar element. The same object can also be accessed this way: 
    this.radRibbonBar1.QuickAccessToolBar.Visibility = ElementVisibility.Collapsed;

    Let me know if you need further assistance.

    Regards,
    Hristo
    Progress Telerik
    Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top