or
string rtbTextFontStyle = Pages.QAAUTOSYNC1228183918.SilverlightApp.RichTextEditorTemplateRichtextbox.FontStyle.ToString();
Log.WriteLine(
"Font Style is " + rtbTextFontStyle);
@(Html.Telerik().Grid<RoleViewModel>()
.Name(
"RoleGrid"
)
.DataKeys(k => k.Add(m => m.Role))
.ToolBar(c => c.SubmitChanges())
.DataBinding(db => db.Ajax().OperationMode(GridOperationMode.Client)
.Select(
"SelectClientSideRole"
,
"User"
)
.Update(
"UpdateClientSideRole"
,
"User"
))
.Columns(c => {
c.Bound(m => m.Role).Hidden(
true
);
c.Bound(m => m.Description).ReadOnly(
true
);
c.Bound(m => m.IsInRole)
.ClientTemplate(
"<input name='IsInRole<#= Id#>' id='IsInRole<#= Id#>' type='checkbox' <#= IsInRole ? checked='checked' : '' #> />"
).Title(
"Is in role"
);
})
.Editable(e => e.Mode(GridEditMode.InCell))
.ClientEvents(e => e
.OnDataBinding(
"roleGrid.onDataBinding"
)
.OnRowDataBound(
"roleGrid.onRowDataBound"
)
.OnSubmitChanges(
"roleGrid.onSubmitChanges"
)
.OnComplete(
"roleGrid.onComplete"
)
.OnError(
"roleGrid.onError"
)))
<
td
class
=
"t-last"
>
<
input
name
=
"IsInRole0"
id
=
"IsInRole0"
type
=
"checkbox"
>
</
td
>
<
td
class
=
"t-last t-grid-edit-cell"
>
<
input
class
=
"check-box"
data-val
=
"true"
data-val-required
=
"The IsInRole field is required."
id
=
"IsInRole"
name
=
"IsInRole"
type
=
"checkbox"
value
=
"false"
>
<
input
name
=
"IsInRole"
type
=
"hidden"
value
=
"false"
>
<
span
class
=
"field-validation-valid"
data-valmsg-for
=
"IsInRole"
data-valmsg-replace
=
"true"
>
</
span
>
</
td
>