May 19, 2023, 8:17 AM
Data deletion question.
Hi Ext.net Support:
This is AHA-Computer, Technical Support Engineer, Johnson.
Hope you are well.
AHA-Computer help user order Ext.NET Pro with 1 year of Premium support about 2023/5/5.
User's information:
Company name: Institute of Nuclear Energy Research, Atomic Energy Council, Executive Yuan
Contract Name: LIOU,ZE-SIAN
Contract Mail: rliu5325@iner.gov.tw
Product Description & Version: Ext.NET Pro V7.3
Developers: 2
Question Description/User's request:
Q2. There is a delete button designed. After deleting the data, it will refresh the GridPanel content (without Paging).
There is no way to design a confirm box in ClentSide first to confirm whether the user selects "Yes", and then Post to the backend to process the data deletion, and then Refresh GridPanel content can only be confirmed simply with javascript.
The delete button will use directEvents, POST to the background to process the data after deletion, success will refresh the GridPanel content.
But this place cannot use Ext.Net's Ext.Msg.confirm to design a post to the background after client side confirmation:


Changing to use the following method also cannot refresh the content of the GridPanel data after the data is deleted:
Thank you for your support very much.
This is AHA-Computer, Technical Support Engineer, Johnson.
Hope you are well.
AHA-Computer help user order Ext.NET Pro with 1 year of Premium support about 2023/5/5.
User's information:
Company name: Institute of Nuclear Energy Research, Atomic Energy Council, Executive Yuan
Contract Name: LIOU,ZE-SIAN
Contract Mail: rliu5325@iner.gov.tw
Product Description & Version: Ext.NET Pro V7.3
Developers: 2
Question Description/User's request:
Q2. There is a delete button designed. After deleting the data, it will refresh the GridPanel content (without Paging).
There is no way to design a confirm box in ClentSide first to confirm whether the user selects "Yes", and then Post to the backend to process the data deletion, and then Refresh GridPanel content can only be confirmed simply with javascript.
The delete button will use directEvents, POST to the background to process the data after deletion, success will refresh the GridPanel content.
But this place cannot use Ext.Net's Ext.Msg.confirm to design a post to the background after client side confirmation:
Changing to use the following method also cannot refresh the content of the GridPanel data after the data is deleted:
<listeners>
<click handler="Ext.Msg.confirm('??','???????????',function(btn){if (btn == 'yes') App.direct.Delete_Click(@getFormValue,{success: function(){@Success}});}); "/>
</listeners>
Then add the declaration of [DirectModel] and [Direct] in the .cs design
Can support design a confirm box in ClentSide to confirm whether the user selects "Yes" first, then Post to the backend to process the data deletion, and then Rrefresh the GridPanel content?Thank you for your support very much.