+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Can't expand/collapse categories in widget designer if category name is more than 2 words

Can't expand/collapse categories in widget designer if category name is more than 2 words

2 posts, 0 answered
  1. Bo Chulindra
    Bo Chulindra avatar
    35 posts
    Registered:
    17 Dec 2013
    30 Jun 2014
    Link to this post

    I have an MVC Widget with many properties and category names such as "Personal Registration Content" and"Search Results Content" and "Tabs".

     When I drop my widget on a page, click Edit, and choose the categorized view of the properties, I'm able to expand and collapse the "Tabs" category but not the other two. When I renamed the categories to "PersonalRegistration Content" and "SearchResults Content", I was able to then expand and collapse the categories. It appears that the bug is only when the category name has more than 2 words.

     The Sitefinity Version is 7.0.5108.0.

     Here's the exception and stack trace I found in my Chrome console when the categories failed to expand/collapse:

     

    DOMException
    code: 12
    message: "Failed to execute 'webkitMatchesSelector' on 'Element': ':radio, :checkbox, select, option' is not a valid selector."
    name: "SyntaxError"
    stack: "Error: Failed to execute 'webkitMatchesSelector' on 'Element': ':radio, :checkbox, select, option' is not a valid selector.
        at Error (native)
        at Function.g.querySelectorAll.nt.matchesSelector (http://localhost:13303/ScriptResource.axd?d=q84FCmpcTkarZ-ojpyiJhjS_zAa0P6qyS34erMhbvQIPOKtFMOEzVX54MIEtIo6vPmpUMEoygXEDUN3DDGY784LpKzBPj8qOQJDg8XMiMrmXKAyJJXdd_iw1dsQ36lkA6iypqtvu2plv3Ylc9ABXJgcKVh5rIyONI-U0W-x4DjjNo_MnWGl6XnjUz235MVqP0&t=ffffffffd44e788b:2:60958)
        at Function.v.extend.filter (http://localhost:13303/ScriptResource.axd?d=q84FCmpcTkarZ-ojpyiJhjS_zAa0P6qyS34erMhbvQIPOKtFMOEzVX54MIEtIo6vPmpUMEoygXEDUN3DDGY784LpKzBPj8qOQJDg8XMiMrmXKAyJJXdd_iw1dsQ36lkA6iypqtvu2plv3Ylc9ABXJgcKVh5rIyONI-U0W-x4DjjNo_MnWGl6XnjUz235MVqP0&t=ffffffffd44e788b:2:64077)
        at v.fn.extend.is (http://localhost:13303/ScriptResource.axd?d=q84FCmpcTkarZ-ojpyiJhjS_zAa0P6qyS34erMhbvQIPOKtFMOEzVX54MIEtIo6vPmpUMEoygXEDUN3DDGY784LpKzBPj8qOQJDg8XMiMrmXKAyJJXdd_iw1dsQ36lkA6iypqtvu2plv3Ylc9ABXJgcKVh5rIyONI-U0W-x4DjjNo_MnWGl6XnjUz235MVqP0&t=ffffffffd44e788b:2:62168)
        at HTMLFormElement.<anonymous> (http://localhost:13303/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl01_TSM&compress=0&_TSM_CombinedScripts_=%3b%3bTelerik.Sitefinity.Resources%3aen%3aa3f0df9c-5e0d-4caf-a9dc-45ddcdfedc43%3a7ee0bb1f%3bTelerik.Sitefinity%3aen%3ab495b37b-3352-44a2-972e-b1b4d7e0f9bd%3a993d8e92%3a5b182b17:52:60)
        at HTMLFormElement.v.event.dispatch (http://localhost:13303/ScriptResource.axd?d=q84FCmpcTkarZ-ojpyiJhjS_zAa0P6qyS34erMhbvQIPOKtFMOEzVX54MIEtIo6vPmpUMEoygXEDUN3DDGY784LpKzBPj8qOQJDg8XMiMrmXKAyJJXdd_iw1dsQ36lkA6iypqtvu2plv3Ylc9ABXJgcKVh5rIyONI-U0W-x4DjjNo_MnWGl6XnjUz235MVqP0&t=ffffffffd44e788b:2:38053)
        at HTMLFormElement.o.handle.u (http://localhost:13303/ScriptResource.axd?d=q84FCmpcTkarZ-ojpyiJhjS_zAa0P6qyS34erMhbvQIPOKtFMOEzVX54MIEtIo6vPmpUMEoygXEDUN3DDGY784LpKzBPj8qOQJDg8XMiMrmXKAyJJXdd_iw1dsQ36lkA6iypqtvu2plv3Ylc9ABXJgcKVh5rIyONI-U0W-x4DjjNo_MnWGl6XnjUz235MVqP0&t=ffffffffd44e788b:2:33923)"

     

     

  2. Svetoslav Manchev
    Svetoslav Manchev avatar
    735 posts
    Registered:
    07 Dec 2016
    02 Jul 2014
    Link to this post
    Hi Bo,

    This seems a bug for custom attributes and I have logged it in our Feedback portal.

    As workaround and as you mentioned, you can remove the spaces and write the Category name PascalCase, for example:
    [Category("MyCategoryName")]
    public string HeaderText
    {
        get;
        set;
    }


    Regards,
    Svetoslav Manchev
    Telerik
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
2 posts, 0 answered