Click here to Skip to main content
15,891,529 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am beginner in telericRadControls.
In .aspx page I want telericGrid which will contain filtering option, not with textbox, but with multiselect checkbox list (sumthing like DDL with checkboxes)

eg:
Gridview
----------------------------------------
firstname .........................lastName
chkBx-firstname1..........chkBx-LastName1
chkBx-firstname2..........chkBx-LastName2
chkBx-firstname3..........chkBx-LastName3
chkBx-firstname4..........chkBx-LastName4
chkBx-firstname5..........chkBx-LastName5
-------------------------------------------
row1
row2
row3
.
.
.
row n
------------------------------------------
End of grid


Question:
How to show DDL with checkbox in filter criteria?
Posted
Comments
Leena 206 29-Sep-14 2:57am    
I got DDL in filter creiterai from - http://demos.telerik.com/aspnet-ajax/grid/examples/functionality/filtering/filter-templates/defaultcs.aspx

but I want checkbox list...
AndrewCharlz 29-Sep-14 5:56am    
u can add filter template and you can use any control and we have radcombobox and enbale checked property
Leena 206 29-Sep-14 6:17am    
Andrew, I tried that and posted my problem in solution 1..
can you please update solution as per my requirement?

After searching more I found this-


XML
<telerik:GridBoundColumn UniqueName="SupplierWorldArea" DataField="SupplierWorldArea" HeaderText="Supplier World Area">
             <FilterTemplate>
                 <telerik:radlistbox id="RadListBox1" runat="server" checkboxes="true" showcheckall="true">
                     <Items>
                         <telerik:RadListBoxItem Text="NA"></telerik:RadListBoxItem>
                         <telerik:RadListBoxItem Text="MEA"></telerik:RadListBoxItem>
                     </Items>
                 </telerik:radlistbox>
             </FilterTemplate>
          </telerik:GridBoundColumn>


But It is Showing chkboxlist only .. I wanted it in DDL format ..i.e. it should show all options only when I click on that checkboxlist, same as DDL.

Can anyone help in this issue?
 
Share this answer
 
Comments
AndrewCharlz 29-Sep-14 7:26am    
not the list box use combobox
XML
<telerik:GridBoundColumn DataField="ColDField"
                             FilterControlAltText="Filter column column" HeaderText="PID"
                             UniqueName="column">
                             <FilterTemplate>
                                <telerik:RadComboBox ID="cmb" runat="server" CheckBoxes="true">
                                <Items>
                                    <telerik:RadComboBoxItem  Text="test"/>
                                    <telerik:RadComboBoxItem  Text="test"/>
                                    <telerik:RadComboBoxItem  Text="test"/>
                                </Items>
                                </telerik:RadComboBox>
                             </FilterTemplate>
                              <HeaderStyle Wrap="False" />
                              <ItemStyle Wrap="False" />
                         </telerik:GridBoundColumn>



This is working i tried in my system..

here is the screenshot of the o/p

http://www.streetrat.in/Street-Rat-Articles/8/23.jpg[^]

<img src="http://www.streetrat.in/Street-Rat-Articles/8/23.jpg" />
 
Share this answer
 
v3
Comments
Leena 206 30-Sep-14 1:20am    
Its working totally as I expected .. Thanks :) +5
AndrewCharlz 30-Sep-14 2:41am    
always use your own controls that will help you , telerik won be useful every where

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