lundi 17 mars 2014

grid binding with other types than "string" or inline-edit with some datetimepicker

hi community,

so i was trying to add grid binding to an already finished grid that has string and date values.

example: http://ift.tt/1p3iUjb

















roomtime
l1-000125.02.2014 06:23:16
l2-006825.02.2014 09:51:27




room:

combobox with roomvalues

time:

well - eighter datepicker + some self-made timepicker or some datetimepicker library...

(getting the gxt-datepicker to work was easy, but i also need to edit the time)



getting the datevalues into the editor and via versa doesnt seem to be the problem (aside from the fact, that i also need to edit the time).

there isnt any datetimepicker in gxt, right? so... how do i define 2 editorfields for one cell in a grid?



also: using a textbox to edit the string in the first column works fine, but how can i use a combobox as editor?





as an alternative, i used inline-editing

http://ift.tt/1p3iWHU

in this case, everything works fine. except the fact, that i still cannot edit the time in in the datefield with given picker.



not sure what method to pick here (eighter inlineeditor or binding) - but on both i cannot figure out how to edit the time-part in the datefield, any ideas?

eighter one is fine, as long as i get the editing to work




Aucun commentaire:

Enregistrer un commentaire