0

私は現在、本質的にデータでいっぱいのラッドグリッドである一連のさまざまなレポートを持つ共有ポイント サイトを管理しています。ユーザーは、フィルタリングがほとんどのレポートで機能しなくなったと不満を述べています。

それらはすべて正常に機能していましたが、何らかの理由で一部のページのみがフィルタリングされ、他のページは何もしません。私はテレリックに比較的慣れていないため、並べ替えに問題が発生する理由がわかりません。

C# コードは SP 2010 の上にあります。

ここにradgridのコードがあります

                <%-- raok 10/2012 - add employee ID to report --%>
                <telerik:GridBoundColumn SortExpression="Employee_ID" HeaderText="Employee ID" HeaderButtonType="TextButton"
                    DataField="Employee_ID" Visible="true" AllowFiltering = "false">
                </telerik:GridBoundColumn>

                <telerik:GridBoundColumn SortExpression="Form_Has_Conflicts" HeaderText="Form Has Conflicts"
                    HeaderButtonType="TextButton" DataField="Form_Has_Conflicts" Visible="true" AllowFiltering = "false">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn SortExpression="Employee_Supervisor" HeaderText="Employee Supervisor"
                    HeaderButtonType="TextButton" DataField="Employee_Supervisor" Visible="true" AllowFiltering = "false">
                </telerik:GridBoundColumn>                            
                <telerik:GridBoundColumn SortExpression="Last_Name" HeaderText="Last Name" HeaderButtonType="TextButton"
                    DataField="Last_Name" Visible="true" AllowFiltering = "false">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn SortExpression="DateModified" HeaderText="Date Modified"
                    HeaderButtonType="TextButton" DataField="DateModified" Visible="true" AllowFiltering = "false">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn SortExpression="Employee_VP" HeaderText="Employee VP" HeaderButtonType="TextButton"
                    DataField="Employee_VP" Visible="true" AllowFiltering = "false">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn SortExpression="Employee_Supervisor" HeaderText="Employee Supervisor"
                    HeaderButtonType="TextButton" DataField="Employee_Supervisor" Visible="true" AllowFiltering = "false">
                </telerik:GridBoundColumn>
            </Columns>
        </telerik:GridTableView>
    </DetailTables>
    <Columns>
        <telerik:GridBoundColumn SortExpression="Title" HeaderText="Title" HeaderButtonType="TextButton"
            DataField="Title" Visible="True" AllowFiltering="true" FilterControlWidth = "260px" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains">
            <HeaderStyle Width="290px" />
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn SortExpression="Cycle_Year" HeaderText="Cycle Year" HeaderButtonType="TextButton"
                    DataField="Cycle_Year" Visible="false" AllowFiltering="false">
                </telerik:GridBoundColumn>
        <telerik:GridBoundColumn SortExpression="Form_ID" HeaderText="Form ID" HeaderButtonType="TextButton"
            DataField="ID" Visible="True" AllowFiltering="false">
            <HeaderStyle Width="60px" />
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn SortExpression="Form_Status" HeaderText="Form Status" HeaderButtonType="TextButton"
            DataField="Form_Status" Visible="false" AllowFiltering="false">
            <HeaderStyle Width="100px" />
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn SortExpression="Last_Modified_by" HeaderText="Last Modified by"
            HeaderButtonType="TextButton" DataField="Last_Modified_by" Visible="true" AllowFiltering="false">
            <HeaderStyle Width="150px" />
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn SortExpression="Created_By" HeaderText="Created By" HeaderButtonType="TextButton"
            DataField="Created_By" Visible="true" AllowFiltering="false">
            <HeaderStyle Width="150px" />
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn SortExpression="EmployeeFullName" HeaderText="Form Owner Last Name" HeaderButtonType="TextButton"
            DataField="EmployeeFullName" Visible="false" UniqueName="EmployeeFullNameColumn" AllowFiltering="false">
        </telerik:GridBoundColumn>
    </Columns>
</MasterTableView>
<ClientSettings>
    <Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="True">
    </Scrolling>
    <Selecting AllowRowSelect="true" />
</ClientSettings>

4

1 に答える 1

1

必要な場所に変更AllowFiltering="false"AllowFiltering="true"ます。

たとえば、「タイトル」フィルターのコードでは機能しますが、「Cycle_Year」では機能しません。

また、組み込みフィルターを使用するには、次のように設定する必要があることに注意してくださいAllowFilteringByColumn="True"

<telerik:RadGrid ID="SomeID" AllowFilteringByColumn="True"

カスタム フィルターを作成することもできます。詳細については、こちらを参照してください。また、フィルターに関するコンテンツ ツリーも確認してください。

また、これを設定してそのフィルターの開始フィルター オプションを設定していることにも気付きました。CurrentFilterFunction="SomeFilter"そのオプションを使用して何かをフィルター処理できない場合、たとえば数字に文字フィルターを使用するなど、機能しません。

于 2013-04-29T14:41:34.703 に答える