小编coo*_*rit的帖子

正则表达式不超过两个重复的字母/数字

我要求在XSL文件中处理不超过两个相同字母/数字的正则表达式.

  • 没有空间
  • 不支持特殊字符
  • 支持(az,AZ,0-9)
  • 需要一个az
  • 需要0-9之一
  • 不超过2个相同的字母/数字(即,BBB将失败,BB被接受)

到目前为止我有什么

(?:[^a-zA-Z0-9]{1,2})
Run Code Online (Sandbox Code Playgroud)

javascript regex

18
推荐指数
4
解决办法
4万
查看次数

添加样式到asp.net标签

我想为asp.net标签添加样式,但它不会工作.

ASP.NET Mark up
<asp:Label runat="server" ID="lblCommentText"/>

Generated from the backend: Html mark up
<span id="ctl02_ctl36_CommentText">Only the leave the comment please</span>

............................................
Run Code Online (Sandbox Code Playgroud)

我想在标签中添加以下样式

{
 float:right;
 width:70%;
}
Run Code Online (Sandbox Code Playgroud)

我试过用了

  1. cssClass属性

  2. 将其添加lblCommentText.Attributes.CssStyle.Add("float", "right");到后端

  3. 使用javascript
    document.getElementById('<%= lblCommentText.ClientID%>').Style.display = ("float","right");

  4. 以及元素的内嵌风格

它们都不起作用,有人可以帮助我吗?

c# asp.net webforms

17
推荐指数
3
解决办法
6万
查看次数

使用jquery或js隐藏kendo ui中的列

经过一段时间的研究,尝试在kendo网格表中隐藏一个指定列

用这个

 $('#grid .k-grid-content table tr td:nth-child(8),th:nth-child(8)').toggle();
Run Code Online (Sandbox Code Playgroud)

没有任何帮助,任何人都有想法?

我要隐藏的列绑定到

              { 
                field: "CreatedDate",
                width: 20,
                title: "Create Date",
                type: 'date',

                template: '#= kendo.toString(CreatedDate,"MM/dd/yyyy") #'
            }
Run Code Online (Sandbox Code Playgroud)

[编辑]

$('#grid div.k-grid-header-wrap th:nth-child(4)').toggle()
$('#grid div.k-grid-content td:nth-child(4)').toggle()
Run Code Online (Sandbox Code Playgroud)

只能隐藏标题..但不是整列,还需要帮助!

javascript jquery kendo-ui

3
推荐指数
1
解决办法
1万
查看次数

kendo ui:如何进行默认排序,电话号码格式化并将单词null替换为none

在我的代码中,我想做网格表,默认排序按姓氏升序,电话号码格式化为(xxx)-xxx-xxxx并将单词null替换为none,例如某些mobiel号为null,我想显示没有

{
                    field: "LName",
                    width: 100,
                    title: "Last Name",
                    defaultSorting: true

                }, {
                    field: "DateOfBirth",
                    width: 100,
                    title: "Date of Birth",
                    type: 'date',
                    template: '#= kendo.toString(DateOfBirth,"MM/dd/yyyy") #'

                }, {
                    field: "Email",
                    width: 230,
                    title: "Email"
                }, {
                    field: "MobileNumber",
                    width: 100,
                    title: "Mobile Number"


                },
Run Code Online (Sandbox Code Playgroud)

任何人之前做过这个,或者有想法plz帮助

formatting jquery user-interface asp.net-mvc-3 kendo-ui

1
推荐指数
1
解决办法
6720
查看次数