jQWidgets Forums

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 21 total)
  • Author
    Posts
  • in reply to: method 'toLowerCase' method 'toLowerCase' #5160

    ScottNL
    Member

    The answer always easy when you know it.

    Thanks a bunch peter.

    in reply to: method 'toLowerCase' method 'toLowerCase' #5158

    ScottNL
    Member

    btw i feel pretty stupid now that i know it’s so easy

    in reply to: method 'toLowerCase' method 'toLowerCase' #5157

    ScottNL
    Member
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title>Manufactures</title>
    <link rel="stylesheet" href="jqcore/css/ui-lightness/jquery-ui-1.8.21.custom.css" type="text/css" />
    <link rel="stylesheet" href="jqwidgets/jqwidgets/styles/jqx.base.css" type="text/css" />
    <link rel="stylesheet" href="jqwidgets/jqwidgets/styles/jqx.classic.css" type="text/css" />
    <link rel="stylesheet" href="styles/main.css" type="text/css" />
    <link rel="stylesheet" href="styles/form.css" type="text/css" />
    <script type="text/javascript" src="javascript/jquery-1.7.2.min.js"></script>
    <script type="text/javascript" src="jqcore/js/jquery-ui-1.8.21.custom.min.js"></script>
    <script type="text/javascript" src="jqwidgets/scripts/gettheme.js"></script>
    <script type="text/javascript" src="jqwidgets/jqwidgets/jqx-all.js"></script>
    <script>
    $(document).ready(function () {
    var theme = 'classic';
    $('#manu').jqxValidator({
    rules: [
    { input: '#ainput', message: 'Verplicht veld', action: 'keyup', rule: 'minLength=3' },
    ],
    theme: theme
    });
    });
    </script>
    </head>
    <body>
    <div id="manufacturer" style="padding:15px;">
    <form id="manu">
    <table>
    <tr>
    <td class="label" >Fabrikant code:</td>
    <td><input id="ainput" class="text-input-small" /></td>
    </tr>
    </table>
    </form>
    </div>
    </body>
    </html>
    in reply to: method 'toLowerCase' method 'toLowerCase' #5155

    ScottNL
    Member

    Is there any documentation on how to post code on the forum?

    in reply to: Test Topic Test Topic #5153

    ScottNL
    Member

    $(document).ready(function () {

    var theme = 'classic';

    $('#manu').jqxValidator({
    rules: [
    { input: '#userInput', message: 'Verplicht veld', action: 'keyup', rule: 'minLength=3' },
    ],
    theme: theme
    });

    });

    Fabrikant code:

    in reply to: method 'toLowerCase' method 'toLowerCase' #5152

    ScottNL
    Member

    I’ll try to post the code. But posting code on this forum is a annoying job.

    in reply to: method 'toLowerCase' method 'toLowerCase' #5148

    ScottNL
    Member

    Just tryed this and got the same error:

    $(document).ready(function () {
    $(‘#manu’).jqxValidator({
    rules: [
    { input: ‘#userInput’, message: ‘Username is required!’, action: ‘keyup, blur’, rule: ‘required’ }

    ],
    theme: theme
    });
    });

    Naam:

    in reply to: method 'toLowerCase' method 'toLowerCase' #5146

    ScottNL
    Member

    It was just the selector saying to grab only #m__name within #manufacturer

    But i have just renamed the fields and still getting this error:

    Uncaught TypeError: Cannot call method ‘toLowerCase’ of undefined

    within the Validator function

    in reply to: Addrow at start Addrow at start #4838

    ScottNL
    Member

    Cheers Peter,

    Exactly what i was looking for

    in reply to: totalrecords totalrecords #4777

    ScottNL
    Member

    Cheers Peter, i’ll update the source

    in reply to: rendergridrows add params rendergridrows add params #4730

    ScottNL
    Member

    In the end it was a easy fix

    add this:

    $(“#jqxgrid”).bind(“sort”, function (event) {
    var sortinformation = event.args.sortinformation;
    sortinformation.sortcolumn = sortinformation.sortcolumn;
    $(‘#jqxgrid’).jqxGrid(‘updatebounddata’);
    });

    to set the sortinformation to the current sort column

    then in rendergridrows you can call sortinformation with current selected column name

    var rendergridrows = function (params) {

    var sortinformation = $(“#jqxgrid”).jqxGrid(“getsortinformation”);
    var sortcolumn = sortinformation.sortcolumn;
    var sortdirection = sortinformation.sortdirection;
    if(typeof sortdirection!=’undefined’ && typeof sortcolumn!=’undefined’){
    sortdirection = sortinformation.sortdirection.ascending ? “ascending” : “descending”;
    sortcolumn = sortinformation.sortcolumn;
    }else{
    sortdirection = false;
    sortcolumn = false;
    }
    var griddata = getjqdata(“ajax/table.php”,params.startindex, params.endindex,getsearchparams(),sortcolumn,sortdirection );

    return griddata[‘data’];
    }

    in reply to: rendergridrows add params rendergridrows add params #4685

    ScottNL
    Member

    Thanks peter for your prompt response

    I was aware of this feature but cannot use it because i am returning more data than just grid data.

    i need full control of the response

    the response configures these jqwidgets params:

    $(“#jqxgrid”).jqxGrid(settings);
    $(“#jqxgrid”).jqxGrid({rendergridrows: rendergridrows});
    $(“#jqxgrid”).jqxGrid(‘source’, source );
    $(“#jqxgrid”).jqxGrid(‘columns’, columns);

    and about 10 other things in the page. That was why i couldn’t do it this way.

    i use this method:

    function getjq(url,getparams){
    var result;
    $.ajax({
    type: “GET”,
    url: url,
    data: getparams,
    dataType: “json”,
    async: false,
    success: function(data) {
    result = data;
    }
    });
    return result;
    }

    in reply to: rendergridrows add params rendergridrows add params #4682

    ScottNL
    Member

    cheers peter.

    I got the function to work before but it was 1 step behind the current action

    var rendergridrows = function (params) {

    var sortinformation = $(‘#grid’).jqxGrid(‘getsortinformation’);
    var sortcolumn = sortinformation.sortcolumn;
    var sortdirection = sortinformation.sortdirection;

    var griddata = getjqdata(params.startindex, params.endindex,sortcolumn,sortdirection );
    return griddata[‘data’];

    }

    getsortinformation
    show’s me the current position. I could not get a event handler to work within rendergridrows

    This is the last piece of the puzzle i need to figure out to complete the program.

    if you could help me out i would be very great full.

    => jquery-grid-extra-http-variables.htm.
    i couldn’t use this because there’s much more going on in the page and all info is linked to the json. That’s why i had to use my own call function to the data .

    in reply to: rendergridrows rendergridrows #4641

    ScottNL
    Member

    Problem solved:

    $(“#jqxgrid”).jqxGrid({rendergridrows: rendergridrows});

    in reply to: column options column options #4488

    ScottNL
    Member

    Sorry. It’s pretty clear where to find this.

    grid => API => Behavior => columns

Viewing 15 posts - 1 through 15 (of 21 total)