无法识别 Telerik 网格中的选定页面.我需要选定的页面带有下划线.帮我解决这个问题 [英] Cannot identify selected page in telerik grid. I need selected page to be underlined. Help me in this
问题描述
对于我的 Telerik radgrid,我使用的是数字页面.我可以看到页码.但我无法识别所选页面.选择页面后,所有页码保持一致.我需要为所选页码加下划线.帮我解决这个问题
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
推荐答案
有一个名为 PagerTextFormat 的控件,可以显示当前页面、总页码、总记录数em> 等等.
There is a control called PagerTextFormat that allows you to display current page, total page number, total record number and etc.
添加您的网格(radgrid)后,您可以在 aspx 端手动定义一个 PagerStyle 块并将您的代码如下所示:
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} -> 指示寻呼机按钮出现的位置
- {1} -> 显示当前页码
- {2} -> 显示总页数
这不是在所选页码下放置一行,但我认为您可以从中受益.检查这个Telerik 页面 以了解更多信息.有不同的版本和示例.
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!
这篇关于无法识别 Telerik 网格中的选定页面.我需要选定的页面带有下划线.帮我解决这个问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!