This is a migrated thread and some comments may be shown as answers.

problem with filtering column checklist filterExpression not send parameters: []

3 Answers 61 Views
Filter
This is a migrated thread and some comments may be shown as answers.
Ronald Andrade
Top achievements
Rank 1
Ronald Andrade asked on 07 Oct 2014, 12:58 AM
I have a problem with filtering checklist of columns, 
I really should be placed as, selecting the filter options and pressing apply the filter does not send parameters to service SVC 

could tell me what am I doing wrong?

ASP
<telerik:RadGrid ID="RadGrid1" runat="server" CellSpacing="0"  
            GridLines="None" AllowFilteringByColumn="true" FilterType="CheckList"
            AllowPaging="true" PagerStyle-AlwaysVisible="true" AllowSorting="true" Skin="Simple"    
            Width="1080px" Height="600px" EnableLinqExpressions="true">
<MasterTableView EnableHeaderContextMenu="true" AutoGenerateColumns="false"  
    CheckListWebServicePath="../../MovimientoWcfService.svc"
     DataKeyNames="MovimientoId" ClientDataKeyNames="MovimientoId" PageSize="20">
    <Columns> 
        <telerik:GridBoundColumn FilterDelay="200" HeaderText="C√≥digo" UniqueName="ClientId" DataField="ClientId">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn FilterDelay="200" DataField="FamiliaNombre"  HeaderText="FAMILIA" FilterCheckListWebServiceMethod="LoadFamilia" UniqueName="FamiliaNombre" >
        </telerik:GridBoundColumn>
 </Columns>
</MasterTableView>
<ClientSettings AllowColumnsReorder="true" ReorderColumnsOnClient="true">
        <Selecting AllowRowSelect="true" />
        <ClientEvents OnRowContextMenu="RowContextMenu"></ClientEvents>
        <Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="true"></Scrolling>
    <Resizing ResizeGridOnColumnResize="true" ShowRowIndicatorColumn="true" AllowResizeToFit="true" />
    <DataBinding Location="~/MovimientoWcfService.svc" SelectMethod="GetDataAndCount" SortParameterType="Linq"
         FilterParameterType="List" >
    </DataBinding>
</ClientSettings>
</telerik:RadGrid>  
   
//C# SVC
 [OperationContract]
        public RadListBoxItemData[] LoadFamilia(Dictionary<string, object> context)
        {
            var be = new BeFamilia { Eliminado = false, Activo = true };
            var beList = new List<BeFamilia>();
            var bl = new BlFamilia();
            beList = bl.Select(be);
            var allFamilies = (from fa in beList
                               orderby fa.Descripcion
                               select new RadListBoxItemData
                               {
                                  Value = fa.FamiliaId.ToString(),
                                   Text = fa.Descripcion
                               }).Distinct();

            return allFamilies.ToArray<RadListBoxItemData>();
            
        }



3 Answers, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 09 Oct 2014, 03:08 PM
Hi Ronald,

Could you please revise this online demo and ensure that the "GetDataAndCount" method is properly set as shown there?
Also please try changing the "FilterParameterType" to "Linq" and verify how it goes.

Regards,
Maria Ilieva
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Ronald Andrade
Top achievements
Rank 1
answered on 09 Oct 2014, 03:41 PM
hello Maria,

Thank you for answer.

I changed FilterParameterType = "List" by FilterParameterType = "Linq". I had no success either. 
I'm using the Telerik 2014Q1 version 

I've noticed when I remove the property UseStaticHeaders = "True" in the scroll settings 
<Scrolling AllowScroll = "True" SaveScrollPosition = "true"> </ Scrolling> 
It works pretty well 

Can you try it yourself?
0
Maria Ilieva
Telerik team
answered on 14 Oct 2014, 11:52 AM
Hi Ronald,

The relation between the StaticHeaders and service parameters passing is really strange as the both functionalities does not have any common points ion the RadGrid source. Also I'm not able to replicate the described issue on my side even when the static headers are enabled. See my test movie below that presents the correct functionality on my side:
http://screencast.com/t/Exq54uiBSZTd

I suppose that there is something specific in your project that is leading t this strange behavior and the best option will be to open a regular support ticket and send us isolated runnable version of the application. This way we will be able to debug it locally and advise you further.

Regards,
Maria Ilieva
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Filter
Asked by
Ronald Andrade
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Ronald Andrade
Top achievements
Rank 1
Share this question
or