如何在RadTeleric控件的过滤器选项中显示复选框列表? [英] How do I show checkbox list in filter option of RadTeleric control?

查看:92
本文介绍了如何在RadTeleric控件的过滤器选项中显示复选框列表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是telericRadControls的初学者。

在.aspx页面我想要telericGrid,它将包含过滤选项,不包含文本框,但有多选复选框列表(像DDL一样带复选框)



例如:

Gridview

------------------- ---------------------

名字.................... ..... 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

- -----------------------------------------

结束网格





问题:

如何在过滤条件中显示带复选框的DDL?

解决案

搜索了更多后我发现了这个 -





 <   telerik:GridBoundColumn     UniqueName   =  SupplierWorldArea    DataField   =  SupplierWorldArea    HeaderText   = 供应商世界区域 >  
< FilterTemplate >
< telerik:radlistbox id = RadListBox1 runat = server 复选框 = true showcheckall = true >
< 商品 >
< telerik:RadListBoxItem 文字 = NA > < / telerik:RadListBoxItem >
< telerik:RadListBoxItem 文本 = MEA > < / telerik:RadListBoxItem >
< / Items >
< / telerik:radlistbox >
< / FilterTemplate >
< < span class =code-leadattribute> / telerik:GridBoundColumn >





但它只显示chkboxlist ..我希望它以DDL格式..ie它应该只在我点击该复选框列表时显示所有选项,与DDL相同。



任何人都可以帮忙解决这个问题吗?


 <   telerik:GridBoundColumn     DataField   =  ColDField  

FilterControlAltText = 过滤列列 HeaderText = PID

< span class =code-attribute> UniqueName = >
< FilterTemplate >
< telerik:RadComboBox ID = cmb < span class =code-attribute> runat = server CheckBoxes = true >
< 项目 >
< telerik:RadComboBoxItem 文字 = test / >
< telerik:RadComboBoxItem 文字 = test / >
< telerik:RadComboBoxItem 文本 = 测试 / >
< / Items >
< / telerik:RadComboBox >
< span class =code-keyword>< / FilterTemplate >
< HeaderStyle Wrap = False / >
< ItemStyle Wrap = 错误 / >
< / telerik:GridBoundColumn >







这是我在我的系统中尝试过的..



这里是o / p


$ b $的截图b http://www.streetrat.in/Street-Rat-Articles/8/23.jpg [ ^ ]



< img src =http://www.streetrat.in/Street-Rat-Articles/8/23.jpg/>


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?

解决方案

After searching more I found this-


<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?


<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" />


这篇关于如何在RadTeleric控件的过滤器选项中显示复选框列表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆