jQWidgets Forums

jQuery UI Widgets Forums Grid jqx-all Problem 3.8.1 to 3.8.2

This topic contains 2 replies, has 2 voices, and was last updated by  ChristianB 9 years, 9 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • jqx-all Problem 3.8.1 to 3.8.2 #75139

    ChristianB
    Participant

    hi jqxTeam,
    i’ve a Problem by using jqx-all.js in version 3.8.2.
    Here is the Code (works fine with 3.8.1):

    <!DOCTYPE html>
    <html>
    <head>
    	<meta charset="UTF-8">
    	<title>Insert title here</title>
    	
    	
    	<link rel="stylesheet" href="/kernel/js/jqwidgets/jqwidgets/styles/jqx-all.css" type="text/css" />
    	<script type="text/javascript" src="/kernel/js/jqwidgets/scripts/jquery-1.11.1.min.js"></script>
    	<script type="text/javascript" src="/kernel/js/jqwidgets/jqwidgets/jqx-all-3.8.1.js"></script>
    	<script>
    		$(document).ready(function () {
    			var myStorage = sessionStorage;
    			
    			var url = "/module/formproz/data/wf.workflows.php?mandant=" + myStorage.getItem('mandant') + "&station=" + myStorage.getItem('station') + "&persnr=" + myStorage.getItem('PERSNR');
    		    var source =
    		    {
    		        datatype: "json",
    		        datafields: [
    		            { name: "PROZESS", type: "string" },
    		            { name: "UID", type: "int" },
    		            { name: "XMLDATEI", type: "string" }
    		        ],
    		        id: 'UID',
    		        url: url,
    		        root: 'data'
    		    };
    		    
    		    var dataAdapter = new $.jqx.dataAdapter(source);
    			
    		    $("#wfGrid").jqxGrid(
    		        {
    		            width: "100%",
    			    height: "100%",
    			    theme: "web",
    		            source: dataAdapter,
    		            showfilterrow: true,
    		            filterable: true,
    		            columns: [
    		              { text: "Prozess", datafield: "PROZESS" }
    		            ]
    		        });
    		    
    		    $('#wfGrid').on('rowselect', function (event){
    		    	alert("piep");
    		    	var args = event.args;
    		        var rowBoundIndex = args.rowindex;
    		        var rowData = args.row;
    		        try{
    		            myStorage.setItem('neuerprozess', rowData.PROZESS);
    		            myStorage.setItem('neuerprozessid', rowData.UID);
    		            myStorage.setItem('neuerprozessxmldatei', rowData.XMLDATEI);
    		        }catch(e){
    		        	alert(JSON.stringify(e));
    		        }finally{
    		        	/*
    		        	* Nothing to do
    		        	*/
    		        }
    		    });
    		    
    		});
    
    	</script>
    </head>
    <body>
    	<div id="wfGrid"></div>
    </body>
    </html>

    If i update to <script type="text/javascript" src="/kernel/js/jqwidgets/jqwidgets/jqx-all-3.8.2.js"></script> i have ‘Invalid argument’ Error on Line ‘7’ Character ‘235731’.
    Browser-Agent is [HTTP_USER_AGENT] => Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0).

    Can you help me please?

    Best Regards
    Christian

    jqx-all Problem 3.8.1 to 3.8.2 #75143

    Peter Stoev
    Keymaster

    Hi Christian,

    We cannot reproduce an error from this code.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    jqx-all Problem 3.8.1 to 3.8.2 #75144

    ChristianB
    Participant

    Hi Peter,
    thanks for the response.
    Have you take a look on the User-Agent?

    Regards
    Christian

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

You must be logged in to reply to this topic.