jQWidgets Forums

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts

  • shai
    Member

    Hi Peter

    Is that optional ..can I use my own checkbox + buttons ?

    Thanks

    Shai


    shai
    Member

    All right turns out the grid does work with Durandal. The reason for the error was that I was only adding the *grid*.js file along with the core file . But looks like there is a dependency on all the other widgets as well. This clearly can be refactored


    shai
    Member

    Not sure whats the matter with the editor. Here is the view and the js files

    JS Files

       
    <script src="/scripts/jquery-2.0.0.js"></script>
    <script src="/scripts/knockout-2.2.1.debug.js"></script>
    <script src="/scripts/sammy-0.7.4.js"></script>
    <script src="/scripts/toastr.js"></script>
    <script src="/scripts/Q.js"></script>
    <script src="/scripts/breeze.debug.js"></script>
    <script src="/scripts/bootstrap.js"></script>
    <script src="/scripts/moment.js"></script>
    <script src="/scripts/jqwidget/jqxcore.js"></script>
    <script src="/scripts/jqwidget/jqxgrid.js"></script>
    <script src="/scripts/jqwidget/jqxgrid.selection.js"></script>
    <script src="/scripts/jqwidget/jqxgrid.edit.js"></script>
    <script src="/scripts/jqwidget/jqxknockout.js"></script>

    View

     <div data-bind="jqxGrid: {
    source: ReportData, disabled: false, autoheight: true,
    theme: 'classic',
    editable: true,
    selectionmode: 'singlecell',
    columns: [
    { text: 'Status', dataField: 'status', width: 200 },
    { text: 'User', dataField: 'user', width: 200, cellsalign: 'right' },
    { text: 'Client', dataField: 'clientName', width: 200, cellsformat: 'c2', cellsalign: 'right' }
    ]}" id="jqxgrid">
    </div>
    <table style="margin-top: 20px;">
    <tbody data-bind="foreach: ReportData">
    <tr>
    <td data-bind="text: status"></td>
    <td data-bind="text: user"></td>
    <td data-bind="text: clientName"></td>
    </tr>
    </tbody>
    </table>
    </div>
Viewing 3 posts - 1 through 3 (of 3 total)