Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - paramvir

Pages: 1 ... 372 373 [374] 375 376
Help for ParamQuery Pro / Re: jquery autocomplete custom editor
« on: October 04, 2013, 09:14:52 pm »

By default the grid doesn't capture up/down keys unless it's told to do so. From the description you have provided in your first message

"it is getting sent / grabbed by the grid and moving me down a row.  "

it looks like there has been either cellEditKeyDown listener ( to modify up/down key behaviour) or

editModel:  { keyUpDown : true } in your code.

Could you please look for these 2 things or send the code of the grid implementation for review.

Help for ParamQuery Pro / Re: jquery autocomplete custom editor
« on: October 04, 2013, 08:40:06 pm »

How have you implemented the up / down key behaviour. Are you using cellEditKeyDown to filter the up/down keys?

or have you copied some code from a demo.

Do you see keyUpDown: true in editModel in your code.

Help for ParamQuery Pro / Re: jquery autocomplete custom editor
« on: October 04, 2013, 06:21:40 pm »

Could you please provide the relevant source code of your jqueryui autocomplete implementation which shows the mentioned issue.

I re-checked it.

Please use instead of


I believe you don't need to change it's length as it's taken care of grid by itself.

Just follow this example.

and please let know if you face any problem with it.


var $td = $("td.pq-grid-cell");

Try this and let know whether this fixes your issue.

dataModel.beforeSend = function (jqXHR, settings) {           
  jqXHR.setRequestHeader("Content-Type", "application/json");   

The problem you have mentioned should go away if you use refresh after grid resize.

Anyhow if you still need to set length of scrollbar

use length

to set the length of scrollbar instead of css

Looks like it's routing to wrong url because of headers (content-type)

use to set appropriate headers.

Either use cellSelect event to detect the column


In rowSelect event check target of event, get closest td parent element, getCell Indices to detect the column


1) keep a reference to the new added record on the client side using rowIndx

2) a) Send the rowData of new record to the server using $.ajax
    b) and get the record_id of the new record (as ajax response) from the server.

3) update the record_id of the client side record using[rowIndx][dataModel.recIndx] = record_id

4) use refreshRow() to display record_id in the view


4th step is optional and required only  if recIndx column is visible in the grid.
If you are doing remote paging, then use rowIndxPage instead of rowIndx

Help for ParamQuery Pro / Re: Batch Editing - not seeing changes
« on: September 27, 2013, 01:43:14 am »

In this example you can see the log of add, update and delete all working fine in the console.

Please double check the dataModel.recIndx which should be name of primary key of the record.

Did it help to resolve your issue?


How are you doing it. Would you mind sharing your code.

Pages: 1 ... 372 373 [374] 375 376