[Solved] Filter Template Column with Boolean Datafield error

0 Answers 3 Views
Grid
Fit2Page
Top achievements
Rank 3
Bronze
Bronze
Iron
Fit2Page asked on 30 Oct 2026, 09:48 AM

Hi,

 

I am trying to filter a Template Column with Boolean dataType like so:

<telerik:GridTemplateColumn UniqueName="AfhKwaliteit" DataField="AfhKwaliteit" DataType="System.Boolean" AutoPostBackOnFilter="True" CurrentFilterFunction="EqualTo" FilterDelay="4000" ShowFilterIcon="False">
<ItemTemplate>
<asp:Label TabIndex="1" runat="server" Text='<%#IIf(Container.DataItem("AfhKwaliteit"), "<i class=""fas fa-check-circle text-success""></i>", "<i class=""fas fa-times-circle text-danger""></i>") %>' />
</ItemTemplate>
</telerik:GridTemplateColumn>

When applying a check in one of the filter checkboxes we get:

Uncaught Sys.WebForms.PageRequestManagerServerErrorException: Sys.WebForms.PageRequestManagerServerErrorException: Unable to cast object of type 'System.Web.UI.WebControls.CheckBox' to type 'System.Web.UI.WebControls.TextBox'.

See also attached screenshot.

How should the settings be to filter on boolean values og these four columns?

 

Marc

 

No answers yet. Maybe you can help?

Tags
Grid
Asked by
Fit2Page
Top achievements
Rank 3
Bronze
Bronze
Iron
Share this question
or