How can i add drop down list in particular table row td ( cell num is 7 ) when click edit button

Mohammad Qasim 576 Reputation points
2020-11-18T19:42:32.517+00:00

Greetings

using sharepoint 2016 ( On prem )

have added table dynamically with edit button

Problem:

  1. when user click on edit button all columns converts into textbox to allow user to edit data and save.
    here i need to add drop down , but dropdown is being added to all table not on particular row , based on Edit button

2) How to hide search textbox ?

Solution Required:
just add dropdown as user click on edit button on same row in td ( td num is 8 where dropdown should be added )

Snaps are shared for reference

SharePoint Server Development
SharePoint Server Development
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Development: The process of researching, productizing, and refining new or existing technologies.
1,613 questions
{count} votes

Accepted answer
  1. Mohammad Qasim 576 Reputation points
    2020-11-21T13:40:27.517+00:00

    Resolved My self

    i add control in div , it easy to remove div whenever avoid duplication

    Thanks


1 additional answer

Sort by: Most helpful
  1. Baker Kong-MSFT 3,801 Reputation points
    2020-11-19T01:43:40.333+00:00

    Hi @Mohammad Qasim ,

    Can you share the source code or JS library? We cannot know the element properties or reproduce this issue.

    If $('#tredit_' + id) is a <tr> tag, then its parent should be the table and find("td:nth-child(8)").append(inputElement); will add dropdown to all rows.

    Thanks
    Baker Kong


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.