我的asp.net gridview周围有一个更新面板。我也有一个自动建议文本框,用户可以在其中根据名称过滤网格视图,该名称可以与围绕网格视图的更新面板一起使用。我有一个templatefield作为带有链接按钮的列,它会打开一个模式并根据该行的数据在该模式中显示一个图形。仅当我删除gridview周围的更新面板时,此方法才有效。但是,我需要gridview周围的更新面板才能使名称过滤器起作用。
有人可以建议我如何确保自动建议过滤器既可以过滤gridview,又可以使模态也起作用?绝对与更新面板有关,因为我将其保留在其中,如果我将其删除,则一部分起作用,而另一部分起作用。
<div>
<asp:updatepanel id="updatepangrid" runat="server" >
<ContentTemplate>
<asp:GridView ID="gvKPISummary" runat="server" AllowSorting="True" OnRowDataBound="gvKPISummary_RowDataBound" OnPreRender="gvKPISummary_PreRender" caption='<table width="100%" class="CssStyle"><tr><td class="text_Title"> </td></tr></table>' OnSorting="gvKPISummary_Sorting" CellPadding="8" GridLines="Horizontal" AutoGenerateColumns="False" BackColor="White" BorderColor="#00AEEF" BorderStyle="Solid" BorderWidth="3px" >
<AlternatingRowStyle BackColor="Silver" />
<Columns>
<asp:TemplateField HeaderText="MeasureID">
<ItemTemplate>
<asp:Label ID="lblMeasureID" runat="server" Text='<%# Eval("MeasureID") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="MeasureDesc">
<ItemTemplate>
<asp:Label ID="lblMeasureDesc" runat="server" Text='<%# Eval("MeasureDesc") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="TotalCases" SortExpression="TotalCases">
<ItemTemplate>
<asp:HyperLink ID="TotalCases" Target="_blank" runat="server" Text='<%# Eval("TotalCases") %>' />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="IncludedCases" SortExpression="IncludedCases">
<ItemTemplate>
<asp:HyperLink ID="IncludedCases" Target="_blank" runat="server" Text='<%# Eval("IncludedCases") %>' />
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField DataField="CompletedOnTime" HeaderText="CompletedOnTime" ReadOnly="true" SortExpression="CompletedOnTime" >
<HeaderStyle />
</asp:BoundField>
<asp:TemplateField HeaderText="Target">
<ItemTemplate>
<asp:Label ID="lblTarget" runat="server" Text='<%# Eval("Target") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="AvgDaysTaken" >
<ItemTemplate>
<asp:LinkButton ID="lnkBtnEdit" runat="server" Text='<%# Eval("AvgDaysTaken") %>'
OnClick="DisplayModal"></asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField DataField="PercentageOnTime" HeaderText="PercentageOnTime" ReadOnly="true" SortExpression="PercentageOnTime" DataFormatString="{0:0.0}%">
<HeaderStyle />
</asp:BoundField>
<asp:BoundField DataField="CompletedLate" HeaderText="CompletedLate" ReadOnly="true" SortExpression="CompletedLate" >
<HeaderStyle />
</asp:BoundField>
<asp:BoundField DataField="AvgDaysOver" HeaderText="AvgDaysOver" ReadOnly="true" SortExpression="AvgDaysOver">
<HeaderStyle />
</asp:BoundField>
<asp:BoundField DataField="1 - 22" HeaderText="1 - 22" ReadOnly="true" SortExpression="1 - 22">
<HeaderStyle />
</asp:BoundField>
<asp:BoundField DataField="23 - 44" HeaderText="23 - 44" ReadOnly="true" SortExpression="23 - 44">
<HeaderStyle />
</asp:BoundField>
<asp:BoundField DataField="45 - 66" HeaderText="45 - 66" ReadOnly="true" SortExpression="45 - 66">
<HeaderStyle />
</asp:BoundField>
<asp:BoundField DataField="67+" HeaderText="67+" ReadOnly="true" SortExpression="67+">
<HeaderStyle />
</asp:BoundField>
<asp:TemplateField HeaderText="Exempt" SortExpression="Exempt">
<ItemTemplate>
<asp:HyperLink ID="Exempt" Target="_blank" runat="server" Text='<%# Eval("Exempt") %>' />
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField DataField="AvgDaysOverExempt" HeaderText="AvgDaysOverExempt" ReadOnly="true" SortExpression="AvgDaysOverExempt" >
<HeaderStyle />
</asp:BoundField>
<asp:TemplateField HeaderText="ChartData" Visible="false">
<ItemTemplate>
<asp:Label ID="lblChartData" runat="server" Text='<%# Eval("ChartData") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
</Columns>
<FooterStyle BackColor="White" ForeColor="#00AEEF" />
<HeaderStyle BackColor="#00AEEF" Font-Bold="True" ForeColor="White" />
<RowStyle BackColor="White" ForeColor="#333333" />
<SelectedRowStyle BackColor="#339966" Font-Bold="True" ForeColor="White" />
<SortedAscendingCellStyle BackColor="#F7F7F7" />
<SortedAscendingHeaderStyle BackColor="#487575" />
<SortedDescendingCellStyle BackColor="#E5E5E5" />
<SortedDescendingHeaderStyle BackColor="#275353" />
</asp:GridView>
</ContentTemplate>
</asp:updatepanel>
<br />
<br />
</div>