context parameter received by FilterCheckListWebServiceMethod

5 posts, 0 answers
  1. Vittorio
    Vittorio avatar
    16 posts
    Member since:
    Feb 2014

    Posted 12 Mar 2014 Link to this post

    Hello everyone.
    I would like to know: what is the parameter Dictionary<string, object> context received by every FilterCheckListWebServiceMethod in this demo: http://demos.telerik.com/aspnet-ajax/grid/examples/functionality/filtering/basic-filtering/defaultcs.aspx

    Thanks in advance.

    Regards.
  2. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 17 Mar 2014 Link to this post

    Hello Vittorio,

    Currently the context parameter is "null" as the RadListView control has some limitations with the LoadOnDemand functionality. However we are in a process of fixing this issue and the context parameter will properly work for some of the upcoming official release.

    Regards,
    Maria Ilieva
    Telerik
     

    DevCraft Q1'14 is here! Watch the online conference to see how this release solves your top-5 .NET challenges. Watch on demand now.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Vittorio
    Vittorio avatar
    16 posts
    Member since:
    Feb 2014

    Posted 17 Mar 2014 in reply to Maria Ilieva Link to this post

    Thank you Maria for your explanation!
  5. Srikrishna
    Srikrishna avatar
    10 posts
    Member since:
    May 2015

    Posted 12 Apr Link to this post

    W.r.t to Excel like filtering in radgrid. I am trying to call a webservice using - FilterCheckListWebServiceMethod

    Requirement : To use Webservice , I have 40 columns so planning to send Column name as a context to WS method and reuse the select query for all..

    eg) FilterCheckListWebServiceMethod="LoadDistinctValues"

     

    [WebMethod] public RadComboBoxItemData[] LoadDistinctValues(Dictionary<string, object> context)

    {     

       IDictionary<string, object> contextDictionary = (IDictionary<string, object>)context;

       ........ The following context is NULL

     

    Sample:

      <telerik:RadGrid ID="rd" runat="server" AllowFilteringByColumn="true" FilterType="HeaderContext" EnableHeaderContextMenu="True"
                             EnableHeaderContextFilterMenu="True" AllowPaging="True" PageSize="35"
                             AllowSorting="true" Width="100%" >
                    <PagerStyle Mode="Slider" Position="TopAndBottom" PageSizes="100,200,400,500" AlwaysVisible="True" />
                    <ClientSettings Scrolling-AllowScroll="true" Scrolling-UseStaticHeaders="true"  EnableRowHoverStyle="true">
                        <DataBinding Location="loadOnDemand.asmx" SortParameterType="Linq" FilterParameterType="Linq">
                        </DataBinding>
                    </ClientSettings>
       <MasterTableView CommandItemDisplay="Top" DataKeyNames="ID" HorizontalAlign="NotSet" EditMode="Batch" AutoGenerateColumns="False"
                                 AllowAutomaticDeletes="False" Font-Size="9" FilterItemStyle-HorizontalAlign="Center" Width="100%"
                                 TableLayout="Fixed" CheckListWebServicePath="loadOnDemand.asmx">

                        <telerik:GridBoundColumn DataField="VERIFIEDBY" HeaderText="Verified By" ColumnEditorID="ceVERIFIEDBY"
                                                 SortExpression="VERIFIEDBY" UniqueName="VERIFIEDBY"
                                                 AutoPostBackOnFilter="true" CurrentFilterFunction="StartsWith"
                                                 FilterControlWidth="80px" HeaderStyle-Width="140px" FilterCheckListWebServiceMethod="LoadDistinctValues"  >
                        </telerik:GridBoundColumn>

  6. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 15 Apr Link to this post

    Hi Srikrishna,

    As this thread is rather old I would suggest you to open a separate thread and provide more detailed explanation for the scenario you are trying to implement and the issue you are facing with it.

    Regards,
    Maria Ilieva
    Telerik
    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017