Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 94857

RadGrid filter on label in GridTemplateColumn

$
0
0

Hi,

 

I have a RadGrid with a GridTemplateColumn that has a label inside it. This label is populated after the initial datatable is bound to the grid.

Is there any way that I can filter on the contents of this label without having it in my initial datatable?

Here is my template column

<telerik:GridTemplateColumnAllowFiltering="true"HeaderText="Type(s)"UniqueName="column10"
                    AutoPostBackOnFilter="true"ShowFilterIcon="false">
    <ItemTemplate>
        <asp:LabelID="LocationTypeLabel"runat="server"></asp:Label>
    </ItemTemplate>
</telerik:GridTemplateColumn>

This is how I populate the label. The datatable _dtTypes is actually the second table returned in the dataset whereas the first table is the datasource of the grid.

ForEachdr AsDataRow In_dtTypes.Select("CustomerID = "& e.Item.DataItem("CustomerID"))
  lbl.Text = lbl.Text & dr("LocationType") & ", "
Next

Viewing all articles
Browse latest Browse all 94857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>