Can't See All Option In Dropdown Because Of Pagination
I'm using Laravel 5.7
& VueJs 2.5.*
...
I did pagination for my invoice as well as vendor table. i have a create invoice form in which i have dropdown option for selecting vendors, i have more than 20 vendors, after doing pagination i see in my form i have only 10 vendors in my dropdown option... I don't know how to fix this issue.
Did Pagination Like this:
In HTML
<!--PAGINATION FOR VENDORS TABLE -->
<pagination :data="ticketInvoices" @pagination-change-page="getResults"></pagination>
<!--PAGINATION FOR VENDORS TABLE -->
<pagination :data="vendors" @pagination-change-page="getResults"></pagination>
methods:{}
of both pagination
//METHOD FOR INVOICE
getResults(page = 1) {
axios.get("api/ticket-invoice?page=" + page).then(response => {
this.ticketInvoices = response.data;
});
},
//METHOD FOR VENDOR
getResults(page = 1) {
axios.get("api/vendor?page=" + page).then(response => {
this.vendors = response.data;
});
},
InvoiceController
& VendorController
/*Invoice Controller*/
class TicketInvoiceController extends Controller
{
public function index()
{
$ticketInvoices = TicketInvoice::orderBy('created_at', 'desc')->paginate(10);
return $ticketInvoices;
}
/*Invoice Controller*/
class VendorController extends Controller
{
public function index()
{
$vendor = Vendor::paginate(10);
return $vendor;
}
Before Pagination
After Pagination
javascript laravel vue.js vuejs2 laravel-5.7
|
show 2 more comments
I'm using Laravel 5.7
& VueJs 2.5.*
...
I did pagination for my invoice as well as vendor table. i have a create invoice form in which i have dropdown option for selecting vendors, i have more than 20 vendors, after doing pagination i see in my form i have only 10 vendors in my dropdown option... I don't know how to fix this issue.
Did Pagination Like this:
In HTML
<!--PAGINATION FOR VENDORS TABLE -->
<pagination :data="ticketInvoices" @pagination-change-page="getResults"></pagination>
<!--PAGINATION FOR VENDORS TABLE -->
<pagination :data="vendors" @pagination-change-page="getResults"></pagination>
methods:{}
of both pagination
//METHOD FOR INVOICE
getResults(page = 1) {
axios.get("api/ticket-invoice?page=" + page).then(response => {
this.ticketInvoices = response.data;
});
},
//METHOD FOR VENDOR
getResults(page = 1) {
axios.get("api/vendor?page=" + page).then(response => {
this.vendors = response.data;
});
},
InvoiceController
& VendorController
/*Invoice Controller*/
class TicketInvoiceController extends Controller
{
public function index()
{
$ticketInvoices = TicketInvoice::orderBy('created_at', 'desc')->paginate(10);
return $ticketInvoices;
}
/*Invoice Controller*/
class VendorController extends Controller
{
public function index()
{
$vendor = Vendor::paginate(10);
return $vendor;
}
Before Pagination
After Pagination
javascript laravel vue.js vuejs2 laravel-5.7
You'll need to determine when to load the next page of your pagination. It's not automatic.
– Ohgodwhy
Nov 16 '18 at 2:06
@Ohgodwhy if you don't mind can you guide me with some code ?
– Saif Zakir
Nov 16 '18 at 7:11
1
@hktang Yes i have to go with autocomplete.... Lets try.
– Saif Zakir
Nov 16 '18 at 8:03
1
@SaifZakir Hi, Saif I am not familiar with VueJS, but this link might help: vuejsdevelopers.com/2017/08/28/vue-js-ajax-recipes
– hktang
Nov 17 '18 at 0:05
1
@hktang Thanks for your support, i hope this will help me out. :)
– Saif Zakir
Nov 17 '18 at 13:36
|
show 2 more comments
I'm using Laravel 5.7
& VueJs 2.5.*
...
I did pagination for my invoice as well as vendor table. i have a create invoice form in which i have dropdown option for selecting vendors, i have more than 20 vendors, after doing pagination i see in my form i have only 10 vendors in my dropdown option... I don't know how to fix this issue.
Did Pagination Like this:
In HTML
<!--PAGINATION FOR VENDORS TABLE -->
<pagination :data="ticketInvoices" @pagination-change-page="getResults"></pagination>
<!--PAGINATION FOR VENDORS TABLE -->
<pagination :data="vendors" @pagination-change-page="getResults"></pagination>
methods:{}
of both pagination
//METHOD FOR INVOICE
getResults(page = 1) {
axios.get("api/ticket-invoice?page=" + page).then(response => {
this.ticketInvoices = response.data;
});
},
//METHOD FOR VENDOR
getResults(page = 1) {
axios.get("api/vendor?page=" + page).then(response => {
this.vendors = response.data;
});
},
InvoiceController
& VendorController
/*Invoice Controller*/
class TicketInvoiceController extends Controller
{
public function index()
{
$ticketInvoices = TicketInvoice::orderBy('created_at', 'desc')->paginate(10);
return $ticketInvoices;
}
/*Invoice Controller*/
class VendorController extends Controller
{
public function index()
{
$vendor = Vendor::paginate(10);
return $vendor;
}
Before Pagination
After Pagination
javascript laravel vue.js vuejs2 laravel-5.7
I'm using Laravel 5.7
& VueJs 2.5.*
...
I did pagination for my invoice as well as vendor table. i have a create invoice form in which i have dropdown option for selecting vendors, i have more than 20 vendors, after doing pagination i see in my form i have only 10 vendors in my dropdown option... I don't know how to fix this issue.
Did Pagination Like this:
In HTML
<!--PAGINATION FOR VENDORS TABLE -->
<pagination :data="ticketInvoices" @pagination-change-page="getResults"></pagination>
<!--PAGINATION FOR VENDORS TABLE -->
<pagination :data="vendors" @pagination-change-page="getResults"></pagination>
methods:{}
of both pagination
//METHOD FOR INVOICE
getResults(page = 1) {
axios.get("api/ticket-invoice?page=" + page).then(response => {
this.ticketInvoices = response.data;
});
},
//METHOD FOR VENDOR
getResults(page = 1) {
axios.get("api/vendor?page=" + page).then(response => {
this.vendors = response.data;
});
},
InvoiceController
& VendorController
/*Invoice Controller*/
class TicketInvoiceController extends Controller
{
public function index()
{
$ticketInvoices = TicketInvoice::orderBy('created_at', 'desc')->paginate(10);
return $ticketInvoices;
}
/*Invoice Controller*/
class VendorController extends Controller
{
public function index()
{
$vendor = Vendor::paginate(10);
return $vendor;
}
Before Pagination
After Pagination
javascript laravel vue.js vuejs2 laravel-5.7
javascript laravel vue.js vuejs2 laravel-5.7
asked Nov 16 '18 at 0:31
Saif ZakirSaif Zakir
8410
8410
You'll need to determine when to load the next page of your pagination. It's not automatic.
– Ohgodwhy
Nov 16 '18 at 2:06
@Ohgodwhy if you don't mind can you guide me with some code ?
– Saif Zakir
Nov 16 '18 at 7:11
1
@hktang Yes i have to go with autocomplete.... Lets try.
– Saif Zakir
Nov 16 '18 at 8:03
1
@SaifZakir Hi, Saif I am not familiar with VueJS, but this link might help: vuejsdevelopers.com/2017/08/28/vue-js-ajax-recipes
– hktang
Nov 17 '18 at 0:05
1
@hktang Thanks for your support, i hope this will help me out. :)
– Saif Zakir
Nov 17 '18 at 13:36
|
show 2 more comments
You'll need to determine when to load the next page of your pagination. It's not automatic.
– Ohgodwhy
Nov 16 '18 at 2:06
@Ohgodwhy if you don't mind can you guide me with some code ?
– Saif Zakir
Nov 16 '18 at 7:11
1
@hktang Yes i have to go with autocomplete.... Lets try.
– Saif Zakir
Nov 16 '18 at 8:03
1
@SaifZakir Hi, Saif I am not familiar with VueJS, but this link might help: vuejsdevelopers.com/2017/08/28/vue-js-ajax-recipes
– hktang
Nov 17 '18 at 0:05
1
@hktang Thanks for your support, i hope this will help me out. :)
– Saif Zakir
Nov 17 '18 at 13:36
You'll need to determine when to load the next page of your pagination. It's not automatic.
– Ohgodwhy
Nov 16 '18 at 2:06
You'll need to determine when to load the next page of your pagination. It's not automatic.
– Ohgodwhy
Nov 16 '18 at 2:06
@Ohgodwhy if you don't mind can you guide me with some code ?
– Saif Zakir
Nov 16 '18 at 7:11
@Ohgodwhy if you don't mind can you guide me with some code ?
– Saif Zakir
Nov 16 '18 at 7:11
1
1
@hktang Yes i have to go with autocomplete.... Lets try.
– Saif Zakir
Nov 16 '18 at 8:03
@hktang Yes i have to go with autocomplete.... Lets try.
– Saif Zakir
Nov 16 '18 at 8:03
1
1
@SaifZakir Hi, Saif I am not familiar with VueJS, but this link might help: vuejsdevelopers.com/2017/08/28/vue-js-ajax-recipes
– hktang
Nov 17 '18 at 0:05
@SaifZakir Hi, Saif I am not familiar with VueJS, but this link might help: vuejsdevelopers.com/2017/08/28/vue-js-ajax-recipes
– hktang
Nov 17 '18 at 0:05
1
1
@hktang Thanks for your support, i hope this will help me out. :)
– Saif Zakir
Nov 17 '18 at 13:36
@hktang Thanks for your support, i hope this will help me out. :)
– Saif Zakir
Nov 17 '18 at 13:36
|
show 2 more comments
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53329768%2fcant-see-all-option-in-dropdown-because-of-pagination%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53329768%2fcant-see-all-option-in-dropdown-because-of-pagination%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
You'll need to determine when to load the next page of your pagination. It's not automatic.
– Ohgodwhy
Nov 16 '18 at 2:06
@Ohgodwhy if you don't mind can you guide me with some code ?
– Saif Zakir
Nov 16 '18 at 7:11
1
@hktang Yes i have to go with autocomplete.... Lets try.
– Saif Zakir
Nov 16 '18 at 8:03
1
@SaifZakir Hi, Saif I am not familiar with VueJS, but this link might help: vuejsdevelopers.com/2017/08/28/vue-js-ajax-recipes
– hktang
Nov 17 '18 at 0:05
1
@hktang Thanks for your support, i hope this will help me out. :)
– Saif Zakir
Nov 17 '18 at 13:36