jQuery UI Widgets Forums Lists ComboBox jqxcombobox categories

This topic contains 4 replies, has 2 voices, and was last updated by  shardik 11 years, 4 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • jqxcombobox categories #26247

    shardik
    Participant

    Hello!

    In this sample
    http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxcombobox/categories.htm?web

    I need to add a value all

    ->All
    ->group 1
    ->item 1
    ->item 2
    ->item 3
    ->group 2
    ->item 1
    ->item 2

    It’s possible?

    Shardik

    jqxcombobox categories #26250

    Dimitar
    Participant

    Hello Shardik,

    You can add the “All” item to the source. However, it will also be in a group even if you do not define it specifically.

    var source = [
    { label: "All" },
    // Business & Investing
    {html: "<div tabIndex=0 style='padding: 1px;'><div>Title: Do the Work</div><div>Author: Steven Pressfield</div></div>", label: "Do the Work", group: "Business & Investing" },
    { html: "<div tabIndex=0 style='padding: 1px;'><div>Title: Think and Grow Rich</div><div>Author: Napoleon Hill</div></div>", label: "Think and Grow Rich", group: "Business & Investing" },
    { html: "<div tabIndex=0 style='padding: 1px;'><div>Title: The Toyota Way to Continuous...</div><div>Author: Jeffrey K. Liker</div></div>", label: "The Toyota Way to Continuous...", group: "Business & Investing" },
    { html: "<div tabIndex=0 style='padding: 1px;'><div>Title: Redesigning Leadership </div><div>Author: John Maeda</div></div>", label: "Redesigning Leadership ", group: "Business & Investing" },
    // Computer & Internet Books
    {html: "<div tabIndex=0 style='padding: 1px;'><div>Title: MacBook Pro Portable Genius</div><div>Author: Brad Miser</div></div>", label: "MacBook Pro Portable Genius", group: "Computer & Internet Books" },
    { html: "<div tabIndex=0 style='padding: 1px;'><div>Title: Social Media Metrics Secrets</div><div>Author: John Lovett</div></div>", label: "Social Media Metrics Secrets", group: "Computer & Internet Books" },
    { html: "<div tabIndex=0 style='padding: 1px;'><div>Title: iPad 2: The Missing Manual</div><div>Author: J D Biersdorfer J.D</div></div>", label: "iPad 2: The Missing Manual", group: "Computer & Internet Books" },
    // History
    {html: "<div tabIndex=0 style='padding: 1px;'><div>Lincoln and His Admirals</div><div>Author:Craig L. Symonds</div></div>", label: "Lincoln and His Admirals", group: "History" },
    { html: "<div tabIndex=0 style='padding: 1px;'><div>The Dogs of War: 1861</div><div>Author:Emory M. Thomas</div></div>", label: "The Dogs of War: 1861", group: "History" },
    { html: "<div tabIndex=0 style='padding: 1px;'><div>Cleopatra: A Life</div><div>Author:Stacy Schiff</div></div>", label: "Cleopatra: A Life", group: "History" },
    { html: "<div tabIndex=0 style='padding: 1px;'><div>Mother Teresa: A Biography</div><div>Author:Meg Greene</div></div>", label: "Mother Teresa: A Biography", group: "History" },
    { html: "<div tabIndex=0 style='padding: 1px;'><div>The Federalist Papers</div><div>Author:John Jay</div></div>", label: "The Federalist Papers", group: "History" },
    ];

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

    jqxcombobox categories #26252

    shardik
    Participant

    Tank dimitar,

    with this sample the result is:

    ->group 1
    ->All
    ->group 2
    ->item 1
    ->item 2
    ->item 3
    ->group 3
    ->item 1
    ->item 2

    i’ve tried this solution 🙂
    Is’t possibile see the item ‘all’ without even group?

    Shardik

    jqxcombobox categories #26259

    Dimitar
    Participant

    Hi Shardik,

    Unfortunately, this cannot be achieved.

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

    jqxcombobox categories #26264

    shardik
    Participant

    merci

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.