vitmalina / w2ui

UI widgets for modern apps. Data table, forms, toolbars, sidebar, tabs, tooltips, popups. All under 120kb (gzipped).
http://w2ui.com
MIT License
2.67k stars 727 forks source link

Trying to implement inline edit and search functionalities w2ui gird is showing the same result #1795

Open primeO opened 6 years ago

primeO commented 6 years ago
<div id="grid" style="width: 100%; height: 400px;"></div>
        <script type="text/javascript">
$(function () {
    $('#grid').w2grid({ 
        name: 'grid', 
        url: 'http://localhost:8080/cchidule/rest/od/pc',
        method: 'GET', // need this to avoid 412 error on Safari
        show: { 
            toolbar: true,
            footer: true
        },
        multiSearch: true,
        searches: [
            { field: 'A', caption: 'A', type: 'int' },
            { field: 'B', caption: 'B', type: 'text' }

        ],

        columns: [                
            { field: 'A', caption: 'A', size: '30%' ,  editable: { type: 'int' } },
            { field: 'B', caption: 'B', size: '30%' ,  editable: { type: 'text' } }

        ]
    });    
});
</script>

<script type="text/javascript" src="http://rawgit.com/vitmalina/w2ui/master/dist/w2ui.min.js">

Iam having primefaces in my application , is there any chances of conflict !!

mpf82 commented 6 years ago

Since the data source is remote (you have set grid.url) you will have to do the filtering on the server side.

See http://w2ui.com/web/docs/1.5/w2grid.search

If the data source is remote it will submit search data to the server side to apply the search.