New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with grid paging and drop down inside form element #211

Closed
lafemme8 opened this Issue Dec 5, 2017 · 5 comments

Comments

Projects
None yet
3 participants
@lafemme8

lafemme8 commented Dec 5, 2017

Hi Atatanasov,

I have the grid working as expected with paging within my html page. However if I add it inside of a form element, whenever I click on the page drop down to change size the whole page refreshes. I'm using Bootstrap ui and referenced it correctly. The drop down issue also occurs if it's within a form element. When it is outside it doesn't happen.

Here is snippet of my code:
`




                <div class="form-group">
                    <input id="txtTitle" type="text" placeholder="Title..." class="form-control" />
                </div>
                <button id="btnSearch" type="button" class="btn btn-default">Search</button>
                <button id="btnClear" type="button" class="btn btn-default">Clear</button>
          
        </div>
        <div class="col-xs-4">
            <button id="btnAdd" type="button" class="btn btn-default pull-right">Add New Record</button>
        </div>
    </div>
    <div class="row" style="margin-top: 10px">
        <div class="col-xs-12">
            <table id="grid"></table>
        </div>
    </div>
</div>
</form>
<script type="text/javascript"> $(document).ready(function () { grid = $('#grid').grid({ primaryKey: 'ID', dataSource: '/Api/Test', uiLibrary: 'bootstrap', columns: [ { field: 'title', title: 'Title', sortable: true }, { field: 'description', title: 'Description', sortable: true }, { field: 'publishdate', title: 'Issue Date', sortable: true }, { title: '', field: 'Edit', width: 34, type: 'icon', icon: 'glyphicon-pencil', tooltip: 'Edit', events: { 'click': Edit } }, { title: '', field: 'Delete', width: 34, type: 'icon', icon: 'glyphicon-remove', tooltip: 'Delete', events: { 'click': Delete } } ], pager: { limit: 20, sizes: [10, 20, 50, 100] } }); grid.reload({title: ''}) ` Thanks.
@atatanasov

This comment has been minimized.

Show comment
Hide comment
@atatanasov

atatanasov Dec 7, 2017

Owner

We fixed that in the new development version. You can get the new development version from https://github.com/atatanasov/gijgo/tree/master/dist

Owner

atatanasov commented Dec 7, 2017

We fixed that in the new development version. You can get the new development version from https://github.com/atatanasov/gijgo/tree/master/dist

@atatanasov atatanasov closed this Dec 7, 2017

atatanasov pushed a commit that referenced this issue Dec 7, 2017

@lafemme8

This comment has been minimized.

Show comment
Hide comment
@lafemme8

lafemme8 Dec 8, 2017

lafemme8 commented Dec 8, 2017

@lafemme8

This comment has been minimized.

Show comment
Hide comment
@lafemme8

lafemme8 Jan 2, 2018

Hi Atatanasov,

This works fine when I use the combined gijgo.js but when I try to use it for the modular js the behavior remains. I am using the libraries in the following order and downloaded the development version of the dropdown.
<script src="Scripts/jquery-3.2.1.min.js" type="text/javascript"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.6/umd/popper.min.js" type="text/javascript"></script> <script src="Scripts/bootstrap.min.js" type="text/javascript"></script> <%-- <script src="Scripts/gijgo/combined/gijgo.min.js" type="text/javascript"> </script>--%> <script src="Scripts/gijgo/modular/core.min.js" type="text/javascript"></script> <script src="Scripts/gijgo/modular/grid.min.js" type="text/javascript"></script> <script src="Scripts/gijgo/modular/dropdown.min.js" type="text/javascript"></script> <script src="Scripts/webflow.js" type="text/javascript"></script>

Is this correct? I only want to utilize the grid from the library, no other widgets.

lafemme8 commented Jan 2, 2018

Hi Atatanasov,

This works fine when I use the combined gijgo.js but when I try to use it for the modular js the behavior remains. I am using the libraries in the following order and downloaded the development version of the dropdown.
<script src="Scripts/jquery-3.2.1.min.js" type="text/javascript"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.6/umd/popper.min.js" type="text/javascript"></script> <script src="Scripts/bootstrap.min.js" type="text/javascript"></script> <%-- <script src="Scripts/gijgo/combined/gijgo.min.js" type="text/javascript"> </script>--%> <script src="Scripts/gijgo/modular/core.min.js" type="text/javascript"></script> <script src="Scripts/gijgo/modular/grid.min.js" type="text/javascript"></script> <script src="Scripts/gijgo/modular/dropdown.min.js" type="text/javascript"></script> <script src="Scripts/webflow.js" type="text/javascript"></script>

Is this correct? I only want to utilize the grid from the library, no other widgets.

@ObadMahrous

This comment has been minimized.

Show comment
Hide comment
@ObadMahrous

ObadMahrous Jul 23, 2018

Hello, i need to set page number format is dropdown not text box

ObadMahrous commented Jul 23, 2018

Hello, i need to set page number format is dropdown not text box

@ObadMahrous

This comment has been minimized.

Show comment
Hide comment
@ObadMahrous

ObadMahrous Jul 23, 2018

and need to make max limit for dropdown page number by total number of records divided by page rows count

ObadMahrous commented Jul 23, 2018

and need to make max limit for dropdown page number by total number of records divided by page rows count

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment