PDA

View Full Version : [CLOSED] MVC - ItemsFromPatial and Item's namespace



immenso
Apr 06, 2014, 1:55 AM
Hi there,

I have a panel whose items are form a partial view. I set a namespace for the panel but its items do not inherit that namespace.

It is an issue of ext.net or it is the right thing your component is doing?

Thanks in advance.


x.Panel().Frame(true).Namespace("Sample").Title(TextResource.GeneralInformation).BodyPaddi ng(10).Layout(LayoutType.Anchor).ItemsFromPartial("View1")

View 1:


@x.TextFieldFor(m => m.AnsvarligNavn).AnchorHorizontal("100%")svarligNavn_Hint)
@x.TextFieldFor(m => m.AnsvarligTelefon).AnchorHorizontal("100%")
@x.TextFieldFor(m => m.AnsvarligEmail).AnchorHorizontal("100%")

Vladimir
Apr 06, 2014, 2:19 AM
Yes, namespace will not be inherited under Razor because there is no controls hierarchy (there is no control term under Razor) if subwidgets are located in another view

You have to set namespace for subitems manually

immenso
Apr 07, 2014, 10:36 AM
Yes, namespace will not be inherited under Razor because there is no controls hierarchy (there is no control term under Razor) if subwidgets are located in another view

You have to set namespace for subitems manually

Hi Vladimir,

Thank you.