I have a rather specific problem for which I hope someone can point me in the right direction.
We have several UltraWinGrids in our application and would like to add a standardized toolbar to each of them without impacting the legecy code that depends on these grids.
So I was wondering if there was actually a way to extend the UltraWinGrid Class and programmatically add a toolbar, so that whenever an instance of the extended class gets created the grid would always be decorated with said toolbar.
To better illustrate my intention I attached a little mockup
Hello MoDikus,
In addition to what Mike has suggested, I recommend submitting a product idea on our website, using this link, for a stand-alone control that provides unity, as well as functionality, from both the UltraToolbarsManager and UltraWinGrid.
Also, I'd like to share a sample that I put together that demonstrates what you have in your mockup on a single form. It includes functionality to load and save a configuration layout of the toolbar manager that can be used across your application(s). The file that's generated, (binary, xml), contains the layout and properties of the toolbars and tools so it can be used as your standardized toolbar throughout your application(s) and areas where you have your grids.
You will find in the sample a load and save tool. If you attempt to load first, the application won't find and load the new form with it's default tools. If you choose save, then the new form will include the main forms tools. It also demonstrates how the grid can be positioned along side with the toolbarmanager.For more details about managing your layout configuration you can visit our documentation, using this link.
Let me know if you have any questions regarding this matter.
Hello Mike, hello Michael,
first of all thank you both so much for your quick responses.
@Mike
That's what I thought initially as well. The problem I found with this though is (at least while creating a User Control) it hides all the events and properties of the UltraGrid from the existing code. I could of course propagate the events further and expose the required properties through getterMethods or properties, or maybe restructure the wiring of the event handling from the vb Handles clause to AddHandler (though I haven't tried this yet). It doesn't feel as clean of an approach as inheriting from UltraGrid Though and then spawning a ToolBar at the top of the client area during construction and exposing said Toolbar via a property.
@Michael
Thank you for your suggestion for submitting a feature request. I will do so as soon as I have a little more time.
In regards to the provided sample project I was wondering if this could be provided with Infragistics v 11.1 References as well, or if at least the described features can be used with said version as it is the only one we have available for the project in question atm.
@Both
I think I'll try both suggestions to decide which one will actually yield the most suitable result.
Thanks again for your support... it is highly appreciated
MoDikus said: @Michael Thank you for your suggestion for submitting a feature request. I will do so as soon as I have a little more time. In regards to the provided sample project I was wondering if this could be provided with Infragistics v 11.1 References as well, or if at least the described features can be used with said version as it is the only one we have available for the project in question atm.
Yes, 11.1 provides the functionality that I previously mentioned regarding loading/saving layout configuration of the WinToolbarsManager. Does that answer all your questions?
For more details you can visit the 11.1 documentation