This is a migrated thread and some comments may be shown as answers.

InnerItem does not exist in the type 'RadQuickAccessToolBar'

2 Answers 77 Views
RibbonBar
This is a migrated thread and some comments may be shown as answers.
Brian
Top achievements
Rank 1
Iron
Iron
Brian asked on 13 Apr 2018, 12:52 PM

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 Answers, 1 is accepted

Sort by
0
Brian
Top achievements
Rank 1
Iron
Iron
answered on 13 Apr 2018, 01:01 PM

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;

0
Accepted
Hristo
Telerik team
answered on 13 Apr 2018, 01:33 PM
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.
Tags
RibbonBar
Asked by
Brian
Top achievements
Rank 1
Iron
Iron
Answers by
Brian
Top achievements
Rank 1
Iron
Iron
Hristo
Telerik team
Share this question
or