Click here to Skip to main content
15,849,594 members
Please Sign up or sign in to vote.
2.00/5 (2 votes)
See more:
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 :)
Posted
Updated 29-Apr-15 3:02am
v3
Comments
Monicavensaslas 29-Apr-15 7:57am    
Sorry.. I have missed someparts in the code..
Please find the below code:
<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 uniquename="Country" headertext="Country Name" datafield="Country">

<radg:gridboundcolumn uniquename="State" headertext="State Name" datafield="State">

<radg:gridboundcolumn uniquename="CustType" headertext="Type" datafield="CustType">

<radg:gridboundcolumn uniquename="partner_rel" headertext="Partner Type" datafield="partner_rel">

<radg:gridboundcolumn uniquename="RelationType" headertext="Relation Type" datafield="RelationType">

<radg:gridboundcolumn uniquename="fname" headertext="Account Manager" datafield="fname">




<clientsettings>
<clientevents onrowselected="RowSelected">
<selecting allowrowselect="True">

Monicavensaslas 30-Apr-15 3:28am    
I have tried this also... but not working..This same code is working in another form..

1 solution

With all these code, it is very difficult to find out the issue. I would suggest you to go through the official document - Grid - Basic Filtering[^] carefully an dimplement this in your project.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900