Quantcast
Channel: DataTables 1.10 — DataTables forums
Viewing all articles
Browse latest Browse all 2364

Default dropdown value based on selected record

$
0
0

Hi!
Trying to set the default value for

{
                            label: "Start: <font color=red><b>*</b></font> ",
                            name: "cdi_mileage.startsite",
                            type: "select",
                            placeholder:"select"
                        },

based on the value for startsite column selected from the table.

I tried .set and .val in initedit but neither worked.

The controller is set up as follows:
```
.Field(new Field("cdi_mileage.startsite")
.Options("cdi_address_book_relationships", "id", "site_aka", q => q.Where("ClinicianName", mycookie, "="))
)
``


Viewing all articles
Browse latest Browse all 2364

Trending Articles