1
Help for ParamQuery Pro / Re: Show differnet pqGrid in same div
« on: May 06, 2015, 03:41:03 pm »
It's quite difficult to reproduce a jsfiddle, so can you tell me which is the prefered methid to do such a thing?
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
$('#btnSubmit').on('click', function () {
gridType = gridType || 'daily';
if (grid != null && gridType == 'daily')
$("#detailsGrid").pqGrid("refreshDataAndView");
else
grid = $("#detailsGrid").pqGrid(detailsGrid);
//
gridType = 'daily';
});
$('#btnSubmitMonthly').on('click', function () {
gridType = gridType || 'monthly';
if (grid != null && gridType == 'monthly')
$("#detailsGrid").pqGrid("refreshDataAndView");
else {
if (grid != null)
$("#detailsGrid").pqGrid("destroy");
//
grid = $("#detailsGrid").pqGrid(monthlyDetailsGrid);
}
//
gridType =
$("#detailsGrid").pqGrid("destroy");
grid = $("#detailsGrid").pqGrid(monthlyDetailsGrid);
Wow. I found the solution!
add after bootstrap.js
$.fn.bootstrapBtn = $.fn.button.noConflict();
<div class="pq-grid-footer pq-pager"> <button type="button" title="Πρώτη σελίδα"></button><button type="button" title="Προηγούμενη σελίδα"></button><span class="pq-separator"></span><span class="pq-page-placeholder"><span>Σελίδα</span><input type="text" tabindex="0" class="ui-corner-all"><span>από</span><span class="total">2</span></span><span class="pq-separator"></span><button type="button" title="Επόμενη σελίδα"></button><button type="button" title="Τελευταία σελίδα"></button><span class="pq-separator"></span><span class="pq-page-placeholder"><span></span><select class="ui-corner-all"><option value="10">10</option><option value="20">20</option><option value="50">50</option><option value="100">100</option></select><span class="pq-separator"></span></span><button type="button" title="Ανανέωση"></button><span class="pq-separator"></span><span class="pq-pager-msg">Εμφάνιση 1 εως 20 από 39 εγγραφές.</span></div>