on 04-21-2018 5:59 PM
Hi Guys,
I am working with SAPUI5 Grid Table batch editing(Editable or non-editable cell). I am thinking about two options mentioned below but I am not sure if I can achieve this or is it even supported by Grid Table
1. I want to click on a grid cell and change the control from text to input so that I can edit record and save it later.
2. Keep input editable to false and by clicking the cell or input, whichever is easy, change input editable to true. I was trying this option but once the input editable is set to false no event gets fired on input so, therefore, can't change the state at all.
Also, I have noticed that setting editable to false on Table itself doesn't do anything at least in my case it is not doing anything.
Any help or guidance will be appreciated.
Regards
Hi ,
You can use the below solutions to achieve your 2 options functionality :
1. there is a event cellClick : https://sapui5.hana.ondemand.com/#/api/sap.ui.table.Table/events/cellClick for the sap.ui.table.Table (Grid Table) control and on that event fire change the text control to input control .
2. Same cellClick event of the grid table control will help you on this. On that event you can get the control in the cell and change its editable property from false to true and true to false ..
If this event doesn't help you than and you need to use the input control event for your second option than you need to extend the input control(sap.m.input) to add the input click event .. Example : https://sapui5.hana.ondemand.com/#/sample/sap.m.tutorial.walkthrough.34/code
Thanks
Viplove
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Check out cellContextmenu event
https://sapui5.hana.ondemand.com/#/api/sap.ui.table.Table/events/cellContextmenu
Similar to cellClick ..
Thanks
Viplove
User | Count |
---|---|
84 | |
10 | |
9 | |
8 | |
6 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.