Aug 18, 2013, 11:27 PM
this.FormPanel(ModelState)
I hope you can guide me.
I'm returning my return action thus this.FormPanel (ModelState);
which recovered the following information:
I want to update the dataview with the information returned from errors
{"success":false,"errors":[{"id":"FrecDescripcion","msg":"Por favor ingresar la Frecuencia"},{"id":"FrecHoraInicio","msg":"Por favor ingresar Hora Inicial"},{"id":"FrecHoraFinal","msg":"Por favor ingresar Hora Final"}]}
I'm returning my return action thus this.FormPanel (ModelState);
which recovered the following information:
I want to update the dataview with the information returned from errors
{"success":false,"errors":[{"id":"FrecDescripcion","msg":"Por favor ingresar la Frecuencia"},{"id":"FrecHoraInicio","msg":"Por favor ingresar Hora Inicial"},{"id":"FrecHoraFinal","msg":"Por favor ingresar Hora Final"}]}
X.DataView()
.StyleHtmlContent(true)
.ItemSelector("li")
.Store(
X.ModelStateStore()
.ID("ModelStateStore1")
)
.Tpl(
X.XTemplate()
.Html(
@<text>
<ul >
<tpl for=".">
<li style="color:red;">{error}</li>
</tpl>
</ul>
</text>
)
)