I'm using MonoRail and want to render the same view from two separate areas. I looked at all of the RenderView overloads and none of them have an area parameter, which seems odd to me. As a workaround I could create a user control and have two separate views, but it'd be nice to know if there's a way to call a view in a different area from RenderView.
Thanks,
Justin
IIRC you can pick any view by defining its path, e.g.:
RenderView("/area/controller/viewname");
Related
Basically, I need to set a visible property, or just call a hide() method to make it invisible in the screen, is there any way to do that?.
This currently isn't possible. You have two options, either make the view very small (1x1 px) or remove and recreate the view.
This feature is on our list of enhancements on github, feel free to add a comment there if you have any requirements.
Cheers
I'm looking for the best and fastest way to implement view pictured above and I need advice.
I should manually build views, subviews, cells and menus from the scratch or use NSTableView and modify in some way? Maybe some third way?
The views seem straightforward enough. Just use the standard views and subviews, image views etc. to build them. For the reordering of row functionality, you want to use a table view (with your custom cells).
This seems to me the fastest way to prototype, test and deploy.
There is a problem with sencha touch 2.
I am trying to understand how can I implement the same functionality which provides navigation view in sencha touch 2, but ....
Each item of the 'Ext.NavigationView' component should have it's own unique set of 'navigationBar' elements. I mean set of buttons, for example.
I know that I can do something like this:
this.getMain().getNavigationBar().rightBox.removeAll();
this.getMain().getNavigationBar().rightBox.add(this.getSettingButton());
//where 'getSettingButton' predefined by me a button
And do this action each time when 'push' event happens (clear 'navigationBar' and add appropriate set of buttons)
Of course, I even can implement 'Ext.Panel' with 'layout: card' and set of 'Ext.panel' elements in the 'items' property, each of which will be have unique 'toolbar'.
To control the behavior I can use 'setActiveItem' method.
But, I think each of these approaches is a bit weird, isn't it?
I expected that would be much more natural approach to implement it.
Most likely I don't know what I need. Confirm my doubts. What is the best way to do it.
Currently, Ext.NavigationView tends to perform navigation between "simple" views. "Simple" here means that your views are just panel with innerHTML, not the "complicated" ones with functional buttons, toolbars, etc.
As far as I know, there're 2 ways you could try:
If you still want to use Ext.NavigationView, you can customize your NavigationBar with titles, items (buttons, spacers, etc.) as normal components through navigationBar config, getter and setter.
(recommended) If your views are completely different from each other, you should use many Ext.Container with different items of your choice (for eg. first container with simple HTML announcement, second one with some extra Ext.Button, and so on). Simple use animateActiveItem() for animated navigation. This way is much more flexible, I suppose.
How can I remove & show new UI controls at one place in mac application.
I want to have some layout at one place..which will be shown in different conditions.
I am new to the Xcode & objective c.
Please help
Based on your comment, it sounds like you want something along the lines of a wizard. For that, I'd suggest grouping your forms into an NSTabView. You can disable the tabs, and call one of the various tab selection methods instead. Have a look at Apple's Introduction to Tab Views for more.
See NSView's -replaceSubview:with:
I found this example pretty helpful. He describes a good way to set up your related views. You can always add the animation later once you get the basics down.
I can make a single row IKImageBrowserView by setting the
[imageBrowser setContentResizingMask:NSViewWidthSizable];
but in this case while i drag an image inside image browser to rearrange it, the drop place highlights with horizontal line(vertical line expected).
how can this be changed?
Many thanks.
There is no defined way to do what you want.
You may be better off writing your own custom view where you can control every detail of how things are drawn. In general, Apple's controls are "as-is" and unless they provide an explicit way to control behavior or mention that you can custom an object in some way, don't count on being able to do it easily (if at all).
I would also suggest heading to http://bugreport.apple.com and making the enhancement request - it would be best if you attached a sample application demonstrating the behavior.
EDIT: You could also try out the NSCollectionView to see if it might work for you.