jQuery UI Widgets Forums Editors Input, Password Input, TextArea, ColorPicker, Rating, TagCloud, Loader How Can I Get & Set With JqxInput Multiple Value

This topic contains 1 reply, has 2 voices, and was last updated by  Dimitar 10 years, 3 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author

  • minsu0806
    Participant

    The item , I made with jqxInput, bind data with json.

    my problem list are here.

    1) have to get multiple valueitem. not multiple displayitem.
    (http://jsfiddle.net/a2f29jpy/) <- I think that just can get display item list.
    $(“#item”).jqxInput(‘val’) can get item just one thing, json item.

    2) have to set multiple valueitem & show value’s displayItems
    [
    {value:1,display:’first’},
    {value:2,display:’second’},
    {value:3,display:’third’}
    ]
    i want set my jqxinput’s values 1,2
    then display on jqxinput “first, second”

    $(“#item”).jqxInput(‘val’,item’) <- this method can’t support json array.

    can i solve that?
    thank you


    Dimitar
    Participant

    Hello minsu0806,

    1) There is no direct way to achieve this. You can, however, store the valueitems on the select event in an array and when you need them, just get the array. The demo Binding to JSON Data might be helpful to you for this matter.

    2) This type of setting is not supported. You can only add one item with both label and value, e.g.:

    $('#jqxInput').jqxInput('val', {label: "Item 1", value: "1"});

    Best Regards,
    Dimitar

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

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

You must be logged in to reply to this topic.