This is a migrated thread and some comments may be shown as answers.

Pager custom text

1 Answer 16 Views
ListView
This is a migrated thread and some comments may be shown as answers.
Larissa
Top achievements
Rank 1
Larissa asked on 27 Jan 2020, 03:22 PM

I need to set an custom empty message for the pager in a listview.  We are binding using data-attributes.  I think the data- for the empty message would be something like this, but this isn't working

 

<div id="pager-#= data.tabId #" class="activity-pane-pager k-pager-wrap" tabindex="0"
             data-role="pager"
             data-bind="source: dataSource"
             data-messages-empty="test message" >
        </div>

 

Can you tell me what this should be?  Thanks!

1 Answer, 1 is accepted

Sort by
0
Vessy
Telerik team
answered on 29 Jan 2020, 11:17 AM

Hi Larissa,

You can bind the empty message value by assigning the value like follows to the composite empty option:

<div id="pager2" class="activity-pane-pager k-pager-wrap" tabindex="0"
             data-role="pager"
             data-bind="source: dataSource"
             data-messages="{ empty: 'Test message' }"
             style="width: 700px">
</div>

You can see a sample, demonstrating how to set the value both inline string, or taking it from the viewmodel here:

https://dojo.telerik.com/aQaWeKes

Regards,
Vessy
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
ListView
Asked by
Larissa
Top achievements
Rank 1
Answers by
Vessy
Telerik team
Share this question
or