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

context parameter received by FilterCheckListWebServiceMethod

4 Answers 115 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Vittorio
Top achievements
Rank 1
Vittorio asked on 12 Mar 2014, 10:14 AM
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.

4 Answers, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 17 Mar 2014, 09:53 AM
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.

 
0
Vittorio
Top achievements
Rank 1
answered on 17 Mar 2014, 05:27 PM
Thank you Maria for your explanation!
0
Srikrishna
Top achievements
Rank 1
answered on 12 Apr 2016, 07:45 PM

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>

0
Maria Ilieva
Telerik team
answered on 15 Apr 2016, 11:45 AM
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.
Tags
Grid
Asked by
Vittorio
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Vittorio
Top achievements
Rank 1
Srikrishna
Top achievements
Rank 1
Share this question
or