jQWidgets Forums

jQuery UI Widgets Forums Grid Automatic fill-in

This topic contains 1 reply, has 1 voice, and was last updated by  RedantJ 9 years, 7 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Automatic fill-in #78352

    RedantJ
    Participant

    I have an internal table:

    var listMakeModel = [
    { value: foo1, Equiptype: desktop, label: fooCorp Desktop}
    { value: foo2, Equiptype: desktop, label: fooCorp Desktop 2}
    { value: foo3, Equiptype: server, label: fooCorp Server}
    ];

    Which I made into an adapter:

    	var sourceMakeModel =
    	{
    		datatype: "array",
    		datafields: [
    			{ name: 'label', type: 'string' },
    			{ name: 'Equiptype', type: 'string' },
    			{ name: 'value', type: 'string' }
    		],
    		localdata: listMakeModel
    	};
    	var adapterMakeModel = new $.jqx.dataAdapter(sourceMakeModel, {
    		autoBind: true
    	});

    In the program, I have a dropdown box.

    I also have a non-editable, non-displayed column labelled “Equipment Type”.

    What I want to do is automatically fill in the “Equipment Type” column with the value from “Equiptype”

    The values for this ‘Type’ column will be used laterfor auditing purposes.

    My first guess is:

    { text: 'Type', columngroup: 'HoldingBin', datafield: 'EquipmentType', width: 80, editable: false, 
    $("jqxgrid").jqxGrid('setcellvalue', row, "MakeModel", 'EquipType')
    },

    …which is not correct.

    Any help?

    Automatic fill-in #78353

    RedantJ
    Participant

    Strike this question.

    I realized I can accomplish this goal on the server side. Plus I was informed that this is going to be dealt with on a later application.

    Can someone delete this post, please?

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

You must be logged in to reply to this topic.