Gridview RRS feed

  • Question

  • User-1499457942 posted


      How to edit record in gridview using modal popup


    Tuesday, August 14, 2018 1:51 PM

All replies

  • Tuesday, August 14, 2018 2:10 PM
  • User-1499457942 posted


      Is there any other way without using Ajax


    Tuesday, August 14, 2018 2:59 PM
  • User-1716253493 posted

    Try this, place bootstrap modal and script(windows load open modal) in edititemtemplate and/or inserttemtemplate of formview control.

    So, when formview is in edit mode you will get edit form in modal, if formview in readonly mode, the modal and the script gone


    script outside formview, simply make bootstrap modal in edititemtemplate

    Wednesday, August 15, 2018 12:43 AM
  • User-1499457942 posted


      Can u pls provide any link


    Wednesday, August 15, 2018 5:26 AM
  • User-1716253493 posted
    <div id="myModal" class="modal fade" role="dialog">
       <div class="modal-dialog modal-lg">
         <!-- Modal content-->
         <div class="modal-content">
         <div class="modal-header">
         <button type="button" class="close" data-dismiss="modal">&times;</button>
         <h4 class="modal-title">This is modal</h4>
         <div class="modal-body">

    Place above in formview edititemtemplace

                                    $(window).load(function () {

    Use above script at the bottom of the page or master page.

    If the formview in edit mode, you will see the modal

    Wednesday, August 15, 2018 6:58 AM