jQuery MiniUI

 找回密码
 立即注册
查看: 4983|回复: 4
打印 上一主题 下一主题

js里怎么渲染miniui下拉框控件,代码如下 [复制链接]

Rank: 1

跳转到指定楼层
楼主
发表于 2017-12-27 15:03:25 |只看该作者 |倒序浏览
本帖最后由 19951209 于 2017-12-27 15:05 编辑

function onRoleSort(e) {
        var html;
        if (e.row.ValueType == 1) {
            html = "<span class=\"mini-buttonedit mini-combobox mini-popupedit\" style=\"width: 100%; height: 100%;\"><span class=\"mini-buttonedit-border\"><input class=\"mini-buttonedit-input\" type=\"text\" readOnly=\"\" autocomplete=\"off\"/><span class=\"mini-buttonedit-buttons\"><span class=\"mini-buttonedit-close\" name=\"close\"/><span title=\"\" class=\"mini-buttonedit-button mini-buttonedit-trigger\" onmouseover=\"OOl0(this,'mini-buttonedit-button-hover');\" onmouseout=\"lll1(this,'mini-buttonedit-button-hover');\" name=\"trigger\"><span class=\"mini-buttonedit-icon\"/><input name=\"\" type=\"hidden\" value=\"\"/><div class=\"mini-shadow\" style=\"left: 389px; top: 79px; width: 124px; height: 122px; z-index: 1003;\"/>";
        }
        if (e.row.ValueType == 2) {
            html = "<span class=\"mini-textbox-border\"><input id=\"ChkValue_" + e.row.ID + "\" class=\"mini-textbox-input\" type=\"text\" autocomplete=\"off\" value=\"" + (e.row.ChkValue == null ? "" : e.row.ChkValue) + "\" onchange=\"ResultChanged(this)\"/></span>";
        }
        return html;
    }

Rank: 8Rank: 8

沙发
发表于 2017-12-28 09:29:29 |只看该作者
你这是表格的绘制吗?
表格绘制不支持绘制MiniUI控件。

Rank: 1

板凳
发表于 2018-1-4 09:25:49 |只看该作者
felt 发表于 2017-12-28 09:29
你这是表格的绘制吗?
表格绘制不支持绘制MiniUI控件。

<div field="ChkValue" headeralign="center" align="center" renderer="onRoleSort" >我这是在datagrid里渲染的

Rank: 8Rank: 8

地板
发表于 2018-1-4 11:36:14 |只看该作者
19951209 发表于 2018-1-4 09:25
我这是在datagrid里渲染的

不支持绘制MiniUI控件,只能绘制html

Rank: 1

5#
发表于 2018-1-5 17:06:37 |只看该作者
那好吧,谢谢啊

Archiver|普加软件

GMT+8, 2024-6-16 11:52 , Processed in 1.074920 second(s), 9 queries .

Powered by Discuz! X2

© 2001-2011 Comsenz Inc.

回顶部