jQWidgets Forums

Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • in reply to: Refresh data: php script Refresh data: php script #64345

    k1mgy
    Participant

    That breaks it.

    When I remove refreshdata, then I have to execute the call twice in order that the grid is refreshed.

    It simply takes me back to the original problem.

    in reply to: Scroll down Scroll down #64333

    k1mgy
    Participant

    Thanks, Peter.

    This code change:

    pageable: false,
    pagesize: 15,

    fixed the issue.

    Now I have vertical scroll.

    I think the documentation for pageable might be improved.

    
    pageable
    (requires jqxgrid.pager.js)
    
    This property controls navigation of the grid rows.  If <strong><em>pageable: true</em></strong>, the grid is presented in one or more pages of [n] rows (see <em>pagesize</em> property to set the number of rows per page).  Page navigation elements are presented for the user interface.
    
    If <em><strong>pageable: false</strong></em>, the grid is presented in a list of <strong><em>pagesize</em></strong> rows.  The user may use a mouse wheel or keyboard to scroll through the list.
    
    Examples:
    Set the pageable property ON:
    
            $('#jqxGrid').jqxGrid({ pageable: true}); 
    
    or in the jqxGrid initialization javascript:
    	<li>$("#jqxgrid").jqxGrid({
                        source: DataSource,
                        sortable: true,
                        <strong>pageable: false,</strong>
                        pagesize: 15,</li>
    
    Get the pageable property:
    
            var pageable = $('#jqxGrid').jqxGrid('pageable'); 
    
    in reply to: Refresh data: php script Refresh data: php script #64278

    k1mgy
    Participant

    Fixed.

    Had to:

    async: false,

    in the DataSource specification and:

    
     $('#bValidateCalls').on('click', function () {
                    $.post('validate.php');
                    $('#jqxgrid').jqxGrid('refreshdata');
                    $('#jqxgrid').jqxGrid('updatebounddata');
                });
                
                $('#bClearValidateCalls').on('click', function () 
                {
                    $.post('clearvalidate.php');
                    $('#jqxgrid').jqxGrid('refreshdata');
                    $('#jqxgrid').jqxGrid('updatebounddata');
                });

    in my action functions.

    It seems one must refreshdata before updating the bindings! Who would have thunk!

    in reply to: Refresh data: php script Refresh data: php script #64276

    k1mgy
    Participant

    Actually, I found some functions to help. Although the data updates in the database, it does not in the grid unless I reload the page, or
    press a button used to trigger the update twice.

          $('#bUpdateCells').on('click', function () 
          {
                    $.post("updatecells.php");
                    $('#jqxgrid').jqxGrid('updatebounddata');
                    $('#jqxGrid').jqxGrid('refresh');
                    $('#jqxGrid').jqxGrid('render');
           });
    

    On the second execution of the button, the cells refresh.

    Hmmm…

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