jQWidgets Forums

jQuery UI Widgets Forums Grid jqxgrid setcellvalue undefined

This topic contains 1 reply, has 2 voices, and was last updated by  Hristo 8 years, 8 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • jqxgrid setcellvalue undefined #87712

    pode.marut
    Participant
    var options = {
    			source : {
    				datafields : [ {
    					name : 'customerType',
    					type : 'string'
    				}],
    				autodisplay : true,
    				datatype : "json",
    				url : '<s:url action="load_loadData" namespace="/test" />'
    			},
    			jqxGrid : {
    
    				columns : [ {
    					text : '<s:text name="Attendee Type" />',
    					datafield : 'customerType'
    				}]
    			}
    		};
    
    		$("#gridTable").JqxGrid(options);

    When jqxGrid get data from json it return value 1 for ‘customerType’.
    I want to edit cell with new value (String)

    $('#gridTable').jqxGrid('setcellvalue', 0,"customerType", "Test");}

    but browser response ‘undefined’.

    so i try to edit with int value.
    $('#gridTable').jqxGrid('setcellvalue', 0,"customerType", "123");}

    It’s work but i want to edit with string value.

    jqxgrid setcellvalue undefined #87751

    Hristo
    Participant

    Hello pode.marut,

    Please, take a look at this example:
    https://www.jseditor.io/?key=grid-change-cell-value-1

    Best Regards,
    Hristo Hristov

    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.