Author Topic: Dynamic Bind data in dropdown by ajax call  (Read 1728 times)

Jignesh

  • Pro Enterprise
  • Newbie
  • *
  • Posts: 46
    • View Profile
Dynamic Bind data in dropdown by ajax call
« 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

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: Dynamic Bind data in dropdown by ajax call
« Reply #1 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
« Last Edit: January 17, 2020, 04:21:39 pm by paramvir »