Adding confirmation buttons /links in Grid

Certified Lead Developer

Hi,

 

I have a requirement of adding confirmation buttons and labels when user clicks on the "Delete" link in each row.

Any suggestions?

  Discussion posts and replies are publicly visible

Parents
  • +1
    Certified Lead Developer
    What I've seen in the past, is that when a user selects the Delete link, you save to a boolean local variable before deleting the row, and at the top/bottom of the grid, you have red confirmation text with a radio button (Yes/No). Once the user selects yes on the radio button, then you actually remove the item from the array and reset the boolean variable to false. Additionally, when the boolean variable is true, you can disable all other action on the page (i.e. grey out all other links and fields, such that they MUST answer the confirmation question prior to moving on).

    You could do the same thing via an additional column on your grid, if scrolling to the top/bottom isn't a good UX. If the user selects Delete on one row, another column displays to it's right with your confirmation question. Once confirmed, the column would disappear again.

    Hope this helps!
  • 0
    A Score Level 2
    in reply to Ashvin Kapur
    I really like the approach given by Ashvin Kapur,

    If you think a little alternate way, Instead of having a delete row link you can have actual buttons which will be pretty straight forward in implementing. This is just alternate approach. Its up to the Client how they want since Delete link will give a Eye catch UI compared to traditional buttons.
Reply Children
No Data