I have a base form containing an Ultra Explorer Bar in Outlook Style Presentation Mode
on the base form, the UEB already has pre-defined groups Such as "Administration"
the form is then inherited, on the inherited form I can add new items and new groups, but I cannot add new items to the inherited groups (such as Administration)
Is it possible to add items to the inherited groups, or is this some restriction which means the base groups are fixed in the base class
Actually it appears that I can't add new groups or items to the inherited UEB, they are there in the designer, but you only see the original inherited groups at runtime
Hello ,
I have tried to reproduce your issue, so I have created a solution and added base form. I added UltraExplorerBar to the base form and added some tab and items to the UltraExplorerBar. I have set Modifiers property of UltraExplorerBar to public. Then I built my application and after the built I added to my solution inherited form, which was derived from my base form. I have tried to modify the tab and the items of the derived UltraExplorerBar and everything works fine. I am attaching my test sample and also a video of my test. I am using Infragistics 11.2 and visual Studio 2010 SR1. Please let me know if I am missing something.
Please let me know if you have any further questions.
Hi Hristo
Please ignore my second entry, I wasnt running initialiseComponent on my top level form so my new items were not turning up.
Thanks for your example. if you now open Form2, go into the ultraExplorerBar Designer, go to the Administrator Group and try to add another item, its all greyed out, stopping us from adding new items to groups created on the base form. Actually if you try to change the text for the Administrator group, you get a message that says "Cannot modify or delete an object that was created on a base form." so I guess you just cant with things the way they are!
So you cheated!
:)
Hello Larry,
The mentioned behavior with UltraExplorerBar in inherited WinForm is expected. You could reproduce the same with any other controls that contains similar collection.
Larry said: But Hey, I managed to watch the video and you are doing it on the inherited form!what's different?
If you want to achieve the result from video file you should do the steps below:
1. Open the attached sample "WinExplorerBarInherited" in your Visual Studio.
2. Clean your solution and Rebuild
3. I suppose that you are not able to add new Items in your Form2 [Design] to group "Administrator". It is expected, so continue with the steps below
4. Open "Form2.Designer.cs" file and remove these two lines:
- ((System.ComponentModel.ISupportInitialize)(this.ultraExplorerBar1)).BeginInit();
-((System.ComponentModel.ISupportInitialize)(this.ultraExplorerBar1)).EndInit();
5. Clean and Rebuild your solution again
6. Now if you take a look at the Form2[Design], you will be able to add new Items to group "Administrator".
NOTE: Please note that after added a new items to group "Administrator" (the groups from Main class) these two lines will appear again, and you will get the same behavior at the beginning. Also all items which are added from your inherited WinForm to group "Administrator" will disappear after Rebuild the solution, because the group "Administrator" in the main calss does not contains additional items (the items that you added from inherited class)
So finally this is expected behavior for this scenario and above approach is small temporary cheat.
Please let me know if you have any questions.
Regards
But Hey, I managed to watch the video and you are doing it on the inherited form!
what's different?
I'm Using VS 2010 SP1 Rel and infragistics 11.2