Apr 02, 2013, 3:29 AM
Display DatePicker On Razor Syntax MVC3
Hi,
I have a problem, iwant using datepicker on selected option.
but I can not display datepicker calendar.
this my code
how to display datepicker? whats wrong with my code,
and I can not find any reference of http://mvc.ext.net/
reference from http://docs.sencha.com/ext-js/4-1/#!...-selectHowever
thanks,
4L4Y
I have a problem, iwant using datepicker on selected option.
but I can not display datepicker calendar.
this my code
@Html.X().ResourceManager().Theme(Theme.Gray)
@(Html.X().Window().Width(400).Height(200).BodyPadding(5).Resizable(true)
.TopBar(
Html.X().Toolbar().EnableOverflow(true).Items(
/*Nested Menu menggunakan objek check*/
Html.X().Button().Text("More options").Menu(
Html.X().Menu()
.Items(
Html.X().MenuItem().Text("Theme").Icon(Icon.Theme).Menu(
Html.X().Menu().Items(
Html.X().CheckMenuItem().Text("Black").Group("Theme").CheckHandler("MyApp.onItemCheck")
).Items(
Html.X().CheckMenuItem().Text("Gray").Group("Theme").CheckHandler("MyApp.onItemCheck")
).Items(
Html.X().CheckMenuItem().Text("Blue").Group("Theme").CheckHandler("MyApp.onItemCheck")
)
)
).Items(
Html.X().MenuItem().Text("Choose a Date").Icon(Icon.Calendar).Menu(
Html.X().Menu().Items(
Html.X().DateMenu().Picker(picker =>
{
picker.Listeners.Select.Handler = "alert(Ext.String.format('You chose {0}.',Ext.util.Format.date('2012-09-14', 'M j, Y')));";
})
)
)
).Items(
Html.X().MenuSeparator()
).Items(
Html.X().MenuItem().Text("Choose a Color").Icon(Icon.Color).Menu(
Html.X().Menu().Items(
Html.X().ColorMenu().Listeners(ev=>ev.Select.Handler="alert(Ext.String.format('You chose {0}.',color));"))
)
)
)
)
))
how to display datepicker? whats wrong with my code,
and I can not find any reference of http://mvc.ext.net/
reference from http://docs.sencha.com/ext-js/4-1/#!...-selectHowever
thanks,
4L4Y
Last edited by 4L4Y; Apr 02, 2013 at 3:32 AM.