ParamQuery grid support forum

General Category => Help for ParamQuery Pro => Topic started by: chirag on October 26, 2018, 10:14:11 am

Title: Dropdown in column from database
Post by: chirag 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.
Title: Re: Dropdown in column from database
Post by: paramvir 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