Filtering in Telerik Radgrid -


we use telerik radgrid application create. whenever click on radgrid's filter button on each column, opens new popup window select filter options. have made changes like, displaying rows of column selected in window.

but issue is, limited number of rows loaded in window, , not all. can me out of this, please?

thanks manikandan

you have use filtertemplate .

 <telerik:gridboundcolumn datafield="name" filtercontrolalttext="filter namecolumn"                 headertext="name" uniquename="name">                 <filtertemplate>                     <telerik:radcombobox id="rcboname" datasourceid="sqlnamedatasource" datatextfield="name"                         datavaluefield="name" appenddatabounditems="true" selectedvalue='<%# ((griditem)container).ownertableview.getcolumn("name").currentfiltervalue %>'                         runat="server" onclientselectedindexchanged="nameindexchange" width="100px">                         <items>                             <telerik:radcomboboxitem text="all" />                         </items>                     </telerik:radcombobox>                     <telerik:radscriptblock id="radscriptblock2" runat="server">                         <script type="text/javascript">                             function nameindexchange(sender, args) {                                 var tableview = $find("<%# ((griditem)container).ownertableview.clientid %>");                                 tableview.filter("name", args.get_item().get_value(), "equalto");                             }                         </script>                     </telerik:radscriptblock>                 </filtertemplate>             </telerik:gridboundcolumn> 

in example , use sqlnamedatasource combobox's datasource .

    <asp:sqldatasource id="sqlnamedatasource" runat="server"          connectionstring="<%$ connectionstrings:myconnectionstring %>"     selectcommand="select * nametable">     </asp:sqldatasource> 

you can change datasource , datafield of table !


Comments

Popular posts from this blog

javascript - JS causing window size to be bigger than necessary - Dropdown bug -

php - Calling a template part from a post -

How to mention the localhost in android -