Datepicker not appearing after adding rows to editable gridview

前端 未结 2 744
梦毁少年i
梦毁少年i 2021-01-20 21:40

I have an editable Gridview with columns as below:

    

        
2条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-20 22:16

    The only case that this happens is when you use UpdatePanel.

    Now when you use UpdatePanel, on each UpdatePanel the Dom is change and the javascript need re-initializations. Now in your case you add new lines, and you make ajax update, so you need to re-initialize the date picker.

    This can be done from the functions that come with UpdatePanel as:

    
    

    Similar: Asp.Net UpdatePanel in Gridview Jquery DatePicker
    Datepicker for dynamically created controls

提交回复
热议问题