Author Topic: Display different select options under same column  (Read 2545 times)

Sunny

  • Pro Enterprise
  • Jr. Member
  • *
  • Posts: 59
    • View Profile
Display different select options under same column
« on: June 05, 2015, 01:41:48 am »
Hi,

I have requirement to display different select options under the same column based on row data. I searched in the demo/forums, but couldn't find an example.

Lets say, in the example http://paramquery.com/pro/demos/editing_custom2, Column Shipping Via has select editor with options always static across all rows.
How to display options for one row as {"value": "SE", "text": "Speedy Express" }, {"value": "UP", "text": "United Package" } and other row as {"value": "DHL", "text": "DHL Express" }, {"value": "UPS", "text": "United Package Services" },  which are dynamic based on the data contained in that particular row ....

Appreciate if you can provide example for this.

Thanks.

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: Display different select options under same column
« Reply #1 on: June 05, 2015, 04:37:56 pm »
Different options can be displayed in same column with help of editor.options callback.

There is an example which displays different options in Region column based on ShipCountry in same row.

http://paramquery.com/pro/demos/cascade_select

Sunny

  • Pro Enterprise
  • Jr. Member
  • *
  • Posts: 59
    • View Profile
Re: Display different select options under same column
« Reply #2 on: June 06, 2015, 12:55:02 am »
Thank you admin for providing the example. I could make it to work now.