PDA

View Full Version : [CLOSED] Layout Problem



matrixwebtech
Sep 01, 2014, 7:58 PM
I design with bellow code ,when I run nothing is coming,but if I remove the formpanel "F2" from design then design of "F1" is visible,but I cant figure-out
what mistake I am doing,may be I have select wrong layout.can you please push me to right way?


@(X.Panel().Width(480).Padding(5).Layout(LayoutTyp e.VBox).LayoutConfig(new VBoxLayoutConfig { Align = VBoxAlign.Stretch })
.Title("Qualification & Work Experience").Border(false).Height(440)
.ID("t4")
.Items
(
X.FormPanel().ID("F1")
.Title("Qualification")
.Layout(LayoutType.Column)
.Items(
X.Hidden().ID("h")
,
X.FieldSet()
.Border(false)
.Items(
X.TextField()

.FieldLabel("Degree")

),
X.GridPanel()
.ID("GridPanelQualification")
.ColumnModel
(

X.Column()
//---- Combo Box -----

.Text("Degree")

)


)
.Buttons(

Html.X().Button()
.Text("Add")
.Icon(Icon.UserAdd)

)
,

X.FormPanel().ID("F2")
.Title("Work Experience")
.Layout(LayoutType.Column)
.Items(
X.FieldSet()
.Border(false)
.Items(
X.TextField()
.ID("txtCompanyName")
.FieldLabel("Company Name")
)
,
X.GridPanel()
.ID("GridWorkExperience")

.ColumnModel
(
X.Column()

.Text("CompanyName")

)
.Buttons(
Html.X().Button()
.Text("Add")
.Icon(Icon.UserAdd)

)
)

)
)

matrixwebtech
Sep 02, 2014, 11:01 AM
I solve this.mark this as close.