Two Issues

UI Components for Vue
Post Reply
ErkamMedya
Posts: 13
Joined: 21 Jan 2019, 13:19

17 Jul 2019, 09:32

Dear Sir,

In datatable, when I on a page for example; 2nd, 3rd, 5th or another page. I post a form on the datatable, but the active page does not change.

For example; when I on the 5th page; When I post a form, the active page(5th page) should be first page.

This also applies to sorting. When I SORT datas on the 5th page, the active page(5th page) should be first page.

Another problem is about SplitButton. The problem appears in the attached file.
Image

Code: Select all

<div class="p-grid p-fluid">
    <div class="p-col-12 p-md-3">
        <span>Label</span>
        <div class="p-inputgroup">
            <Dropdown optionLabel="name" optionValue="code" placeholder=".." />

            <SplitButton icon="pi pi-search" :model="items"></SplitButton>

        </div>
    </div>
    <div class="p-col-12 p-md-3">
        <span>Label</span>
        <div class="p-inputgroup">
            <Dropdown optionLabel="name" optionValue="code" placeholder="..." />

            <Button icon="pi pi-search" class="p-button-warning" />
            <Button icon="pi pi-user" class="p-button-warning" />
        </div>
    </div>

    <div class="p-col-12 p-md-3">
        <span>Label</span>
        <Dropdown placeholder="..."></Dropdown>
    </div>
    <div class="p-col-12 p-md-3">
        <span>Label</span>
        <InputText />
    </div>
</div>

<div class="p-grid p-fluid">
    <div class="p-col-12 p-md-3">
        <span>Label</span>
        <div class="p-inputgroup">
            <Dropdown optionLabel="name" optionValue="code" placeholder=".." />

            <SplitButton label=".." :model="items"></SplitButton>

        </div>
    </div>
    <div class="p-col-12 p-md-3">
        <span>Label</span>
        <div class="p-inputgroup">
            <Dropdown optionLabel="name" optionValue="code" placeholder="..." />

            <Button icon="pi pi-search" class="p-button-warning" />
            <Button icon="pi pi-user" class="p-button-warning" />
        </div>
    </div>

    <div class="p-col-12 p-md-3">
        <span>Label</span>
        <Dropdown placeholder="..."></Dropdown>
    </div>
    <div class="p-col-12 p-md-3">
        <span>Label</span>
        <InputText />
    </div>
</div>
How can I fix this problem?

I look forward to hearing from you soon.

maydinbil
Posts: 38
Joined: 15 Jan 2015, 17:51
Location: Bursa,Turkiye

18 Jul 2019, 10:42

Did you add primeflex ?

ErkamMedya
Posts: 13
Joined: 21 Jan 2019, 13:19

19 Jul 2019, 08:02

Yes. I'm using sigma-vue template.

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

28 Jul 2019, 16:11

In the first case, the behavior depends on the requirements, you can bind to first property and set it to 0 after posting the form so paginator will reset itself.

Second one where paginator goes to first page after sort is the expected behavior and available in all other Prime projects so we'll do it for beta.5;

https://github.com/primefaces/primevue/issues/27

Post Reply

Return to “PrimeVue”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 8 guests