jqgrid

adjust jqgrid height

家住魔仙堡 提交于 2021-02-20 03:55:48
问题 I need to adjust my jqgrid height dynamically to fit in the browser window as screen resolution changes.I need to calculate the header and footer ,and form(optional)..Then grid should be fitted in the remaining space. 回答1: You could set the height of the .ui-jqgrid-bdiv element via css calculating the height based on the window.innerHeight property. Like here I will set the grid height to be 70% of the available window space: $("#gview_mygrid > .ui-jqgrid-bdiv").css('height', window

jqGrid Lose data on submit

前提是你 提交于 2021-02-11 13:26:49
问题 I'm working on a CRUD application in ASP.net C #. My problem is that when I click the Submit button and ModelState.IsValid = false, the data in the grid is lost. Does anyone know how to fix this? I have a form in html and razor, I could not leave all the work to an ajax request, so what I did was add the onsubmit event to the form with the function "sendingContacts", This function gets the grid information in a JSON string and then I assign it in a hidden field in the form, so my controller

jqGrid not loading data when site published to server

允我心安 提交于 2021-02-11 07:43:51
问题 I have a problem with my jqGrid. I have seen other posts here with similar problem, except that mine is particular in that the data is loading correctly in my development machine but when I publish the site on my production server, the jqGrid won't load the data, all I get is an empty grid. Every other ajax request for data in the server works fine, except for the jqGrid. My project is in MVC3 and I am hosting the site in win2008 IIS7. This is my current code: View: <script type="text

Jqgrid + CodeIgniter

本秂侑毒 提交于 2021-02-09 00:23:12
问题 I tried to make jqgrid work with codeigniter, but I could not do it, I only want to show the data from the table in json format... but nothing happens.. but i dont know what i am doing wrong, i cant see the table with the content i am calling. my controller class Grid extends Controller { public function f() { $this->load->model('dbgrid'); $var['grid'] = $this->dbgrid->getcontentfromtable(); foreach($var['grid'] as $row) { $responce->rows[$i]['id']=$row->id; $responce->rows[$i]['cell']=array(

Drag rows in jqGrid

一曲冷凌霜 提交于 2021-02-07 10:12:12
问题 I want to implement draggable rows feature in jqGrid and it's working also using option $('#MyGrid').jqGrid('gridDnD', { connectWith: '#MyGrid2'}); Now, my client want to show "Drag here" text in target grid row at the position where the row will be dragged from existing to new one, how can I show this text while dragging row from source to target? Any help is appreciated... 回答1: I find your question interesting. So I modified the old demo from the answer and created the demo which

Double WHERE query on server side to create jqgrid json

孤者浪人 提交于 2021-01-29 07:30:31
问题 I use server side to create json on jqgrid. My problem is when I want to include WHERE into mySQL query, because WHERE has been used in searching operator. The server side code is <?php include("dbconfig.php"); $page = $_REQUEST['page']; $limit = $_REQUEST['rows']; $sidx = $_REQUEST['sidx']; $sord = $_REQUEST['sord']; // if we not pass at first time index use the first column for the index or what you want if(!$sidx) $sidx =1; //array to translate the search type $ops = array( 'eq'=>'=', /

JQGrid header and column not aligned

那年仲夏 提交于 2021-01-29 01:51:54
问题 I am using jqgrid, and in a particular flow, the headers and columns are getting misaligned. I have found similar questions on stackoverflow, but the solutions have not worked for me. For the record, I have set the widths of the columns dynamically based on the content of their columns, using a block of code that was provided by Oleg in this question. and then i am using setColWidth function of the jqGrid to set the grid width. I was debugging this issue that I am facing, and I had to look

JQGrid header and column not aligned

别说谁变了你拦得住时间么 提交于 2021-01-29 01:51:49
问题 I am using jqgrid, and in a particular flow, the headers and columns are getting misaligned. I have found similar questions on stackoverflow, but the solutions have not worked for me. For the record, I have set the widths of the columns dynamically based on the content of their columns, using a block of code that was provided by Oleg in this question. and then i am using setColWidth function of the jqGrid to set the grid width. I was debugging this issue that I am facing, and I had to look

JQGrid header and column not aligned

三世轮回 提交于 2021-01-29 01:51:48
问题 I am using jqgrid, and in a particular flow, the headers and columns are getting misaligned. I have found similar questions on stackoverflow, but the solutions have not worked for me. For the record, I have set the widths of the columns dynamically based on the content of their columns, using a block of code that was provided by Oleg in this question. and then i am using setColWidth function of the jqGrid to set the grid width. I was debugging this issue that I am facing, and I had to look

JQGrid header and column not aligned

流过昼夜 提交于 2021-01-29 01:51:42
问题 I am using jqgrid, and in a particular flow, the headers and columns are getting misaligned. I have found similar questions on stackoverflow, but the solutions have not worked for me. For the record, I have set the widths of the columns dynamically based on the content of their columns, using a block of code that was provided by Oleg in this question. and then i am using setColWidth function of the jqGrid to set the grid width. I was debugging this issue that I am facing, and I had to look