锐英源软件
第一信赖

精通

英语

开源

擅长

开发

培训

胸怀四海 

第一信赖

当前位置::锐英源 / 英语翻译 / ASP_NET MVC Flexigrid控件 / 复制到应用程序
服务方向
人工智能数据处理
人工智能培训
kaldi数据准备
小语种语音识别
语音识别标注
语音识别系统
语音识别转文字
kaldi开发技术服务
软件开发
运动控制卡上位机
机械加工软件
软件开发培训
Java 安卓移动开发
VC++
C#软件
汇编和破解
驱动开发
联系方式
固话:0371-63888850
手机:138-0381-0136
Q Q:396806883
微信:ryysoft

复制到应用程序

I've copy the project and work nicely.我拷贝了项目,工作得很好。
But when I pull apart and change couple things and it's not working (the grid comes up nicely but no data).但是当我部分使用时,改变一些事情,就不能正常工作(网格出现得很好但没有数据)。When debug, I can see the data coming in into the list but it doesn't populate into the grid调试的时候,我可以看到数据进入到列表中但这并不填充到网格

Things that I change这是我的修改点:

1. In the Site.master, I'm not using your jquery.js but I'm using the latest version of JQuery cause I have few widget that using that (accordion and menu)在Site.master,我不使用jquery.js但我使用最新版本的JQuery导致我有一些部件,使用(折叠导航菜单)
2. I am still using linq but the datacontext set to Case table inour database我仍然使用linq但datacontext设置到数据库内Case表上
3. Here's the some of index.aspx:这是一些index.aspx:
<div>
<table id="cases" style="display:none"></table>
<script type="text/javascript">
$("#cases").flexigrid({
url: '/Json/FlexigridList,
dataType: 'json',
colModel: [
{ display: 'ID', name: 'CaseID', width: 40, sortable: true, align: 'left' },
{ display: 'Case Name', name: 'CaseName', width: 100, sortable: true, align: 'left' },
{ display: 'Case No', name: 'CaseNo', width: 80, sortable: true, align: 'left' }
],
searchitems: [
{ display: 'Case Name', name: 'CaseName' },
{ display: 'Case No', name: 'CaseNo' }
],
sortname: 'CaseID',
sortorder: 'asc',
usepager: true,
title: 'Cases',
useRp: true,
rp: 15,
showTableToggleBtn: true,
width: 1040,
height: 380
});
</script>
</div>
Any ideas?
有没有办法?

Never mind. I've managed to work out on this. Just forgot to put the FlexigridObject.ascx不要紧。我设法解决。只是忘了FlexigridObject.ascx
Now I've noticed that the value of grid that is coming from the db is not corresponding with the name of field name in grid? Is this right?现在我注意到电网的价值来自db不是网格对应的字段名称的名称?这是正确的吗?

In my case, as you can see index.aspx above, I only have 3 columns defined in the grid but the actual data that is coming from the db is not right though. BTW ... I have about 14 of them ... it seems that it's taking only the first 3 top 3 of the db fields在我的例子中,你可以看到指数。aspx上面,我只有3列中定义的网格但实际来自数据库的数据是不正确的。顺便说一句……我有大约14……看来,它只在第一个3 db字段的前三

You should be able to call your /Json/FlexigridList directly and get a text dumb of the data your grid is receiving.你应该能够直接调用你的/ Json / FlexigridList和得到一个文本哑的接受你的网格数据。
Make sure the total value contains the correct count of records. In your case it should be 14.确保记录的值包含正确的总数。在你的情况下,应该是14。
{
"page": 1,
"total": 2, // CHECK THIS VALUE
"rows":[
{"id": "ALFKI", "cell": ["ALFKI","Alfreds Futterkiste",
"Maria Anders", ... ,"030-0076545"]},
{"id": "ANATR", "cell": ["ANATR","Ana Trujillo Emparedados y helados",
"Ana Trujillo","Owner", ... ,"(5) 555-3745"]}
]
}

The issue is the website for this Flexigrid is down (the account has been suspended) at the moment and couldn't explore the API/sample for this..
的问题是网站Flexigrid下降(帐户被暂停),无法探索的API /样品. .
Looking at sample that you give me, does this mean I have to construct the this HTML in the server side by populating each column data/row ?!?! Couldn't see the affect of total: 14 in this case.看着你给我的样品,这是否意味着我必须在服务器端构建HTML填充每一列数据/行吗? ! ? !难道看不到总的效果吗:有14点。

友情链接
版权所有 Copyright(c)2004-2021 锐英源软件
公司注册号:410105000449586 豫ICP备08007559号 最佳分辨率 1024*768
地址:郑州大学北校区院(文化路97号院)内