Cannot identify selected page in telerik grid. I need selected page to be underlined. Help me in this

允我心安 提交于 2019-11-26 23:43:40

问题


For my telerik radgrid I am using numeric pages. I can see the page numbers. But I am not able to identify the selected page. All the page numbers remais alike after selecting the page. I need the selected page number to be underlined. Help me in this


回答1:


There is a control called PagerTextFormat that allows you to display current page, total page number, total record number and etc.

After adding your grid (radgrid), you can manually define a PagerStyle block in aspx side and put your code like below:

<PagerStyle PagerTextFormat="{0} Current Page: {1} - Total Number of Pages: {2}"/>

You probably have that block since you have already explained you are using numeric controls. You just need to add the above definition to the block.

Now, let me explain all those numbers:

  • {0} -> indicates where pager buttons would appear
  • {1} -> displays current page number
  • {2} -> displays total number of pages

It's not putting a line under the selected page number, but I think you can benefit from it. Check this telerik page to find more. There are different versions and examples.

Hope this helps! Good luck!



来源:https://stackoverflow.com/questions/33822075/cannot-identify-selected-page-in-telerik-grid-i-need-selected-page-to-be-underl

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!