jQWidgets Forums

jQuery UI Widgets Forums Grid dropdownlist not working

This topic contains 1 reply, has 2 voices, and was last updated by  Peter Stoev 10 years, 4 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • dropdownlist not working #66736

    mustafa
    Participant

    hello
    I do not see grid in dropdownlist

        var Itemlist = GetInvoiceItems();
    
        var itemSource =    
                {
                    datatype: "json",
                    datafields: [
                        { name: 'Name', type: 'string' },
                        { name: 'InvoiceItemID', type: 'string' }
                    ],               
                    id: 'InvoiceItemID',
                    localdata:Itemlist,
                    async: false
                };
    
        var itemAdapter = new $.jqx.dataAdapter(itemSource, {
            autoBind: true 
        });
       
        $("#InvoiceItemGrid").jqxGrid(
        {
            width: '100%',
            source: itemAdapter,
            pageable: true,
            selectionmode: 'singlecell',
            editable: true,
            enablehover: true,
            rowsheight: 40,
            sortable: true,
            altrows: true,
            autoheight: true,
            height: '420px',
            pagesize: 10,
            theme: "Web",
            editable: false,
            columns: [
                  {
                      text: 'Item Name', datafield: 'Name', width: 150, columntype: 'dropdownlist',
                      createeditor: function (row, column, editor) {
                          editor.jqxDropDownList({ autoDropDownHeight: true, source: itemAdapter });
                      }
                  },
            ],
        });
    dropdownlist not working #66742

    Peter Stoev
    Keymaster

    Hi mustafa,

    Look at: http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxgrid/cellediting.htm?arctic. DropDownLists are opened when the cell is in edit mode. They’re not always displayed.

    Best Regards,
    Peter Stoev

    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.