Click here to Skip to main content
15,880,891 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
**here is the view file which triggers the status in the data table:**


            targets: 7,
            className: "det stsarea",
            render: function (data, type, full, meta) {
              if (full['status'] == "0") {
                  return "Incomplete";
                } else if(full['status'] == "1") {
                return "Completed";
              } else if(full['status'] == "2") {
                return "Cancelled";
              }
            }
          },
        ],



**I want to change this status format to a dropdown from where I can change the status on click**

also the whole row is bind with a modal I want to detach status dropdown from that modal so that I can change the status when I click on the dropdown please also help me with that


**if any other detail is needed i will provide**

What I have tried:

I've tried to add a dropdown but its not dynamic

    targets: 7,
    className: "det stsarea",
    render: function (data, type, full, meta) {
    var dropdown = '';
    if (full['status'] != null) {
    dropdown += '';
     dropdown += 'Incomplete';
     dropdown += 'Completed';
     dropdown += 'Cancelled';
     dropdown += '';
                        }
                        return dropdown;
                    }
                },
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900