Author Topic: Dropdown in column from database  (Read 1624 times)

chirag

  • Pro Enterprise
  • Newbie
  • *
  • Posts: 27
    • View Profile
Dropdown in column from database
« on: October 26, 2018, 10:14:11 am »
I bind dropdown in column for edit purpose which has its value part and lable part.
Now when i fetch data in datamodel it return id for that coumn means value part. I want to display appropriate label  for that id.
And when I edit i want to send its id part in backend.
Find below code.

 colM.push({ title: '<b>PSL</b>', dataIndx: 'pslId', align: "center", width: 100, editable: true, editor: { type: "select", mapIndices: { text: "name", pslId: "pslId" }, labelIndx: "name", valueIndx: "pslId", options: optPSL } });

Please help.
« Last Edit: October 26, 2018, 10:16:06 am by chirag »

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: Dropdown in column from database
« Reply #1 on: October 26, 2018, 11:03:35 pm »
Its already there in the examples:

Please check Shipping Via column in this example:

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