none
can not use ria data control parameter, please help

    Question

  • Hi, I am using filterdescriptor, why it can not find control parameter ? Please advis

    <navigation:Page x:Class="BusinessApplication1.Views.EmployeeListing" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation" xmlns:datagrid="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data" xmlns:riacontrols="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.DomainServices" xmlns:ds="clr-namespace:BusinessApplication1.Web.Services" xmlns:riadata="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.DomainServices" d:DesignWidth="640" d:DesignHeight="480" Title="EmployeeListing"> <Grid x:Name="LayoutRoot"> <ScrollViewer BorderThickness="0" VerticalScrollBarVisibility="Auto" Padding="12,0,12,0" Margin="-12"> <StackPanel Margin="0,12,0,12" Orientation="Vertical" > <riacontrols:DomainDataSource x:Name="MyData" LoadSize="20" QueryName="GetEmployees" AutoLoad="True"> <riacontrols:DomainDataSource.DomainContext> <ds:AdvDomainContext /> </riacontrols:DomainDataSource.DomainContext> <riadata:DomainDataSource.FilterDescriptors> <riadata:FilterDescriptorCollection> <riadata:FilterDescriptor PropertyPath="VacationHours" Operator="IsGreaterThanOrEqualTo"> <riacontrols:ControlParameter </riadata:FilterDescriptor> </riadata:FilterDescriptorCollection> </riadata:DomainDataSource.FilterDescriptors> </riacontrols:DomainDataSource> <TextBlock Text="Employee List" Style="{StaticResource HeaderTextStyle}"/> <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" Margin="0,-16,0,0"> <TextBlock VerticalAlignment="Center" Text=" Min Vacation Hours Filter"/> <TextBox x:Name="VacationHoursFilter" Width="75" FontSize="11" Margin="4" /> </StackPanel> <datagrid:DataGrid x:Name="EmployeeGrid" MinHeight="100" IsReadOnly="True" ItemsSource="{Binding ElementName=MyData,Path=Data}"/> </StackPanel> </ScrollViewer> </Grid> </navigation:Page>


    Saturday, March 31, 2012 2:14 PM

All replies