jqgrid-asp.net

solution for Design this forms in jqgrid

眉间皱痕 提交于 2019-11-29 17:36:55
I Have problem in use jqGrid,Before discussing the question of explain tables. i have 4 tables CostType,CurrencyUnit , Request,RequestCost . CostType Table structure CostId CostName ------- ---------- 1 permit 2 Warehouse receipt 3 Warehousing and Request structure RequestId RequestNo WaybillNo ------------------------------------------ 1 100 120Ac30 2 101 400CA852 and CurrencyUnit table stracture: UnitId UnitName ------------------ 1 Dollar 2 Pound 3 Rial and CostRequest table stracture requestId CostId Amount CurrencyUnitId Remark -------------------------------------------------------- 1 2

How to do Paging for jqGrid in Stored Procedure?

别来无恙 提交于 2019-11-29 12:38:56
I'm not good at sql, but I have to do paging for jqGrid in my stored procedure which has many records. My asp.net mvc3 controller code as follows, [HttpPost] public JsonResult GetExtraPersons(int cId, long pId, JQGridSettings gridSettings) { List<ExtraPerson> extraPersons = new List<ExtraPerson>(); ExtraPersonViewModel extraPersonViewModel = new ExtraPersonViewModel(); extraPersonViewModel.CampId = cId; extraPersonViewModel.ReferencePatientId = pId; extraPersons = ExtraPersonService.GetExtraPersons(extraPersonViewModel.CampId, extraPersonViewModel.ReferencePatientId); int pageIndex =

Custom delete button in jqGrid

≡放荡痞女 提交于 2019-11-29 02:32:50
I'd like to implement my own delete functionality in jqGrid. I'm currently using the built-in UI (select row, press trashcan button in footer, confirm) but I'd prefer to have a delete button in each row and implement my own UI for confirmation. I don't see anything in the API that allows me to fire off a delete to the server - just delRowData , which deletes it on the client. Can this be done? (I'm using the ASP.NET component , FWIW). There is no part of the basic jqGrid component that handles the server side deletion - even if you use the built in delete, its not removing it server side for

How to change a row's particular cell value in jqgrid

孤人 提交于 2019-11-28 19:12:58
I want to change a particular rows's cell value, I have the row Id. and I have tried using the following. But it doesnt work. $("#my-jqgrid-table").jqGrid('setCell',rowId,'Currency', '12321'); I am using loadonce: true Please can someone help me with this. Thanks You can use getRowData and setRowData methods to achieve this (they are working directly with data array ): var rowData = $('#my-jqgrid-table').jqGrid('getRowData', rowId); rowData.Currency = '12321'; $('#my-jqgrid-table').jqGrid('setRowData', rowId, rowData); Here is the correct way according to the documentation :- $("#my-jqgrid

jqGrid sorting a column while grouping consider grouping header

喜夏-厌秋 提交于 2019-11-28 09:29:31
I have jqgrid. I've grouped few rows based on a column value. Working demo is available at link part of the code that defines jqGrid var preclosingtable = $('#preclosing'); preclosingtable.jqGrid({ datatype: 'local', data: data.DOCS, colNames: ['', 'Documents Received', 'Comments', 'NA', 'DocGroup'], colModel: [ { name: 'Documents', index: 'Documents', align: 'left', sortable: false, editable: false, width: 20 }, { name: 'DocsReceived', index: 'DocsReceived', align: 'center', sortable: false, editable: true, edittype: 'checkbox', editoptions: { value: "True:False" }, formatter: "checkbox",

jqGrid and the autowidth option. How does it work?

假如想象 提交于 2019-11-28 08:11:23
I am using jqGrid with the autowidth option set to true . According to the documentation : When set to true, the grid width is recalculated automatically to the width of the parent element. This is done only initially when the grid is created. In order to resize the grid when the parent element changes width you should apply custom code and use a setGridWidth method for this purpose This makes the grid occupy all the width available in the parent element. Another effect of this property is that every column shrinks to fit the width available. This works very well. However, I have one page

ASP.Net MVC 3 JQGrid

旧巷老猫 提交于 2019-11-28 07:03:53
After reading up on the JQGrid control, I decided it would be good to use it in one of my ASP.Net MVC 3 Web applications. Firstly I followed Phil Haacks tutorial http://haacked.com/archive/2009/04/14/using-jquery-grid-with-asp.net-mvc.aspx which is all good. I then tried to implement something similar into my app, the only difference being, I use Linq To Entities. My View page has all the css and Jquery classes imported, then I have my JavaScript Function and table which holds the data <script type="text/javascript"> jQuery(document).ready(function () { jQuery("#list").jqGrid({ url: '/Home

OnClickButton function parameter for MultiSelect jqgrid MVC3

▼魔方 西西 提交于 2019-11-28 06:51:27
问题 I am trying to use multiselect functionality in jqgrid to select multiple rows and pass it to the controller. I have created a button as follows but when I select the rows and click the button, the click button event was not fired. I am guessing I am passing wrong parameter to the function. Below is javascript code... $("#request").jqGrid('navButtonAdd', '#requestpager', { caption: "Add", buttonicon: "ui-icon-info", title: "Add", //position: "first", onClickButton: function (ids) { var grid =

How to get a jqGrid selected row cells value

走远了吗. 提交于 2019-11-28 06:16:37
Does anyone know how to get the cells value of the selected row of JQGrid ? i m using mvc with JQGrid, i want to access the value of the hidden column of the selected row ? First you can get the rowid of the selected row with respect of getGridParam method and 'selrow' as the parameter and then you can use getCell to get the cell value from the corresponding column: var myGrid = $('#list'), selRowId = myGrid.jqGrid ('getGridParam', 'selrow'), celValue = myGrid.jqGrid ('getCell', selRowId, 'columnName'); The 'columnName' should be the same name which you use in the 'name' property of the

jQgrid show hidden column in form view

孤者浪人 提交于 2019-11-28 01:01:01
jQuery("#CustomerDetailsGrid").jqGrid({ //ignore other properties colModel: [ { name: 'AccountNumber', index: 'AccountNumber', hidden: true, viewable: true } ], viewrecords: true }); I need to hide the column "Account Number" in grid view but show it in the form view.( Not edit form ) If the View dialog will be created it will be filled with the information about every column placed in the rows. The id of the row (the id of <tr> element) will be constructed from the prefix "trv_" and the name of the corresponding column. It it important to understand, that in the form it will be filled the