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

4 posts, 0 answers
  1. Ronald Andrade
    Ronald Andrade avatar
    5 posts
    Member since:
    May 2011

    Posted 06 Oct 2014 Link to this post

    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>();
                
            }



  2. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 09 Oct 2014 Link to this post

    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.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Ronald Andrade
    Ronald Andrade avatar
    5 posts
    Member since:
    May 2011

    Posted 09 Oct 2014 in reply to Maria Ilieva Link to this post

    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?
  5. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 14 Oct 2014 Link to this post

    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.

     
Back to Top