Hi,

i have 100 records and applying filter on name and when i search for name,

if it returns the 10 records the system should not display the pagination link in the footer section when we have only 10 records.


Reagrds,

Ronan T.

Hello Ronan, 

How does it appears on the browser?

Vera Mendonça wrote:

Hello Ronan, 

How does it appears on the browser?

Hi Vera Mendonça,

if searched records = linecount then it should not show pagination link in the footer section.

please find the attached file.

Regards,

Ronan T.


Ronan T wrote:

Vera Mendonça wrote:

Hello Ronan, 

How does it appears on the browser?

Hi Vera Mendonça,

if searched records = linecount then it should not show pagination link in the footer section.

please find the attached file.

Regards,

Ronan T.


Can you show the list navigation, list record and table properties please?


Vera Mendonça wrote:

Ronan T wrote:

Vera Mendonça wrote:

Hello Ronan, 

How does it appears on the browser?

Hi Vera Mendonça,

if searched records = linecount then it should not show pagination link in the footer section.

please find the attached file.

Regards,

Ronan T.


Can you show the list navigation, list record and table properties please?


Hi Vera Mendonça,

ListWidgetId - suppliersTables.Id
LineCount - suppliersTables.LineCount
Totalrowcount - Getsuppliers.Count


Regards,

Ronan T.


Ronan T wrote:

Vera Mendonça wrote:

Ronan T wrote:

Vera Mendonça wrote:

Hello Ronan, 

How does it appears on the browser?

Hi Vera Mendonça,

if searched records = linecount then it should not show pagination link in the footer section.

please find the attached file.

Regards,

Ronan T.


Can you show the list navigation, list record and table properties please?


Hi Vera Mendonça,

ListWidgetId - suppliersTables.Id
LineCount - suppliersTables.LineCount
Totalrowcount - Getsuppliers.Count


Regards,

Ronan T.


Are you setting the StartIndex with List_Navigation_GetStartIndex? 

You may add an if to the list navigation, to show if the GetSuppliers.Count > X records


Hi,

   I have enclosed the pagination inside a if Loop, so if number of filtered records is less than or equal to linecount the pagination should nt be displayed it is not working fine the condition is getting applied for less than but if linecount and count of records returned is equal the pagination number is displaying


Thanks,

Ronan T

Vera Mendonça wrote:

Ronan T wrote:

Vera Mendonça wrote:

Ronan T wrote:

Vera Mendonça wrote:

Hello Ronan, 

How does it appears on the browser?

Hi Vera Mendonça,

if searched records = linecount then it should not show pagination link in the footer section.

please find the attached file.

Regards,

Ronan T.


Can you show the list navigation, list record and table properties please?


Hi Vera Mendonça,

ListWidgetId - suppliersTables.Id
LineCount - suppliersTables.LineCount
Totalrowcount - Getsuppliers.Count


Regards,

Ronan T.


Are you setting the StartIndex with List_Navigation_GetStartIndex? 

You may add an if to the list navigation, to show if the GetSuppliers.Count > X records


Hi Vera Mendonça,

In false block i wrote below condition,

SyntaxEditor Code Snippet

GetSuppliers.Count <= SupplierTable.LineCount

but it is not working

Hi Ronan,

The List_Navigation should do that by itself of hiding if no more than 1 page because of this code "StartIndex=0 and TotalRowCount < LineCount". When you filter you were on page 1 or not? if it only happens when you are not on page 1 when you filter the table you can think on starting ResetStartIndex everytime you filter. The bad thing about this is that you will always be sent to page 1 after filter

Regards,

Marcelo

Ronan T wrote:

Hi,

i have 100 records and applying filter on name and when i search for name,

if it returns the 10 records the system should not display the pagination link in the footer section when we have only 10 records.


Reagrds,

Ronan T.


Hii, Ronan

Try to use this property in your datatable declaration, might help

     function loadJson() {

    $('#datatable')
            .DataTable(
                    {

                        "sServerMethod" : "GET",
                        "sAjaxSource" : "${pageContext.request.contextPath}/emi/calculate?jsonValue="
                                + jsonData,
                        "sAjaxDataProp" : "",


                        "aoColumns" : [ {
                            "mData" : null
                        }, {
                            "mData" : "emiDate"
                        }, {
                            "mData" : "principle"
                        }, {
                            "mData" : "interestAmount"
                        }, {
                            "mData" : "emi"
                        }, {
                            "mData" : "loanOutstanding"
                        } ],
                        "bProcessing" : true,
                        "bPaginate" : true,
                        "bServerSide" : true
                    });

}





Sagar Rathod wrote:

Ronan T wrote:

Hi,

i have 100 records and applying filter on name and when i search for name,

if it returns the 10 records the system should not display the pagination link in the footer section when we have only 10 records.


Reagrds,

Ronan T.


Hii, Ronan

Try to use this property in your datatable declaration, might help

     function loadJson() {

    $('#datatable')
            .DataTable(
                    {

                        "sServerMethod" : "GET",
                        "sAjaxSource" : "${pageContext.request.contextPath}/emi/calculate?jsonValue="
                                + jsonData,
                        "sAjaxDataProp" : "",


                        "aoColumns" : [ {
                            "mData" : null
                        }, {
                            "mData" : "emiDate"
                        }, {
                            "mData" : "principle"
                        }, {
                            "mData" : "interestAmount"
                        }, {
                            "mData" : "emi"
                        }, {
                            "mData" : "loanOutstanding"
                        } ],
                        "bProcessing" : true,
                        "bPaginate" : true,
                        "bServerSide" : true
                    });

}


Hi Sagar,

This is a j query plugin right,but we are not suppose to use it

Thanks,

Ronan T.