Radgrid Filtering Problem

2 posts, 0 answers
  1. Lokesh
    Lokesh avatar
    89 posts
    Member since:
    Jul 2012

    Posted 04 May 2011 Link to this post

    Hi Team,
    I have a radgrid with template columns in it.
    When I try to apply filter on the ttemplate column it gives me the strange error.
    I tried a lot to get the solution but couldn't find...     :(
    Please help me at this..

    This is what I have on aspx :

    <telerik:RadGrid ID="rgProjectBudget" runat="server" AllowFilteringByColumn="true" AllowMultiRowSelection="true" AllowPaging="true"
                                                OnNeedDataSource="rgProjectBudget_NeedDataSource" OnDeleteCommand="rgProjectBudget_DeleteCommand" PageSize="50"
                                                OnItemDataBound="rgProjectBudget_ItemDataBound" OnPreRender="rgProjectBudget_PreRender" PagerStyle-AlwaysVisible="true" >
                                                <ClientSettings  Selecting-AllowRowSelect="true">
                                                    <ClientEvents OnRowSelected="RowSelected" />
                                        <MasterTableView EditMode="InPlace">
                                            <telerik:GridBoundColumn DataField="COABudgetDetailID" DataType="System.Int32"
                                                                    HeaderText="COABudgetDetailID" Display="false"
                                                                    UniqueName="COABudgetDetailID" AutoPostBackOnFilter="true">
    <telerik:GridTemplateColumn HeaderText="Project Budget" UniqueName="SecondaryEntityBudget"
                                                                        CurrentFilterFunction="Contains" AllowFiltering="true" AutoPostBackOnFilter="true">
                                                                        <ItemStyle Width="20%" />
                                                   <asp:TextBox ID="txtBudgetAmount" runat="server" Width="70px"
                                                            Text='<%# DataBinder.Eval(Container,"DataItem.SecondaryEntityBudget") %>' />
                                            <telerik:GridBoundColumn UniqueName="COAActualAmount" HeaderText="Actual Amount" DataField="COAActualAmount"
                                                                     CurrentFilterFunction="EqualTo" AllowFiltering="true" DataType="System.Double" FilterControlWidth="30%"
                                                <HeaderStyle Width="10%" HorizontalAlign="Left" />
                                                <ItemStyle  Width="10%" HorizontalAlign="Left" />

    I want to apply filter on SecondaryEntityBudget column.
    I have attached the image file of the error that I am getting.
    Please help me guys...   :(

  2. Iana Tsolova
    Iana Tsolova avatar
    3388 posts

    Posted 06 May 2011 Link to this post

    Hello Lokesh,

    Try setting the DataField property of the GridTemplateColumn. Find more information in the below article:

    All the best,
    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.

Back to Top