PDA

View Full Version : [CLOSED] [MVC Razor] FileUploadField with FormPanel



UnifyEducation
Sep 19, 2012, 4:38 PM
Hi,

I got an error : "Uncaught ReferenceError: me is not defined" when using FileUploadField with FormPanel
Here is my code:



@model dynamic
@{
Layout = null;
}
@Html.X().ResourceManager()

@(Html.X().FormPanel().ID("PanelP1")
.Items(items => {
items.Add(Html.X().FileUploadField().ID("upload").Text("Add file"));
})
.Buttons(buttons =>
{
buttons.Add(Html.X().Button().ID("ButtonSave").Text("Save").Icon(Icon.DatabaseSave)
.DirectEvents(directEvents =>
{
directEvents.Click.IsUpload = true;
directEvents.Click.Url = "/Test/Save";
directEvents.Click.EventMask.ShowMask = true;
directEvents.Click.EventMask.Msg = "Loading...";
})
);
})
)


Do you have any idea to resolve this problem?
Thanks in advance

Vladimir
Sep 19, 2012, 4:57 PM
Thanks for the report. Fixed in SVN