jqgrid

Deep loading data - MVC / Entity Framework / Repository Pattern

前提是你 提交于 2019-12-25 03:22:40
问题 I am implementing an ASP.NET MVC 5 web app using ASP.NET Identity 2 and Troy Goode's PagedList. I need to display UserRole data in the following format in a JqGrid: User Name | Role Name This is my UserRole class: public class UserRole : Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole<int> { [ForeignKey("UserId")] public virtual User User { get; set; } [ForeignKey("RoleId")] public virtual Role Role { get; set; } } This is my repository method public virtual IQueryable<UserRole>

How to reset Selection for multiple pages

邮差的信 提交于 2019-12-25 03:13:39
问题 Currently I'm using free-jqgrid 4.15.4 where I have a requirement to select multiple rows across pages, send email to participants and then reset Selection in one go. For that I'm using multiselect: true,multiPageSelection: true, $('#grid').jqGrid('resetSelection'); in ajax callback of function. But I think the resetSelection code is not working for multiple pages, rather it works only for current page (removes all the checked boxes). Here is the fiddle that shows implementation of

How to make jquery row non editable and save the same row in Database using ajax call?

强颜欢笑 提交于 2019-12-25 02:57:19
问题 I made the inline edit true for jqGrid by using below code - if (rowid) { if (rowid !== lastsel) { $("#prjectForecastData").jqGrid('restoreRow', lastsel); $("#prjectForecastData").jqGrid('editRow', rowid, true); lastsel = rowid; } else { $("#prjectForecastData").jqGrid('restoreRow', lastsel); lastsel = ""; } } But here in below code, while saving row, I want to make an ajax call in order to save that row in database. and also want to make that row non editable. Right now 'clientArray' is used

jqgrid - Delete multiple selected rows

倾然丶 夕夏残阳落幕 提交于 2019-12-25 02:55:17
问题 I'm trying to delete multiple selected rows. I implemented the multiple selection in the way described here: https://stackoverflow.com/a/4186851/1844996 My code for deletion is as follows: element.jqGrid('navGrid', pagerId, { edit:false, add:false, search:false, del:true, refresh:true }, /*editParams*/{ }, /*addParams*/{ }, /*deleteParams : */{ mtype: 'DELETE', onclickSubmit: function (params, postdata) { var rowids = postdata.split(","); for (var i = 0; i < rowids.length; i++) { var id =

jqGrid : Get data from a row that has been clicked within a heirarchical grid

痴心易碎 提交于 2019-12-25 02:47:18
问题 Im currently working on a project which uses jqGrid with multiple subgrids. I'm trying to get the rowid (and get at the data within the row) when a row is clicked or double clicked. Eventually I would like to fill a text box with data from a clicked row. I've tried a few variations using ondblClickRow and onSelectRow examples on here but wans't able to get it working. I think I'm missing something really simple but don't see what. So I went back and simplified it down as much as possible to

jqGrid : Get data from a row that has been clicked within a heirarchical grid

有些话、适合烂在心里 提交于 2019-12-25 02:47:01
问题 Im currently working on a project which uses jqGrid with multiple subgrids. I'm trying to get the rowid (and get at the data within the row) when a row is clicked or double clicked. Eventually I would like to fill a text box with data from a clicked row. I've tried a few variations using ondblClickRow and onSelectRow examples on here but wans't able to get it working. I think I'm missing something really simple but don't see what. So I went back and simplified it down as much as possible to

jqGrid - Password confirmation

℡╲_俬逩灬. 提交于 2019-12-25 02:43:18
问题 I want to do a simple thing: I want to compare the data from two fields on input. I mean: the user will fill a field with his password and there will be another field asking him to fill his password again. I want to compare these two datas to see if they match.. My problem is that I don't know how to retrieve the data from the confirmation field to compare it. Relevant part of the code is here (confirmaSenha is the confirmation field): {name:'senha', width:80, sortable:true, editable: true,

jquery dialog shows data from previous ajax request

北慕城南 提交于 2019-12-25 02:39:08
问题 In my MVC application I am facing very strange issue with jquery dialogs. I am using multilevel dialog for this application; wherein at 1st level dialog there will be jqGrid displaying records & provides link column to manipulate records in 2nd level dialog. A dialog containing small form to manipulate data can be opened by using link column from jqGrid. There is an issue with pre-populating this form data when the link is clicked; & which occurs on random time interval. When I open this form

column re-ordering is not working while appending thead to jqGrid

南笙酒味 提交于 2019-12-25 02:35:24
问题 I am using column chooser for customizing columns in jqGrid records, but iam appending <thead> to jqGrid for alignment purpose, for this iam unable to reorder my jqGrid columns with columnChooser . My code is: if (success==true) { $("#merror").text(''); $("#list1").jqGrid("GridUnload") $("#list1").jqGrid({ url:"./controllers/apGetTestData.php?testanzres=1&testsuite="+testsuite+ "&testcase="+testcase+"&ch="+ch+"&fromdate="+fromdate+ "&todate="+todate+"&mmss="+mmss, datatype: 'xml', mtype: 'GET

column re-ordering is not working while appending thead to jqGrid

落爺英雄遲暮 提交于 2019-12-25 02:35:13
问题 I am using column chooser for customizing columns in jqGrid records, but iam appending <thead> to jqGrid for alignment purpose, for this iam unable to reorder my jqGrid columns with columnChooser . My code is: if (success==true) { $("#merror").text(''); $("#list1").jqGrid("GridUnload") $("#list1").jqGrid({ url:"./controllers/apGetTestData.php?testanzres=1&testsuite="+testsuite+ "&testcase="+testcase+"&ch="+ch+"&fromdate="+fromdate+ "&todate="+todate+"&mmss="+mmss, datatype: 'xml', mtype: 'GET