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
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.
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>
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