ParamQuery grid support forum

General Category => ParamQuery Pro Evaluation Support => Topic started by: suvalkon on September 02, 2014, 11:12:26 am

Title: Set default value for select list
Post by: suvalkon on September 02, 2014, 11:12:26 am
Hi

How can you set the default value that has been set up in the grid column so that in EDIT mode if the column has an editor "select" that the default equivalent description is displayed first.

ie the select has a text/value pair, the text is displayed and once selected the value is repopulated in the cell.

eg initially the value may be "PU" which denotes "PICKUP".
I want the "PICKUP" to display in the select list by default as the first one.

Thanks
Title: Re: Set default value for select list
Post by: paramvir on September 02, 2014, 04:52:00 pm
Please refer the API

http://paramquery.com/pro/api#option-column-editor

Data for select editor can be written as [ { "PU": "PICKUP" }, ... ]

"PU" can be shown by default in the select list by either making it first entry or made selected option in the editor.init callback