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
5597
Help for ParamQuery Pro / Re: jquery autocomplete custom editor
« on: October 04, 2013, 09:14:52 pm »
Ron

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.










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

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.


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

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


5600
I re-checked it.

Please use event.originalEvent.target instead of event.target

Example: http://jsfiddle.net/NSpUx/


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

Just follow this example.

http://paramquery.com/demos/resizable_popup

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

5603


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




5604
Try this and let know whether this fixes your issue.

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


5605
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 http://paramquery.com/api/scrollbar#option-length

to set the length of scrollbar instead of css

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

use http://paramquery.com/api#option-dataModel-beforeSend to set appropriate headers.

5607
Either use cellSelect event to detect the column

or

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

http://paramquery.com/api#method-getCellIndices

5608
Bill

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 dataModel.data[rowIndx][dataModel.recIndx] = record_id
http://paramquery.com/pro/api#option-dataModel-data

4) use refreshRow() to display record_id in the view 
http://paramquery.com/pro/api#method-refreshRow


Notes:

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


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

In this example http://paramquery.com/pro/demos/editing 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?

Regards
Paramvir

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

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