We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

listbox Query does not work in 17.3.17 version(in 17.3.10 work well);

 <div class="col-lg-12 control-section">
                                                    <div id="listbox-control1">
                                                        @*<h6>شما خانم هستید یا آقا ؟</h6>*@


                                                        <EjsListBox @ref="@GenderListBox" CssClass="e-custom-font" TValue="int[]" @bind-Value="@bindGenders" ModelType="GenderModel" EnableRtl="true" DataSource="temperamentPropertiesList" Query="@Query1" Height="128px">
                                                            <ListBoxEvents TValue="int[]" ValueChange="@GenderSelect"></ListBoxEvents>
                                                            <ListBoxFieldSettings Text="TemperamentPropertyName" Value="TemperamentPropertyId" GroupBy="TemperamentPropertyCategoryName" />
                                                            <ListBoxSelectionSettings Mode="Syncfusion.EJ2.Blazor.DropDowns.SelectionMode.Single"></ListBoxSelectionSettings>
                                                            <ListBoxTemplates>

                                                                <ItemTemplate>

                                                                    @{
                                                                        TemperamentPropertiesViewModel currentData = context as TemperamentPropertiesViewModel;
                                                                        <EjsRadioButton CssClass="e-custom-font" Name="GenderslistRadio" Label=@currentData.TemperamentPropertyName LabelPosition="RadioLabelPosition.Before"></EjsRadioButton>
                                                                        if (true)
                                                                        {
                                                                            <div class="e-seperator"></div>
                                                                        }
                                                                    }
                                                                   
                                                                </ItemTemplate>
                                                            </ListBoxTemplates>
                                                        </EjsListBox>
                                                    </div>
                                                </div>

<div class="col-lg-12 control-section">
                                                    <div id="listbox-control2">
                                                        @*<h6>آیا شما باردار هستید ؟</h6>*@
                                                        <EjsListBox CssClass="e-custom-font" TValue="int[]" @bind-Value="@bindPregnancy" ModelType="PregnancyYesNoModel" EnableRtl="true" DataSource="temperamentPropertiesList" Query="@Query2 Height="128px">
                                                            <ListBoxEvents TValue="int[]" ValueChange="@PregnantSelect"></ListBoxEvents>
                                                            <ListBoxFieldSettings Text="TemperamentPropertyName" Value="TemperamentPropertyId" GroupBy="TemperamentPropertyCategoryName" />
                                                            <ListBoxSelectionSettings Mode="Syncfusion.EJ2.Blazor.DropDowns.SelectionMode.Single"></ListBoxSelectionSettings>
                                                            <ListBoxTemplates>
                                                                <ItemTemplate>
                                                                    @{
                                                                        TemperamentPropertiesViewModel currentData = context as TemperamentPropertiesViewModel;
                                                                        <EjsRadioButton CssClass="e-custom-font" Name="GenderslistRadio" Label=@currentData.TemperamentPropertyName LabelPosition="RadioLabelPosition.Before"></EjsRadioButton>
                                                                    }
                                                                </ItemTemplate>
                                                            </ListBoxTemplates>
                                                        </EjsListBox>
                                                    </div>
                                                </div>

Query1="new ej.data.Query().where('TemperamentPropertyCategoryId', 'equal', '" + 3018+ "')";
Query1="new ej.data.Query().where('TemperamentPropertyCategoryId', 'equal', '" + 3019+ "')";

@code
{

 {
   
        temperamentPropertiesList = await http.GetJsonAsync<TemperamentPropertiesViewModel[]>("api/TemperamentProperties/GetAllWithCategoryName");
   Query1="new ej.data.Query().where('TemperamentPropertyCategoryId', 'equal', '" + 3018+ "')";
Query1="new ej.data.Query().where('TemperamentPropertyCategoryId', 'equal', '" + 3019+ "')";   

    }

}


Loader.
Live Chat Icon For mobile
Up arrow icon