将光标设置为网格中的指针
我有一个 Rad Grid,我只是希望光标成为每行悬停时的指针。我尝试过 CSS 类,但没有成功。我知道有一个简单的解决方案,但我只是不知道该怎么做。以下是我尝试过的
<style type="text/css">
.UseHand
{
cursor: pointer;
}
<telerik:RadGrid ID="RadGrid1" Skin="WB" runat="server" AutoGenerateColumns="false" DataSourceID="DSID">
<GroupingSettings CaseSensitive="false" />
<SelectedItemStyle CssClass="UseHand" />
<MasterTableView>BLAH BLAH</MasterTableView>
<ClientSettings EnableRowHoverStyle="true">
<Selecting AllowRowSelect="True" />
<ClientEvents />
</ClientSettings>
</telerik:RadGrid>
对此的任何帮助将不胜感激!
I have a Rad Grid and I simply want the cursor to be a pointer on hover of every row. I've tried Css classes and it hasn't worked. I know there is a simple solution, i just don't know how to do it. Below is what i've tried
<style type="text/css">
.UseHand
{
cursor: pointer;
}
<telerik:RadGrid ID="RadGrid1" Skin="WB" runat="server" AutoGenerateColumns="false" DataSourceID="DSID">
<GroupingSettings CaseSensitive="false" />
<SelectedItemStyle CssClass="UseHand" />
<MasterTableView>BLAH BLAH</MasterTableView>
<ClientSettings EnableRowHoverStyle="true">
<Selecting AllowRowSelect="True" />
<ClientEvents />
</ClientSettings>
</telerik:RadGrid>
Any help on this would be greatly appreciated!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我有 2 个想法给你:
想法 1:在你的示例中,你将类添加到
SelectedItemStyle
中,我相信这是唯一选定的行,而不是他们所有人。相反,您可以尝试:想法 2:
您还可以尝试使用以下方法强制解决问题:
并将该类添加到网格本身:
这应该覆盖 RadGrid 生成的任何内置样式和内联样式。
I have 2 ideas for you:
Idea 1: In your example, you added the class to the
SelectedItemStyle
, which I believe is the only the selected row(s), not all of them. Instead you could try:Idea 2:
You could also try forcing the issue with:
and add the class to the grid itself:
This should override any build in styles and inline styles generated by the RadGrid.
尝试更改:
至:
SelectedItemStyle
表示当前选定的行,其中ItemStyle
表示所有行。Try changing:
To:
SelectedItemStyle
represents the currently selected row, whereItemStyle
represents all rows.