Bug Report T272637
Visible to All Users

FormLayout - Binding to a List<string> is not working for an embedded TokenBox

created 10 years ago

I can't confirm that the solution posted under https://www.devexpress.com/Support/Center/Question/Details/T261047 is fixing the problem. I'm adding a TokenBox to an ItemGroup:

C#
addressesGroupItem.Items.Add( propertyToBind, itemSettings => { itemSettings.NestedExtensionType = FormLayoutNestedExtensionItemType.TokenBox; itemSettings.Width = System.Web.UI.WebControls.Unit.Percentage(33); itemSettings.NestedExtensionSettings.Width = System.Web.UI.WebControls.Unit.Percentage(100); itemSettings.NestedExtensionSettings.Height = System.Web.UI.WebControls.Unit.Percentage(100); itemSettings.Caption = "FQDN"; var fqdnTokenBoxSettings = (itemSettings.NestedExtensionSettings as TokenBoxSettings).Properties; fqdnTokenBoxSettings.ShowDropDownOnFocus = ShowDropDownOnFocusMode.Never; fqdnTokenBoxSettings.AllowCustomTokens = true; fqdnTokenBoxSettings.NullText = "Please enter FQDNs"; (itemSettings.NestedExtensionSettings as TokenBoxSettings).ShowModelErrors = true; });

The property to bind is of type: System.Linq.Expressions.Expression<Func<T, List<string>>> The created TokenBox then has the content: "System.Collections.Generic.List`1[System.String]" Please see attachment.

Show previous comments (4)

    Running example

      Is there a chance, that you can prioritize the problem as "Urgent" or "Very High"? Right now, the TokenBox is practically not useable.

      DevExpress Support Team 10 years ago

        I have passed all the information to our developers. We will do our best to fix the issue as soon as possible. Your patience is greatly appreciated.

        Answers approved by DevExpress Support

        created 10 years ago (modified 10 years ago)

        We have fixed the issue described in this ticket and will include the fix in our next maintenance update. To apply this solution before the official update, request a hotfix by clicking the corresponding link for product versions you require.

        Note: Hotfixes may be unavailable for beta versions and updates that are about to be released.

          Show previous comments (5)

            Hello,

            According to the "Fixed in" info, this issue has been resolved for 15.1.6+ builds.
            If you still face problems related to this subject, please create a new ticket and provide us with a sample project that illustrates the issue in action.

              Hello again,
              Yes, I confirm – works perfectly for 15.1.7. Sorry for bothering.

                Thank you for your clarification.

                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.