Multiselect ?

1 Answer 99 Views
MultiSelect
Deasun
Top achievements
Rank 3
Bronze
Bronze
Bronze
Deasun asked on 16 Nov 2022, 12:08 PM

I am having an issue with this control.

When testing it I init it from the OnInitialized section and it worked fine.

But in production app It does not get init until after a DDL on the page is chosen from by user.

In this case I keep getting NO Data displayed on the drop down part.

Take the same code and put in the OnInitialized section and the controll is filled in.

How can I get it to work after the ddl is chosen?

 

Thanks

Deasun.

Dimo
Telerik team
commented on 18 Nov 2022, 10:38 AM

Deasun
Top achievements
Rank 3
Bronze
Bronze
Bronze
commented on 18 Nov 2022, 01:24 PM

Apparently I was hooking up the page side of things incorrectly.

<TelerikMultiSelect @ref="RptDDLFil3"
                                    Data="@ProdRptDDLFil3"
                                    TextField="Result"
                                        TItem="ProdRptDDL"
                                    ValueField="Value"
                                        TValue="int"
                               
                                    Placeholder="Select the items you need"  
                                    AutoClose="false"
                                    Filterable="true"
                                    ClearButton="true"
                                    >
                    <MultiSelectSettings>

was missing;

TItem="ProdRptDDL"

TValue="int"

 

Once they were in all things worked! :)

Thanks for the reply.

 

1 Answer, 1 is accepted

Sort by
0
Accepted
Deasun
Top achievements
Rank 3
Bronze
Bronze
Bronze
answered on 13 Jan 2023, 03:46 PM

<TelerikMultiSelect @ref="RptDDLFil3"
                                    Data="@ProdRptDDLFil3"
                                    TextField="Result"
                                        TItem="ProdRptDDL"
                                    ValueField="Value"
                                        TValue="int"
                               
                                    Placeholder="Select the items you need"  
                                    AutoClose="false"
                                    Filterable="true"
                                    ClearButton="true"
                                    >
                    <MultiSelectSettings>

was missing;

TItem="ProdRptDDL"

TValue="int"

 

fixed it!

Tags
MultiSelect
Asked by
Deasun
Top achievements
Rank 3
Bronze
Bronze
Bronze
Answers by
Deasun
Top achievements
Rank 3
Bronze
Bronze
Bronze
Share this question
or