(function () {

        $('#text1').combobox({
url: 'http://localhost:5463/test/getComboJson'
})
$('#text2').combobox({
url: 'http://localhost:5463/test/getComboJson'
})
$('#text3').combobox({
url: 'http://localhost:5463/test/getComboJson'
})
$('#text4').combobox({
url: 'http://localhost:5463/test/getComboJson'
}) $('#text5').combotree({
url: 'http://localhost:5463/test/getTreeJson'
}) Public.post("http://localhost:5463/test/getFristOne", {id: }, function (data) { $('#form1').form('load', data); })
})

我让下拉框延迟加载看form会不会加载不上??

public ActionResult getFristOne() {

            Dictionary<string, object> dic = new Dictionary<string, object>();
dic.Add("text1", "");
dic.Add("text2", "");
dic.Add("text3", "");
dic.Add("text4", "");
dic.Add("text5", "");
//Thread.Sleep(2000);//线程挂起1000毫秒
return Json(dic, JsonRequestBehavior.AllowGet);
}
public ActionResult getTreeJson() { IList<Dictionary<string, object>> List = new List<Dictionary<string, object>>();
for (int i = ; i < ; i++)
{
Dictionary<string, object> dic = new Dictionary<string, object>();
dic.Add("id", i.ToString());
dic.Add("text", "项目"+i);
IList<Dictionary<string, string>> children = new List<Dictionary<string, string>>();
dic.Add("children", new ArrayList());
List.Add(dic);
} Thread.Sleep();//线程挂起1000毫秒 return Json(List, JsonRequestBehavior.AllowGet);
} public ActionResult getComboJson()
{ IList<Dictionary<string, object>> List = new List<Dictionary<string, object>>();
for (int i = ; i < ; i++)
{
Dictionary<string, object> dic = new Dictionary<string, object>();
dic.Add("value", i.ToString());
dic.Add("text", "项目" + i);
List.Add(dic);
} Thread.Sleep();//线程挂起1000毫秒 return Json(List, JsonRequestBehavior.AllowGet);
}

结果加载上了。

阅读easyui的源代码发现,这个它是根据name来反找了一下组件的实例然后调用了setValue方法

easyui form load 数据表单有下拉框的更多相关文章

  1. 雷林鹏分享:jQuery EasyUI 表单 - 格式化下拉框

    jQuery EasyUI 表单 - 格式化下拉框 本教程向您展示如何创建一个简单的下拉框(Combobox),让它在下拉框中显示图片项.您可以在下拉框(combobox)上使用 formatter ...

  2. form表单传递下拉框的Value和Text值,不适用Jquery传递

    同时获取下拉框的Value和Text值的解决办法:添加一个<input type="text" >文本框,用户选中一项后就将该项的value值给他 然后接受页面获取该文 ...

  3. Django forms表单 select下拉框的传值

    今儿继续做项目,学习了Django的forms生成前端的代码. forms.py class SignupForm(forms.Form): username = forms.CharField(va ...

  4. iview表单验证下拉框不通过问题

    iview表单验证的步骤: 第一步:给 Form 设置属性 rules :rules 第二步:同时给需要验证的每个 FormItem 设置属性 prop 指向对应字段即可 prop=”“ 第三步:注意 ...

  5. php简易表单及下拉框动态渲染

    <?php//1.连接数据库$link = mysqli_connect('127.0.0.1','root','root','1906');//2.设置字符集mysqli_set_charse ...

  6. 雷林鹏分享:jQuery EasyUI 表单 - 过滤下拉数据网格

    jQuery EasyUI 表单 - 过滤下拉数据网格 下拉数据网格(Combogrid)组件和下拉框(Combobox)组件的共同点是,除了都具有下拉面板以外,它们都是基于数据网格(Datagrid ...

  7. 大型情感剧集Selenium:4_老中医教你(单/多/下拉框)选项定位 #华为云·寻找黑马程序员#

    今天讲什么 讲什么标题说了,讲selenium的单选.多选.下拉框选项定位.但其实这东西,没什么太多说的,又比较枯燥,那该怎么让这一集selenium的课程变得有趣呢?有请老中医,哈哈- 怎么样,这个 ...

  8. easyui源码翻译1.32--Combo(自定义下拉框)

    前言 扩展自$.fn.validatebox.defaults.使用$.fn.combo.defaults重写默认值对象.下载该插件翻译源码 自定义下拉框显示一个可编辑的文本框和下拉面板在html页面 ...

  9. layui-table-column-select(layui数据表格可搜索下拉框select)

    layuiTableColumnSelect 在layui table的基础上对表格列进行扩展:点击单元格显示可搜索下拉列表. 码云地址:https://gitee.com/yangqianlong9 ...

随机推荐

  1. VC设置代理方法

      参考文章: VC 设置代理 Setting and Retrieving Internet Options Change Internet Proxy settings http://suppor ...

  2. [Win32]获取指定进程的父进程PID

    // // #include <Windows.h> #include <winnt.h> #include <winternl.h> typedef NTSTAT ...

  3. C#编程(四十五)----------格式字符串

    格式字符串 1.格式化货币(跟系统的环境有关,中文系统默认格式化人民币,英文系统格式化美元) 案例: string str=string.Format("{0:C}",0.2); ...

  4. WordPress主题开发:网站搜索

    调用方法一:手动输入html <form role="search" method="get" id="searchform" act ...

  5. byte[],bitmap,drawable之间的相互转换

    Byte[]转Bitmap BitmapFactory.decodeByteArray(data, 0, data.length); Bitmap转Byte[] ByteArrayOutputStre ...

  6. Python 网络请求模块 urllib 、requests

    Python 给人的印象是抓取网页非常方便,提供这种生产力的,主要依靠的就是 urllib.requests这两个模块. urlib 介绍 urllib.request 提供了一个 urlopen 函 ...

  7. DP思路

    在这里记录一些在大神们的博客,以及自己做过的一些DP的神奇思路吧 1.2015/04 NEUQ 月赛  转自:http://zyfzyf.is-programmer.com/posts/89993.h ...

  8. Linux命令之du

    Linux du命令用来查看文件或目录所占用磁盘空间的大小(Summarize disk usage of each FILE, recursively for directories.) 语法: d ...

  9. JavaScript:sort() 方法

    ylbtech-JavaScript:sort() 方法 JavaScript sort() 方法 1. 定义和用法返回顶部 sort() 方法用于对数组的元素进行排序. 语法 arrayObject ...

  10. JDBC 查询的三大参数

    本文转载至 http://blog.csdn.net/turkeyzhou/article/details/5115228 DBC1.0 .JDBC2.0 .JDBC3.0 中分别用以下方法创建Sta ...