You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I use the MultiSelectComponent with both enableVirtualization and dataSource being an instance of DataManager, I encounter the following issues:
1. Pre-selected values not rendering in the UI:
If I pre-select values and pass them via the value prop, the component does not render the selected values in the UI. To display these selected values, I have to use a ref and call the refresh method. However, when using refresh, the following problems arise:
Scroll position not resetting: After calling refresh, the popup's scroll position does not reset and remains at the previously selected position. However, the data is reloaded from the start, causing the popup to scroll to an empty area (blank data).
Duplicate selectedListData: When there is a selected list, and I clear all the selections and then refresh, those values get duplicated multiple times.
=> To address this, I am customizing the initializeData function as follows:
When the dataSource API is asynchronous, if the user clicks quickly to select and open the popup before the API responds, the popup renders as blank (no data).
=> I am customizing the showPopup function as follows, but it seems suboptimal. Please address this issue:
When using valueTemplate, the data received is not as expected. For example, if I set fields={{ text: 'Name', value: 'Id' }}, the data received in the valueTemplate always contains the Id value.
This issue might only occur when refresh is used, but since I need to use refresh to render the selected values, I cannot confirm how it behaves otherwise.
It seems that when making an API call to fetch the value, the returned value is not stored in mainData and listData.
4. Issues with allowObjectBinding:
And some issues related to allowObjectBinding. If a pre-selected value lies outside the range of the initial API call (in my case, the first 40 items), the itemTemplate, valueTemplate, onChange, etc., will not receive the expected data. This issue may be similar to issue 3.
5. Issue with button clearAll
When I clear all the selected data, an API call is triggered with a top value of 1000. I find this unnecessary, or if it is required, there should be a configurable value for this. Based on the current code logic, I understand that it uses maximumSelectionLength or defaults to 1000. My server-side API might encounter issues as I do not want to impose a limit on the number of selectable values.
The text was updated successfully, but these errors were encountered:
When I use the MultiSelectComponent with both enableVirtualization and dataSource being an instance of DataManager, I encounter the following issues:
1. Pre-selected values not rendering in the UI:
If I pre-select values and pass them via the value prop, the component does not render the selected values in the UI. To display these selected values, I have to use a ref and call the refresh method. However, when using refresh, the following problems arise:
Scroll position not resetting: After calling refresh, the popup's scroll position does not reset and remains at the previously selected position. However, the data is reloaded from the start, causing the popup to scroll to an empty area (blank data).
Duplicate selectedListData: When there is a selected list, and I clear all the selections and then refresh, those values get duplicated multiple times.
=> To address this, I am customizing the initializeData function as follows:
2. Issue with asynchronous dataSource:
When the dataSource API is asynchronous, if the user clicks quickly to select and open the popup before the API responds, the popup renders as blank (no data).
=> I am customizing the showPopup function as follows, but it seems suboptimal. Please address this issue:
3. Issue with valueTemplate:
When using valueTemplate, the data received is not as expected. For example, if I set fields={{ text: 'Name', value: 'Id' }}, the data received in the valueTemplate always contains the Id value.
This issue might only occur when refresh is used, but since I need to use refresh to render the selected values, I cannot confirm how it behaves otherwise.
It seems that when making an API call to fetch the value, the returned value is not stored in mainData and listData.
4. Issues with allowObjectBinding:
allowObjectBinding
. If a pre-selected value lies outside the range of the initial API call (in my case, the first 40 items), theitemTemplate
,valueTemplate
,onChange
, etc., will not receive the expected data. This issue may be similar to issue 3.5. Issue with button clearAll
The text was updated successfully, but these errors were encountered: