问题描述
在我的表格中使用telerik radgrid。在那个过滤器选项不起作用..我不知道为什么它不起作用..
我的代码是:
< radG:RadGrid ID = RadGrid1runat =serverCssClass =RadGridGridLines =NoneAllowPaging =True
PageSize =25AllowSorting =TrueWidth =100%AutoGenerateColumns =False EnableAJAX =True
HorizontalAlign =NotSetOnNeedDataSource =RadGrid1_NeedDataSourceOnSelectedIndexChanged =Typeid_SelectedIndexChanged
AllowFilteringByColumn =True>
< MasterTableView AutoGenerateColumns =falseAllowFilteringByColumn =trueShowFooter =TrueGridLines =NoneDataKeyNames =clientid
TableLayout =Auto>
< Columns>
< radG:GridBoundColumn UniqueName =FirmNameHeaderText =Firm NameReadOnly =trueDataField =FirmName>
< / radG:GridBoundColumn>
< radG:GridBoundColumn UniqueName =CountryHeaderText =Country NameDataField =Country>
< / radG:GridBoundColumn>
< radG:GridBoundColumn UniqueName =StateHeaderText =State NameDataField =State>
< / radG:GridBoundColumn>
< radG:GridBoundColumn UniqueName =CustTypeHeaderText =TypeDataField =CustType>
< / radG:GridBoundColumn>
< radG:GridBoundColumn UniqueName =partner_relHeaderText =Partner TypeDataField =partner_rel>
< / radG:GridBoundColumn>
< radG:GridBoundColumn UniqueName =RelationTypeHeaderText =Relation TypeDataField =RelationType>
< / radG :GridBoundColumn>
< radG:GridBoundColumn UniqueName =fnameHeaderText =Account ManagerDataField =fname>
< / radG:GridBoundColumn>
< / Columns>
< / MasterTableView>
< ClientSettings>
< ClientEvents OnRowSelected =RowSelected>< / ClientEvents>
<选择AllowRowSelect =True>< /选择>
< ; / ClientSettings>
< / radG:RadGrid>
请尽快帮助..
提前致谢:)
Hi,
In my form am using telerik radgrid.In that filter option is not working.. I dont know why it is not working..
My code is:
<radG:RadGrid ID="RadGrid1" runat="server" CssClass="RadGrid" GridLines="None" AllowPaging="True"
PageSize="25" AllowSorting="True" Width="100%" AutoGenerateColumns="False" EnableAJAX="True"
HorizontalAlign="NotSet" OnNeedDataSource="RadGrid1_NeedDataSource" OnSelectedIndexChanged="Typeid_SelectedIndexChanged"
AllowFilteringByColumn="True">
<MasterTableView AutoGenerateColumns="false" AllowFilteringByColumn="true" ShowFooter="True" GridLines="None" DataKeyNames="clientid"
TableLayout="Auto">
<Columns>
<radG:GridBoundColumn UniqueName="FirmName" HeaderText="Firm Name" ReadOnly="true" DataField="FirmName">
</radG:GridBoundColumn>
<radG:GridBoundColumn UniqueName="Country" HeaderText="Country Name" DataField="Country">
</radG:GridBoundColumn>
<radG:GridBoundColumn UniqueName="State" HeaderText="State Name" DataField="State">
</radG:GridBoundColumn>
<radG:GridBoundColumn UniqueName="CustType" HeaderText="Type" DataField="CustType">
</radG:GridBoundColumn>
<radG:GridBoundColumn UniqueName="partner_rel" HeaderText="Partner Type" DataField="partner_rel">
</radG:GridBoundColumn>
<radG:GridBoundColumn UniqueName="RelationType" HeaderText="Relation Type" DataField="RelationType">
</radG:GridBoundColumn>
<radG:GridBoundColumn UniqueName="fname" HeaderText="Account Manager" DataField="fname">
</radG:GridBoundColumn>
</Columns>
</MasterTableView>
<ClientSettings>
<ClientEvents OnRowSelected="RowSelected"></ClientEvents>
<Selecting AllowRowSelect="True"></Selecting>
</ClientSettings>
</radG:RadGrid>
Please help ASAP..
Thanks in advance :)
推荐答案
这篇关于Telerik radgrid过滤器无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!