Bug Report T846352
Visible to All Users

ComboBox for Blazor - The "Value cannot be null. (Parameter 'accessor')" exception is thrown if the ListRenderMode property is set to Virtual

created 5 years ago

This issue can be reproduced using the following code:

Razor
<EditForm Model="@to" Context="EditFormContext"> <DxFormLayout> <DxFormLayoutItem Context="FLIContext"> <Template> <DxComboBox Data="@Strings" ListRenderMode="@ListRenderMode.Virtual" @bind-SelectedItem="@to.TestStr"> </DxComboBox> </Template> </DxFormLayoutItem> </DxFormLayout> </EditForm> @code { public class TestObject { public string TestStr { get; set; } } private TestObject to = new TestObject(); List<string> Strings = new List<string>(); protected override void OnInitialized() { for (int i = 0; i < 1000; i++) Strings.Add($"Option #{i}"); } }

Answers approved by DevExpress Support

created 5 years ago

We have fixed the issue described in this ticket and will include the fix in our next update. The update will be available via the DevExpress NuGet server. Refer to this page to obtain your personal NuGet feed URL.

    Comments (2)
    SG SG
    Stanislav Gordenko 5 years ago

      I have updated package from Nuget and tried once again.
      Result is the same. Virtual scrolling works outside Grid, but do not works inside.

      Vova (DevExpress Support) 5 years ago

        Hello Stanislav,

        We fixed this issue and this fix will be included in our next update. This fix is not available in the current NuGet package (19.1.10). Please stay tuned to our updates.

        Regards,
        Vova

        Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

        Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.