Grid filtering causing an error

3 posts, 0 answers
  1. Bill
    Bill avatar
    175 posts
    Member since:
    Apr 2010

    Posted 26 Jan 2011 Link to this post

    I am using version 2009.3.1314.35 of the toolset.

    I have a master/detail grid. The filters are only set on the master grid. When I try to perform a filter function, I get the attached errors.

    Here is my full html. The grid is working fine except for the filtering. Notice again, that the filtering is only for the master grid (in bold). I have the filtering turned off for the latter columns on the master grid.

    How can I perform the filtering without getting this error?

    <telerik:RadGrid ID="RadGridPatientInfo" runat="server" Width="100%" AllowSorting="True"
                    Skin="Outlook" ShowStatusBar="true" GridLines="None" OnNeedDataSource="RadGridPatientInfo_NeedDataSource" AllowFilteringByColumn="true"
                    OnDetailTableDataBind="RadGridPatientInfo_DetailTableDataBind" OnItemDataBound="RadGridPatientInfo_ItemDataBound"
                    ShowFooter="true" AutoGenerateColumns="false" ShowHeader="true" AllowPaging="True"
                    PageSize="10" HeaderStyle-Font-Bold="true">
                    <MasterTableView TableLayout="Fixed" AutoGenerateColumns="False" DataKeyNames="EDLogDetailID"
                        AllowFilteringByColumn="true" CommandItemDisplay="Top" Name="Patient">
                        <CommandItemTemplate>
                            <table width="100%">
                                <tr>
                                    <td align="left" width="50%">
                                        <asp:Label ID="lblPatient" runat="server" Style="font-weight: bold; color: White"
                                            Text="Patient Information"></asp:Label>
                                    </td>
                                </tr>
                            </table>
                        </CommandItemTemplate>
                        <DetailTables>
                            <telerik:GridTableView DataKeyNames="EDLogDetailID" Name="PatientInsurance" Width="100%"
                                BackColor="#EFEFFB" AllowFilteringByColumn="false" AllowSorting="false" CommandItemDisplay="Top"
                                TableLayout="Fixed" ShowHeader="true" AutoGenerateColumns="false">
                                <CommandItemTemplate>
                                    <table width="100%">
                                        <tr>
                                            <td align="left" width="50%">
                                                <asp:Label ID="lblPatientInsurance" runat="server" Style="font-weight: bold; color: White"
                                                    Text="Patient Insurance"></asp:Label>
                                            </td>
                                        </tr>
                                    </table>
                                </CommandItemTemplate>
                                <Columns>
                                    <telerik:GridTemplateColumn Visible="false">
                                        <ItemTemplate>
                                            <asp:Label ID="EdLogDetailID" runat="server" Text='<%# Bind("EdLogDetailID") %>' />
                                        </ItemTemplate>
                                    </telerik:GridTemplateColumn>
                                    <telerik:GridTemplateColumn Visible="false">
                                        <ItemTemplate>
                                            <asp:Label ID="PatientID" runat="server" Text='<%# Bind("PatientID") %>' />
                                        </ItemTemplate>
                                    </telerik:GridTemplateColumn>
                                    <telerik:GridTemplateColumn Visible="false">
                                        <ItemTemplate>
                                            <asp:Label ID="PatientInsuranceID" runat="server" Text='<%# Bind("PatientInsuranceID") %>' />
                                        </ItemTemplate>
                                    </telerik:GridTemplateColumn>
                                    <telerik:GridTemplateColumn Visible="false">
                                        <ItemTemplate>
                                            <asp:HiddenField ID="hdnhospPatAcctno" runat="server" Value='<%# Bind("hospPatAcctno") %>' />
                                        </ItemTemplate>
                                    </telerik:GridTemplateColumn>
                                    <telerik:GridBoundColumn DataField="priPolicyNumber" HeaderText="Pri Pol Nbr" ReadOnly="true"
                                        UniqueName="priPolicyNumber" HeaderStyle-Font-Bold="true">
                                        <HeaderStyle Font-Bold="True" />
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="guarEmployer" HeaderText="Guar Emp Nme" ReadOnly="true"
                                        UniqueName="guarEmployer" HeaderStyle-Font-Bold="true">
                                        <HeaderStyle Font-Bold="True" />
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="guarEmpPhone" HeaderText="Guar Emp Phone" ReadOnly="true"
                                        UniqueName="guarEmpPhone" HeaderStyle-Font-Bold="true">
                                        <HeaderStyle Font-Bold="True" />
                                    </telerik:GridBoundColumn>
                                    <telerik:GridTemplateColumn HeaderText="Ins Info" UniqueName="PatientInsInfo" ItemStyle-HorizontalAlign="Center"
                                        ItemStyle-Font-Bold="true" AllowFiltering="false">
                                        <ItemTemplate>
                                            <asp:ImageButton ID="imgInsInfo" runat="server" ImageUrl="~/images/icon_document.gif"
                                                ToolTip="Additional Patient Insurance Info" CausesValidation="False" OnClick="PatientInsInfo_Click" />
                                        </ItemTemplate>
                                        <HeaderStyle Font-Bold="True" />
                                        <HeaderStyle Width="35px" />
                                    </telerik:GridTemplateColumn>
                                    <telerik:GridTemplateColumn HeaderText="Created By" AllowFiltering="false">
                                        <ItemTemplate>
                                            <asp:Label ID="lblCreatedBy" runat="server" Text='<%# Bind("createdBy") %>' />
                                        </ItemTemplate>
                                        <HeaderStyle Width="80px" />
                                    </telerik:GridTemplateColumn>
                                    <telerik:GridTemplateColumn HeaderText="Created Date" AllowFiltering="false">
                                        <ItemTemplate>
                                            <asp:Label ID="lblCreatedDate" runat="server" Text='<%# Bind("createdDate") %>' />
                                        </ItemTemplate>
                                        <HeaderStyle Width="80px" />
                                    </telerik:GridTemplateColumn>
                                    <telerik:GridTemplateColumn HeaderText="Updated By" AllowFiltering="false">
                                        <ItemTemplate>
                                            <asp:Label ID="lblUpdatedBy" runat="server" Text='<%# Bind("updatedBy") %>' />
                                        </ItemTemplate>
                                        <HeaderStyle Width="80px" />
                                    </telerik:GridTemplateColumn>
                                    <telerik:GridTemplateColumn HeaderText="Updated Date" AllowFiltering="false">
                                        <ItemTemplate>
                                            <asp:Label ID="lblUpdatedDate" runat="server" Text='<%# Bind("updatedDate") %>' />
                                        </ItemTemplate>
                                        <HeaderStyle Width="80px" />
                                    </telerik:GridTemplateColumn>
                                </Columns>
                            </telerik:GridTableView>
                            <telerik:GridTableView DataKeyNames="EDLogDetailID" Name="VisitInfo" Width="100%"
                                BackColor="#EFEFFB" TableLayout="Fixed" ShowHeader="true" AutoGenerateColumns="false"
                                AllowFilteringByColumn="false" AllowSorting="false" CommandItemDisplay="Top">
                                <CommandItemTemplate>
                                    <table width="100%">
                                        <tr>
                                            <td align="left" width="50%">
                                                <asp:Label ID="lblPatientVisit" runat="server" Style="font-weight: bold; color: White"
                                                    Text="Patient Visits"></asp:Label>
                                            </td>
                                        </tr>
                                    </table>
                                </CommandItemTemplate>
                                <Columns>
                                    <telerik:GridBoundColumn Visible="false" DataField="EdLogDetailID" HeaderText="EDLogDtlID"
                                        UniqueName="EdLogDetailID" ReadOnly="true" HeaderStyle-Font-Bold="true">
                                        <HeaderStyle Font-Bold="True" />
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn Visible="false" DataField="PatientID" HeaderText="PatID"
                                        UniqueName="PatientID" ReadOnly="true" HeaderStyle-Font-Bold="true">
                                        <HeaderStyle Font-Bold="True" />
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn Visible="false" DataField="VisitInfoID" HeaderText="VisitInfoID"
                                        UniqueName="VisitInfoID" ReadOnly="true" HeaderStyle-Font-Bold="true">
                                        <HeaderStyle Font-Bold="True" />
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="DX1" HeaderText="DX1" UniqueName="DX1" ReadOnly="true"
                                        HeaderStyle-Font-Bold="true">
                                        <HeaderStyle Font-Bold="True" />
                                    </telerik:GridBoundColumn>
                                    <telerik:GridDateTimeColumn DataField="DX2" HeaderText="DX2" UniqueName="DX2" ReadOnly="true"
                                        HeaderStyle-Font-Bold="true">
                                        <HeaderStyle Font-Bold="True" />
                                    </telerik:GridDateTimeColumn>
                                    <telerik:GridBoundColumn DataField="DX3" HeaderText="DX3" ReadOnly="true" UniqueName="DX3"
                                        HeaderStyle-Font-Bold="true">
                                        <HeaderStyle Font-Bold="True" />
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="DX4" HeaderText="DX4" UniqueName="DX4" ReadOnly="true"
                                        HeaderStyle-Font-Bold="true">
                                        <HeaderStyle Font-Bold="True" />
                                    </telerik:GridBoundColumn>
                                    <telerik:GridDateTimeColumn DataField="DX5" HeaderText="DX5" UniqueName="DX5" ReadOnly="true"
                                        HeaderStyle-Font-Bold="true">
                                        <HeaderStyle Font-Bold="True" />
                                    </telerik:GridDateTimeColumn>
                                    <telerik:GridBoundColumn DataField="DX6" HeaderText="DX6" ReadOnly="true" HeaderStyle-Font-Bold="true"
                                        UniqueName="DX6">
                                        <HeaderStyle Font-Bold="True" />
                                    </telerik:GridBoundColumn>
                                    <telerik:GridDateTimeColumn DataField="ArrivalTime" HeaderText="Arr Tme" ReadOnly="true"
                                        HeaderStyle-Font-Bold="true" UniqueName="ArrivalTime">
                                        <HeaderStyle Font-Bold="True" />
                                    </telerik:GridDateTimeColumn>
                                    <telerik:GridBoundColumn DataField="Treating_Provider_Name" HeaderText="Treating Prov"
                                        ReadOnly="true" UniqueName="Treating_Provider_Name" HeaderStyle-Font-Bold="true">
                                        <HeaderStyle Font-Bold="True" />
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="Supervising_Provider_Name" HeaderText="Supervising Prov"
                                        ReadOnly="true" UniqueName="Supervising_Provider_Name" HeaderStyle-Font-Bold="true">
                                        <HeaderStyle Font-Bold="True" />
                                    </telerik:GridBoundColumn>
                                    <telerik:GridDateTimeColumn DataField="DrInTime" HeaderText="Dr In Time" ReadOnly="true"
                                        UniqueName="DrInTime" HeaderStyle-Font-Bold="true">
                                        <HeaderStyle Font-Bold="True" />
                                    </telerik:GridDateTimeColumn>
                                    <telerik:GridDateTimeColumn DataField="AccidentDate" DataFormatString="{0:d}" HeaderText="Accident Dte"
                                        ReadOnly="true" UniqueName="AccidentDate" HeaderStyle-Font-Bold="true">
                                        <HeaderStyle Font-Bold="True" />
                                    </telerik:GridDateTimeColumn>
                                    <telerik:GridDateTimeColumn DataField="AdmittedDate" DataFormatString="{0:d}" HeaderText="Admit Dte"
                                        ReadOnly="true" UniqueName="AdmittedDate" HeaderStyle-Font-Bold="true">
                                        <HeaderStyle Font-Bold="True" />
                                    </telerik:GridDateTimeColumn>
                                    <telerik:GridTemplateColumn HeaderText="Created By" AllowFiltering="false">
                                        <ItemTemplate>
                                            <asp:Label ID="lblCreatedBy" runat="server" Text='<%# Bind("CreatedBy") %>' />
                                        </ItemTemplate>
                                        <HeaderStyle Width="80px" />
                                    </telerik:GridTemplateColumn>
                                    <telerik:GridTemplateColumn HeaderText="Created Date" AllowFiltering="false">
                                        <ItemTemplate>
                                            <asp:Label ID="lblCreatedDate" runat="server" Text='<%# Bind("CreatedDate") %>' />
                                        </ItemTemplate>
                                        <HeaderStyle Width="80px" />
                                    </telerik:GridTemplateColumn>
                                    <telerik:GridTemplateColumn HeaderText="Updated By" AllowFiltering="false">
                                        <ItemTemplate>
                                            <asp:Label ID="lblUpdatedBy" runat="server" Text='<%# Bind("UpdatedBy") %>' />
                                        </ItemTemplate>
                                        <HeaderStyle Width="80px" />
                                    </telerik:GridTemplateColumn>
                                    <telerik:GridTemplateColumn HeaderText="Updated Date" AllowFiltering="false">
                                        <ItemTemplate>
                                            <asp:Label ID="lblUpdatedDate" runat="server" Text='<%# Bind("UpdatedDate") %>' />
                                        </ItemTemplate>
                                        <HeaderStyle Width="80px" />
                                    </telerik:GridTemplateColumn>
                                </Columns>
                            </telerik:GridTableView>
                            <telerik:GridTableView DataKeyNames="EDLogDetailID" Name="TreatmentInfo" Width="100%"
                                BackColor="#EFEFFB" AllowFilteringByColumn="false" AllowSorting="false" CommandItemDisplay="Top"
                                TableLayout="Fixed" ShowHeader="true" AutoGenerateColumns="false">
                                <CommandItemTemplate>
                                    <table width="100%">
                                        <tr>
                                            <td align="left" width="50%">
                                                <asp:Label ID="lblPatientTreatment" runat="server" Style="font-weight: bold; color: White"
                                                    Text="Patient Treatment"></asp:Label>
                                            </td>
                                        </tr>
                                    </table>
                                </CommandItemTemplate>
                                <Columns>
                                    <telerik:GridBoundColumn Visible="false" DataField="EdLogDetailID" HeaderText="EDLogDtlID"
                                        UniqueName="EdLogDetailID" ReadOnly="true" HeaderStyle-Font-Bold="true">
                                        <HeaderStyle Font-Bold="True" />
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn Visible="false" DataField="PatientID" HeaderText="PatID"
                                        UniqueName="PatientID" ReadOnly="true" HeaderStyle-Font-Bold="true">
                                        <HeaderStyle Font-Bold="True" />
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn Visible="false" DataField="VisitInfoID" HeaderText="VisitInfoID"
                                        UniqueName="VisitInfoID" ReadOnly="true" HeaderStyle-Font-Bold="true">
                                        <HeaderStyle Font-Bold="True" />
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn Visible="false" DataField="ChargeID" HeaderText="ChargeID"
                                        UniqueName="ChargeID" ReadOnly="true" HeaderStyle-Font-Bold="true">
                                        <HeaderStyle Font-Bold="True" />
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="DX1" HeaderText="DX1" UniqueName="DX1" ReadOnly="true"
                                        HeaderStyle-Font-Bold="true">
                                        <HeaderStyle Font-Bold="True" />
                                    </telerik:GridBoundColumn>
                                    <telerik:GridDateTimeColumn DataField="DX2" HeaderText="DX2" UniqueName="DX2" ReadOnly="true"
                                        HeaderStyle-Font-Bold="true">
                                        <HeaderStyle Font-Bold="True" />
                                    </telerik:GridDateTimeColumn>
                                    <telerik:GridBoundColumn DataField="DX3" HeaderText="DX3" ReadOnly="true" UniqueName="DX3"
                                        HeaderStyle-Font-Bold="true">
                                        <HeaderStyle Font-Bold="True" />
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="DX4" HeaderText="DX4" UniqueName="DX4" ReadOnly="true"
                                        HeaderStyle-Font-Bold="true">
                                        <HeaderStyle Font-Bold="True" />
                                    </telerik:GridBoundColumn>
                                    <telerik:GridDateTimeColumn DataField="DX5" HeaderText="DX5" UniqueName="DX5" ReadOnly="true"
                                        HeaderStyle-Font-Bold="true">
                                        <HeaderStyle Font-Bold="True" />
                                    </telerik:GridDateTimeColumn>
                                    <telerik:GridBoundColumn DataField="DX6" HeaderText="DX6" ReadOnly="true" HeaderStyle-Font-Bold="true"
                                        UniqueName="DX6">
                                        <HeaderStyle Font-Bold="True" />
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="CPT" HeaderText="CPT" ReadOnly="true" UniqueName="CPT"
                                        HeaderStyle-Font-Bold="true">
                                        <HeaderStyle Font-Bold="True" />
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="Mod1" HeaderText="Mod1" ReadOnly="true" UniqueName="Mod1"
                                        HeaderStyle-Font-Bold="true">
                                        <HeaderStyle Font-Bold="True" />
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="Mod2" HeaderText="Mod2" ReadOnly="true" UniqueName="Mod2"
                                        HeaderStyle-Font-Bold="true">
                                        <HeaderStyle Font-Bold="True" />
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="Mod3" HeaderText="Mod3" ReadOnly="true" UniqueName="Mod3"
                                        HeaderStyle-Font-Bold="true">
                                        <HeaderStyle Font-Bold="True" />
                                    </telerik:GridBoundColumn>
                                    <telerik:GridTemplateColumn HeaderText="Created By" AllowFiltering="false">
                                        <ItemTemplate>
                                            <asp:Label ID="lblCreatedBy" runat="server" Text='<%# Bind("CreatedBy") %>' />
                                        </ItemTemplate>
                                        <HeaderStyle Width="80px" />
                                    </telerik:GridTemplateColumn>
                                    <telerik:GridTemplateColumn HeaderText="Created Date" AllowFiltering="false">
                                        <ItemTemplate>
                                            <asp:Label ID="lblCreatedDate" runat="server" Text='<%# Bind("CreatedDate") %>' />
                                        </ItemTemplate>
                                        <HeaderStyle Width="80px" />
                                    </telerik:GridTemplateColumn>
                                    <telerik:GridTemplateColumn HeaderText="Updated By" AllowFiltering="false">
                                        <ItemTemplate>
                                            <asp:Label ID="lblDeletedBy" runat="server" Text='<%# Bind("UpdatedBy") %>' />
                                        </ItemTemplate>
                                        <HeaderStyle Width="80px" />
                                    </telerik:GridTemplateColumn>
                                    <telerik:GridTemplateColumn HeaderText="Updated Date" AllowFiltering="false">
                                        <ItemTemplate>
                                            <asp:Label ID="lblDeletedDate" runat="server" Text='<%# Bind("UpdatedDate") %>' />
                                        </ItemTemplate>
                                        <HeaderStyle Width="80px" />
                                    </telerik:GridTemplateColumn>
                                </Columns>
                            </telerik:GridTableView>
                        </DetailTables>
                        <ExpandCollapseColumn Visible="True">
                        </ExpandCollapseColumn>
                        <Columns>
                            <telerik:GridTemplateColumn Visible="false">
                                <ItemTemplate>
                                    <asp:HiddenField ID="hdnEDLogID" runat="server" Visible="false" Value='<%# Bind("EDLogID") %>' />
                                </ItemTemplate>
                            </telerik:GridTemplateColumn>
                            <telerik:GridTemplateColumn Visible="false">
                                <ItemTemplate>
                                    <asp:HiddenField ID="hdnFacilityID" runat="server" Visible="false" Value='<%# Bind("FacilityID") %>' />
                                </ItemTemplate>
                            </telerik:GridTemplateColumn>
                            <telerik:GridTemplateColumn Visible="false">
                                <ItemTemplate>
                                    <asp:HiddenField ID="hdnCheckOutUser" runat="server" Visible="false" Value='<%# Bind("CheckOutUser") %>' />
                                </ItemTemplate>
                            </telerik:GridTemplateColumn>
                            <telerik:GridTemplateColumn UniqueName="InsertPatient" ItemStyle-HorizontalAlign="Center"
                                ItemStyle-Font-Bold="true" AllowFiltering="false">
                                <ItemTemplate>
                                    <asp:ImageButton ID="imgInsert" runat="server" ImageUrl="~/images/Icon_Edit.gif"
                                        ToolTip="Insert data for all patients in DOS for PRESENT status" CommandName="DOSStatusUpdate"
                                        CausesValidation="False" OnClick="Patient_Click" />
                                </ItemTemplate>
                                <HeaderStyle Font-Bold="True" />
                                <HeaderStyle Width="35px" />
                            </telerik:GridTemplateColumn>
                            <telerik:GridBoundColumn DataField="FacilityName" HeaderText="Fac" ReadOnly="True"
                                HeaderStyle-Font-Bold="true" SortExpression="FacilityName" UniqueName="FacilityName">
                                <HeaderStyle Font-Bold="True" />
                            </telerik:GridBoundColumn>
                            <telerik:GridTemplateColumn HeaderText="EDLogDtlID" Visible="false">
                                <ItemTemplate>
                                    <asp:Label ID="lblEDLogDetailID" runat="server" Text='<%# Bind("EDLogDetailID") %>' />
                                </ItemTemplate>
                            </telerik:GridTemplateColumn>
                            <telerik:GridTemplateColumn Visible="false">
                                <ItemTemplate>
                                    <asp:HiddenField ID="hdnVisitInfoID" runat="server" Value='<%# Bind("VisitInfoID") %>' />
                                </ItemTemplate>
                            </telerik:GridTemplateColumn>
                            <telerik:GridTemplateColumn HeaderText="DOS">
                                <ItemTemplate>
                                    <asp:Label ID="lblDateOfService" runat="server" Text='<%# Bind("DateOfService","{0:d}") %>' />
                                </ItemTemplate>
                            </telerik:GridTemplateColumn>
                            <telerik:GridBoundColumn DataField="PatLName" HeaderText="Lst Nme" ReadOnly="True"
                                HeaderStyle-Font-Bold="true" SortExpression="PatLName" UniqueName="PatLName">
                                <HeaderStyle Font-Bold="True" />
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="PatFname" HeaderText="Fst Nme" ReadOnly="True"
                                HeaderStyle-Font-Bold="true" SortExpression="PatFname" UniqueName="PatFname">
                                <HeaderStyle Font-Bold="True" />
                            </telerik:GridBoundColumn>
                            <telerik:GridTemplateColumn HeaderText="Insert" SortExpression="HospAcctno">
                                <ItemTemplate>
                                    <asp:LinkButton ID="HospAcctno" runat="server" CommandName="SingleUpdate" Text='<%# Bind("HospAcctno") %>'
                                        CommandArgument="Insert" CausesValidation="False" OnClick="Patient_Click" ToolTip="Insert Patient for PRESENT status."
                                        ForeColor="Blue" />
                                </ItemTemplate>
                            </telerik:GridTemplateColumn>
                            <telerik:GridTemplateColumn HeaderText="Update" SortExpression="HospAcctno">
                                <ItemTemplate>
                                    <asp:LinkButton ID="HospAcctnoUp" runat="server" CommandName="SingleUpdate" Text='<%# Bind("HospAcctno") %>'
                                        CommandArgument="Update" CausesValidation="False" OnClick="Patient_Click" ToolTip="Update Patient for PREVIOUS status."
                                        ForeColor="Blue" />
                                </ItemTemplate>
                            </telerik:GridTemplateColumn>
                            <telerik:GridTemplateColumn HeaderText="MRN #" SortExpression="MRNumber">
                                <ItemTemplate>
                                    <asp:Label ID="MRNumber" runat="server" Text='<%# Bind("MRNumber") %>' />
                                </ItemTemplate>
                            </telerik:GridTemplateColumn>
                            <telerik:GridTemplateColumn HeaderText="Status" SortExpression="StatusDescription">
                                <ItemTemplate>
                                    <asp:Label ID="StatusDescription" runat="server" Text='<%# Bind("StatusDescription") %>' />
                                </ItemTemplate>
                            </telerik:GridTemplateColumn>
                            <telerik:GridTemplateColumn HeaderText="PatID" AllowFiltering="false" Visible="false">
                                <ItemTemplate>
                                    <asp:Label ID="lblPatientID" runat="server" Text='<%# Bind("PatientID") %>' />
                                </ItemTemplate>
                            </telerik:GridTemplateColumn>
                            <telerik:GridTemplateColumn HeaderText="PatInsID" Visible="false">
                                <ItemTemplate>
                                    <asp:Label ID="lblPatientInsuranceID" runat="server" Text='<%# Bind("PatientInsuranceID") %>' />
                                </ItemTemplate>
                            </telerik:GridTemplateColumn>
                            <telerik:GridTemplateColumn HeaderText="Pat Info" UniqueName="PatientInfo" ItemStyle-HorizontalAlign="Center"
                                ItemStyle-Font-Bold="true" AllowFiltering="false">
                                <ItemTemplate>
                                    <asp:ImageButton ID="imgInfo" runat="server" ImageUrl="~/images/icon_document.gif"
                                        ToolTip="Patient Demographics" CausesValidation="False" OnClick="MorePatientInfo_Click" />
                                </ItemTemplate>
                                <HeaderStyle Font-Bold="True" />
                                <HeaderStyle Width="35px" />
                            </telerik:GridTemplateColumn>
                            <telerik:GridTemplateColumn HeaderText="Created By" AllowFiltering="false">
                                <ItemTemplate>
                                    <asp:Label ID="lblCreatedBy" runat="server" Text='<%# Bind("CreatedBy") %>' />
                                </ItemTemplate>
                                <HeaderStyle Width="80px" />
                            </telerik:GridTemplateColumn>
                            <telerik:GridTemplateColumn HeaderText="Created Date" AllowFiltering="false">
                                <ItemTemplate>
                                    <asp:Label ID="lblCreatedDate" runat="server" Text='<%# Bind("CreatedDate") %>' />
                                </ItemTemplate>
                                <HeaderStyle Width="80px" />
                            </telerik:GridTemplateColumn>
                            <telerik:GridTemplateColumn HeaderText="Updated By" AllowFiltering="false">
                                <ItemTemplate>
                                    <asp:Label ID="lblUpdatedBy" runat="server" Text='<%# Bind("UpdatedBy") %>' />
                                </ItemTemplate>
                                <HeaderStyle Width="80px" />
                            </telerik:GridTemplateColumn>
                            <telerik:GridTemplateColumn HeaderText="Updated Date" AllowFiltering="false">
                                <ItemTemplate>
                                    <asp:Label ID="lblUpdatedDate" runat="server" Text='<%# Bind("UpdatedDate") %>' />
                                </ItemTemplate>
                                <HeaderStyle Width="80px" />
                            </telerik:GridTemplateColumn>
                            <telerik:GridTemplateColumn HeaderText="Unlk" UniqueName="PatientUnlock" ItemStyle-HorizontalAlign="Center"
                                ItemStyle-Font-Bold="true" AllowFiltering="false">
                                <ItemTemplate>
                                    <asp:ImageButton ID="imgUnlock" runat="server" ImageUrl="~/images/lock_open.png"
                                        ToolTip="Unlock Account" CausesValidation="False" OnClick="PatientUnlock_Click" />
                                </ItemTemplate>
                                <HeaderStyle Font-Bold="True" />
                                <HeaderStyle Width="35px" />
                            </telerik:GridTemplateColumn>
                        </Columns>
                    </MasterTableView>
                    <HeaderStyle Font-Bold="True"></HeaderStyle>
                </telerik:RadGrid>
  2. Radoslav
    Admin
    Radoslav avatar
    1564 posts

    Posted 28 Jan 2011 Link to this post

    Hi William,

    In order to filter the RadGrid TemplateColumn you need to need to set the DataField property for the column to a valid data field from the data source. This ensures that the control properly retrieves the data on which the filtering pattern will be applied. Please go through the following demo which demonstrates filtering on GridTemplateColumn.
    Grid / Filtering Template Columns

    Please give it try and let me know if the issue still exists.

    All the best,
    Radoslav
    the Telerik team
    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Bill
    Bill avatar
    175 posts
    Member since:
    Apr 2010

    Posted 28 Jan 2011 Link to this post

    Thanks Radoslav. Putting in the DataField solved the issue.
Back to Top