May 22, 2013, 8:25 PM
[CLOSED] MVC How to handle GridPanel ItemDblClick DirectEvent
Hi,
next question: How to write redirecting to specific url like for example Contractor/Edit/{0} {0}-index of dbl clicked row(Id value of element):
Here is what I tryed;
Thanks,
ViDom
next question: How to write redirecting to specific url like for example Contractor/Edit/{0} {0}-index of dbl clicked row(Id value of element):
Here is what I tryed;
@(Html.X().Container()
.ID("containerContractor")
.Layout(LayoutType.Fit)
.Items(
Html.X().GridPanel()
.Title("Contractors")
.Layout(LayoutType.Fit)
.AnchorHorizontal("100%")
.AnchorVertical("100%")
.Store(Html.X().Store()
.RemotePaging(true)
.PageSize(10)
.Model(Html.X().Model()
.Fields(
new ModelField("Akro"),
new ModelField("Name", ModelFieldType.String)
)
)
.DataSource(Model)
)
.ColumnModel(
Html.X().Column().Text("Akro").DataIndex("Akro").Flex(1),
Html.X().Column().Text("Name").DataIndex("Name")
)
.SelectionModel(
Html.X().RowSelectionModel().Mode(SelectionMode.Single)
)
.View(Html.X().GridView().StripeRows(true))
.DirectEvents(de=>de.ItemDblClick.Action="Edit")
.BottomBar(
Html.X().PagingToolbar()
.Items(
Html.X().ToolbarSpacer(10)
)
)
)
)
What am I missing here?Thanks,
ViDom
Last edited by Baidaly; May 23, 2013 at 6:47 PM.
Reason: [CLOSED]