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