How to implement server side multicombo?

Hi all,
how is it possible to to implement server side multicombo?



  • edited May 15

    Hello @codejoin ,
    Just add:

      suggest: {

    Please take a look at the snippet:

  • Thank you but I need to load by chucks, this way it loads all at once, I have kilobyte of data

  • Hello @codejoin ,
    I would suggest you use a custom proxy object, so you’ll be able to add the needed parameters depending on some condition.
    However, please note that load method from the proxy acts instead of default data loading pattern, so you will need to gather parameters into the needed format (string url) by hand.
    Considering the custom count, you can add it with something like:

    if ( params === null ) // default initial request
    params = { count:10 }
    params.count = 10;
  • Thanks, too complicated to me

    I surfed the forum and built the following view.

    It works as I expected, load 50 items at a time from the server if user swipe the list vertically

    I hope I can make it as a proto but Webix lacks of documentation about that

     view: "multicombo",
     id: "x_brand_items",
     name: "x_brand_items",
     label: "Brand",
     options: {
      view: "checksuggest",
      template: "#value#",
      body: {
       view: "datatable",
       css: "webix_data_border webix_header_border",
       yCount: 10,
       scroll: 'xy',
       header: false,
       autoheight: false,
       autowidth: false,
       width: 500,
       url: loadcgi(__app__.cookie) + '&__J=' + (__version__.type == 2 ? 'xxxx' : 'yyyy') + '&sort[value]=asc',
       dataFeed: function (str) {
        return this.load(this.config.url + "&filter[ffff]=" + str);
       sel: function (id) {
        let curval = $$('x_brand_items').getValue();
        var arr = curval.split(",").filter(function (el) {
         return el.length != 0
        var index = arr.indexOf(id.toString());
        if (index !== -1) {
         arr.splice(index, 1);
        } else {
         arr = arr.filter(el => el != id)
       on: {
        onBeforeSelect(i) {
         return false
        onCheck(id) {
       select: true,
       columns: [{
        id: "$checked",
        template: "{common.checkbox()}",
        width: 50
       }, {
        id: "value",
        width: 300
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!