For developers: Input filters
Input filter are supported on top of RadGridBinders, this is actually wraps the input box with proper UI filters that is helpful for users to work with values like Boolean or Datetime for avoiding mistakes.
Now, let’s say we have a RadGrid binder that sequentially binds dynamic textboxes and labels.
<
sitefinity:RadGridBinder
id
=
"sectionItemBinder"
runat
=
"server"
ServiceUrl
=
"~/Sitefinity/Services/Configuration/ConfigSectionItems.svc"
TargetId
=
"sectionItemGrid"
BindOnLoad
=
"false"
DataKeyNames
=
"NodeName,SkipNested"
DataMembers
=
"Key,Value"
OnClientSaved
=
"SectionSaved"
OnClientError
=
"OnSectionError"
OnClientDataBound
=
"OnSectionDataBound"
OnClientDeleted
=
"OnNodeDeleted"
>
<
Containers
>
<
sitefinity:BinderContainer
runat
=
"server"
RenderContainer
=
"false"
>
<
label
>{{Key}}</
label
>
<
div
>
<
input
id
=
"Key"
type
=
"hidden"
value
=
"{{Key}}"
/>
<
input
type
=
"text"
value
=
"{{Value}}"
id
=
"Value"
filter
=
"true"
style
=
"width:300px;"
/>
</
div
>
</
sitefinity:BinderContainer
>
</
Containers
>
</
sitefinity:RadGridBinder
>
Here, for any Boolean value, like if the WCF service returns True/False, we want to replace that with radio buttons instead of the actual one. To enable filtering like above, we need to add a filter=”true” in our input boxes and everything will be taken care of.
