Jul 29, 2013, 4:31 PM
[CLOSED] Use RowEditing and CheckboxSelectionModel
Hi,
I'm using RowEditing and CheckboxSelectionModel in the same GridPanel. But it does not work in expect: when I click the checkbox, it active the editor too.
Can you tell me how to work around with this problem?
Thank you
I'm using RowEditing and CheckboxSelectionModel in the same GridPanel. But it does not work in expect: when I click the checkbox, it active the editor too.
Can you tell me how to work around with this problem?
Thank you
@model dynamic
@{
Layout = null;
}
@(Html.X().ResourceManager())
@(Html.X().GridPanel().Title("Test GridPanel").ForceFit(true).Height(200)
.Store(Html.X().Store().Model(Html.X().Model().Fields(Html.X().ModelField().Name("sample_field")))
.DataSource(new List<object> {new{sample_field="Test Sample Field"}, new{sample_field="Test Sample Field 2"}}))
.ColumnModel(Html.X().Column().DataIndex("sample_field").Text("Sample Field Header")
.Editor(Html.X().TextField()))
.SelectionModel(Html.X().CheckboxSelectionModel().Mode(SelectionMode.Multi).CheckOnly(true))
.Plugins(Html.X().RowEditing().ClicksToEdit(1)))
Last edited by Daniil; Jul 30, 2013 at 7:58 AM.
Reason: [CLOSED]