flexigrid

Anyone used jquery flexigrid with ASP.NET MVC3?

北慕城南 提交于 2019-12-12 10:14:17
问题 I am trying to use flexigrid with asp.net MVC3. I can't see any online examples for this. Has anyone done that? If yes, can you paste little code snippet here please? thanks 回答1: The flexgrid is a client side control that is server side agnostic. The Wiki contains an example with description of the different properties that you could use. So you could setup a view: <script src="@Url.Content("~/Scripts/flexigrid.js")" type="text/javascript"></script> <script type="text/javascript"> $(function

Generate JSON from Java for Flexigrid using json-simple libary

 ̄綄美尐妖づ 提交于 2019-12-12 04:54:51
问题 Given the following expected JSON format, I am trying to generate JSON using Java: { "stat": "ok", "page": 1, "total": 100, "rows": [ { "id":"1", "cell":[ "content of column 1", "content of column 2", "content of column 3", "content of column 4", "content of column 5", "content of column 6", "content of column 7", "content of column 8", "content of column 9" ] }, { "id":"2", "cell":[ "content of column 1", "content of column 2", "content of column 3", "content of column 4", "content of column

Does not want to resize columns in Flexigrid

≡放荡痞女 提交于 2019-12-11 03:16:49
问题 I want to disable column resizing in Flexigrid. Is there any option like colresize:false/true ? I could not find any. 回答1: I found this: change beginning of dragStart to: if (dragtype=='colresize' && p.colResize == true) //column resize { $(g.nDiv).hide();$(g.nBtn).hide(); var n = $('div',this.cDrag).index(obj); var ow = $('th:visible div:eq('+n+')',this.hDiv).width(); $(obj).addClass('dragging').siblings().hide(); $(obj).prev().addClass('dragging').show(); this.colresize = {startX: e.pageX,

Flexigrid not paging

三世轮回 提交于 2019-12-08 03:33:11
问题 I have a jQuery flexigrid that is displaying items 1-10 of 15 on the first page but the paging does not work. I.e. when I request the second page, the data remains the same. Any ideas? Here's the config: $("#tblLists").flexigrid({ url: '/lists/load/', dataType: 'json', colModel : [ {display: 'Name', name : 'name', width : 900, sortable : true, align: 'left'}, {display: 'Recipients', name : 'recipients', width : 200, sortable : true, align: 'left'} ], searchitems : [ {display: 'Name', name :

Changing Jquery FlexGrid's data

倾然丶 夕夏残阳落幕 提交于 2019-12-06 16:28:49
I am having a flex grid. I need to change the data which is showing in that. In $(document).ready() I am calling a function and I am getting the result.Now what i want is to get data from db using another query.So I just made a function, in that i am adding the needed values to fetch the data in the url.This function is calling when I click a button .But the request is not going .So that is not changing.Please Help me. Thanks $(document).ready(function() { getAllData(); //first call $(".datebetweenList").click(function() { getDataBetweenDates(); //secondcall change in url }); }); // Calls

Anyone used jquery flexigrid with ASP.NET MVC3?

血红的双手。 提交于 2019-12-06 12:43:26
I am trying to use flexigrid with asp.net MVC3. I can't see any online examples for this. Has anyone done that? If yes, can you paste little code snippet here please? thanks The flexgrid is a client side control that is server side agnostic. The Wiki contains an example with description of the different properties that you could use. So you could setup a view: <script src="@Url.Content("~/Scripts/flexigrid.js")" type="text/javascript"></script> <script type="text/javascript"> $(function () { $("#flex1").flexigrid({ url: '@Url.Action("staff")', dataType: 'json', colModel: [ { display: 'ID',

how do you pass parameters in asmx using Flexigrid?

最后都变了- 提交于 2019-12-05 20:24:30
here's my code: $('#flex1').flexigrid({ method: 'POST', url: '/services/MHService.asmx/GetSurgicalHistory', dataType: 'xml', colModel: [ { display: 'Surgical Procedure', name: 'SurgicalProcedure', width: 120, sortable: true, align: 'left' }, { display: 'Notes', name: 'Notes', width: 120, sortable: true, align: 'left' }, { display: 'Complications', name: 'Complications', width: 120, sortable: true, align: 'left' } ], searchitems: [ { display: 'Surgical Procedure', name: 'SurgicalProcedure' }, { display: 'Notes', name: 'Notes' }, { display: 'Complications', name: 'Complications' } ], sortname:

vb.net return json object with multiple types?

时间秒杀一切 提交于 2019-12-04 07:13:55
问题 I need to return some data from a web service that looks something like this: data.page = 1 data.count = 12883 data.rows(0).id = 1 data.rows(0).name = "bob" data.rows(1).id = 2 data.rows(1).name = "steve" data.rows(2).id = 3 data.rows(2).name = "fred" I have no idea how to do this. I've returend simple types and simple arrays, but never an object like this. The data source is a sql Database. The target is a javascript/ajax function. I'm currently successfully returning the rows themselves as

Consistent grid headers with Flexigrid ?

荒凉一梦 提交于 2019-12-03 07:26:37
问题 So I'm trying to use the flexigrid plugin. It looks like it's going to work great aside from the fact that it looks like you have to manually set the column widths. Otherwise, the column headers do not match up with the body columns. Is there any way of automatically matching these up, while still allowing the column widths to be defined by the length of the content in the columns (as is the normal table behavior). 回答1: I've been working on this today, too. What I've come up with involves

vb.net return json object with multiple types?

别来无恙 提交于 2019-12-02 11:15:27
I need to return some data from a web service that looks something like this: data.page = 1 data.count = 12883 data.rows(0).id = 1 data.rows(0).name = "bob" data.rows(1).id = 2 data.rows(1).name = "steve" data.rows(2).id = 3 data.rows(2).name = "fred" I have no idea how to do this. I've returend simple types and simple arrays, but never an object like this. The data source is a sql Database. The target is a javascript/ajax function. I'm currently successfully returning the rows themselves as a dataset and it works, but I need to add the count and a couple other "parent level" variables. For