ParamQuery grid support forum

General Category => Help for ParamQuery Pro => Topic started by: Jignesh on January 17, 2020, 03:54:30 pm

Title: Dynamic Bind data in dropdown by ajax call
Post by: Jignesh on January 17, 2020, 03:54:30 pm
Hi Paramvir,

Below are requirement for dropdwon in Grid:
1) When click on cell then ajax call and bind base on response.
2) second row bind on base on First row value.

I have attached screenshot for same.


Thank you,
Jignesh
Title: Re: Dynamic Bind data in dropdown by ajax call
Post by: paramvir on January 17, 2020, 04:15:15 pm
Please check ShipCountry column in this demo for dynamic dropdown based on ajax response:

https://paramquery.com/pro/demos/editing_custom

Previous row data can be obtained by getRowData() method

Code: [Select]
var rd1 = grid.getRowData({rowIndx: ui.rowIndx - 1 })

https://paramquery.com/pro/api#method-getRowData