You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@royale.apache.org by Hugo Ferreira <hf...@gmail.com> on 2020/08/30 22:06:35 UTC

Jewel DataGrid and editable columns

Hello,

I continue my jorney on Royale with Jewel and I started now with DataGrid
component.
I'm facing an issue that I can't see how to edit an item inside the
selected row: Label becames an editable component like TextInput.
This is a very, very important feature of a DataGrid.

This is not supported right now or I'm doing something wrong ?

Thank you,
Hugo.

Re: Live Editing DataGrid example (Re: Jewel DataGrid and editable columns)

Posted by Hugo Ferreira <hf...@gmail.com>.
Hi Carlos,

Man, you are the best !

Thank you so much.

Carlos Rovira <ca...@apache.org> escreveu no dia sexta, 4/09/2020
à(s) 01:06:

> Hi Hugo,
>
> just solved the issue :)
> Also added a new blog example (temporal) where you can grab a working
> DataGrid (I also added List and DataContainer examples).
>
>
> https://github.com/apache/royale-asjs/tree/develop/examples/blog/BE0016_Live_Editing_DataGrid
>
> We still need to add events like "itemEditBegin", "itemEditEnd",... but
> that should be pretty straightforward, based on the current renderer.
> Maybe a "EditableDataGrid" with all this support will be better...
> Hope you could use this example in the meantime.
>
> Best
>
> Carlos
>
>
>
>
> El vie., 4 sept. 2020 a las 0:23, Carlos Rovira (<carlosrovira@apache.org
> >)
> escribió:
>
> > Hi Hugo
> > just found the source of the problem:
> >
> > IBeadKeyController: ClassReference(
> > "org.apache.royale.jewel.beads.controllers.ListKeyDownController")
> >
> > :)
> >
> > So now it's a matter of seeing how to deal with this :)
> >
> >
> >
> > El vie., 4 sept. 2020 a las 0:20, Carlos Rovira (<
> carlosrovira@apache.org>)
> > escribió:
> >
> >> Hi,
> >>
> >> I isolated the problem to List and DataGrid. The problem is not
> happening
> >> in DataContainer...so we know nothing about the TextInput and can
> >> concentrate in List and DataGrid.
> >>
> >> El vie., 4 sept. 2020 a las 0:08, Hugo Ferreira (<
> hferreira.80@gmail.com>)
> >> escribió:
> >>
> >>> Exactly from your description.
> >>> As soon the public sample is updated it will stop working, unless we
> find
> >>> the bug first.
> >>>
> >>> Carlos Rovira <ca...@apache.org> escreveu no dia quinta,
> >>> 3/09/2020
> >>> à(s) 21:36:
> >>>
> >>> > Hi Hugo,
> >>> >
> >>> > right, when I did it was working (and the posted version was from
> that
> >>> > time). Then I tested some other times, but seems some update break it
> >>> at
> >>> > some point.
> >>> >
> >>> > El jue., 3 sept. 2020 a las 20:07, Hugo Ferreira (<
> >>> hferreira.80@gmail.com
> >>> > >)
> >>> > escribió:
> >>> >
> >>> > > I just tested the TODO live sample and it's working:
> >>> > > https://royale.apache.org/todomvc-jewel
> >>> > > If it's not working the development branch can probably be related
> >>> to a
> >>> > > recent bug.
> >>> > >
> >>> > > Carlos Rovira <ca...@apache.org> escreveu no dia quinta,
> >>> > 3/09/2020
> >>> > > à(s) 18:34:
> >>> > >
> >>> > > > Hi,
> >>> > > >
> >>> > > > I continued searching the problem and found the same is happening
> >>> in
> >>> > List
> >>> > > > and in TodoMVC example :(
> >>> > > > still don't know what could be wrong. Will continue searching.
> >>> > > > Maybe something related to tabindex?
> >>> > > >
> >>> > > >
> >>> > > > El jue., 3 sept. 2020 a las 17:28, Hugo Ferreira (<
> >>> > > hferreira.80@gmail.com
> >>> > > > >)
> >>> > > > escribió:
> >>> > > >
> >>> > > > > Thanks.
> >>> > > > > Putting the TextInput inside of a DataGrid, allowing editing
> has
> >>> been
> >>> > > the
> >>> > > > > biggest challenge so far.
> >>> > > > >
> >>> > > > > Carlos Rovira <ca...@apache.org> escreveu no dia
> quinta,
> >>> > > > 3/09/2020
> >>> > > > > à(s) 16:13:
> >>> > > > >
> >>> > > > > > Hi Hugo,
> >>> > > > > >
> >>> > > > > > I've done an example trying to do the live editing datagrid.
> >>> > > > > >
> >>> > > > > > https://we.tl/t-BrViPUDncg
> >>> > > > > >
> >>> > > > > > For now I got switching labels to text input but in editing
> >>> mode
> >>> > > > > something
> >>> > > > > > prevents the textinput to getting edited.
> >>> > > > > >
> >>> > > > > > Please, check if you get that to work and can provide a
> >>> solution,
> >>> > if
> >>> > > > not
> >>> > > > > > I'll try another day I have more time.
> >>> > > > > >
> >>> > > > > > In the todomvc example that worked without problem and was a
> >>> List
> >>> > > too.
> >>> > > > In
> >>> > > > > > DG each column is a List, so don't know why it is not working
> >>> right
> >>> > > > now,
> >>> > > > > > maybe something in DG is interfering (maybe some event like
> >>> > > > > > "selectionChanged"). Another cause could be the "focus"
> >>> support in
> >>> > > > > browsers
> >>> > > > > > that works sometimes very "strangely".
> >>> > > > > >
> >>> > > > > > Maybe others here can take a look as well to this focus issue
> >>> and
> >>> > > know
> >>> > > > > > what's happening under the hood (Piotr?, Greg?,...)
> >>> > > > > >
> >>> > > > > > As we get it working we can integrate better in Royale and
> >>> give a
> >>> > > > better
> >>> > > > > > look and feel.
> >>> > > > > >
> >>> > > > > > Thanks
> >>> > > > > >
> >>> > > > > > --
> >>> > > > > > Carlos Rovira
> >>> > > > > > http://about.me/carlosrovira
> >>> > > > > >
> >>> > > > >
> >>> > > >
> >>> > > >
> >>> > > > --
> >>> > > > Carlos Rovira
> >>> > > > http://about.me/carlosrovira
> >>> > > >
> >>> > >
> >>> >
> >>> >
> >>> > --
> >>> > Carlos Rovira
> >>> > http://about.me/carlosrovira
> >>> >
> >>>
> >>
> >>
> >> --
> >> Carlos Rovira
> >> http://about.me/carlosrovira
> >>
> >>
> >
> > --
> > Carlos Rovira
> > http://about.me/carlosrovira
> >
> >
>
> --
> Carlos Rovira
> http://about.me/carlosrovira
>

Re: Live Editing DataGrid example (Re: Jewel DataGrid and editable columns)

Posted by Carlos Rovira <ca...@apache.org>.
Hi Hugo,

just solved the issue :)
Also added a new blog example (temporal) where you can grab a working
DataGrid (I also added List and DataContainer examples).

https://github.com/apache/royale-asjs/tree/develop/examples/blog/BE0016_Live_Editing_DataGrid

We still need to add events like "itemEditBegin", "itemEditEnd",... but
that should be pretty straightforward, based on the current renderer.
Maybe a "EditableDataGrid" with all this support will be better...
Hope you could use this example in the meantime.

Best

Carlos




El vie., 4 sept. 2020 a las 0:23, Carlos Rovira (<ca...@apache.org>)
escribió:

> Hi Hugo
> just found the source of the problem:
>
> IBeadKeyController: ClassReference(
> "org.apache.royale.jewel.beads.controllers.ListKeyDownController")
>
> :)
>
> So now it's a matter of seeing how to deal with this :)
>
>
>
> El vie., 4 sept. 2020 a las 0:20, Carlos Rovira (<ca...@apache.org>)
> escribió:
>
>> Hi,
>>
>> I isolated the problem to List and DataGrid. The problem is not happening
>> in DataContainer...so we know nothing about the TextInput and can
>> concentrate in List and DataGrid.
>>
>> El vie., 4 sept. 2020 a las 0:08, Hugo Ferreira (<hf...@gmail.com>)
>> escribió:
>>
>>> Exactly from your description.
>>> As soon the public sample is updated it will stop working, unless we find
>>> the bug first.
>>>
>>> Carlos Rovira <ca...@apache.org> escreveu no dia quinta,
>>> 3/09/2020
>>> à(s) 21:36:
>>>
>>> > Hi Hugo,
>>> >
>>> > right, when I did it was working (and the posted version was from that
>>> > time). Then I tested some other times, but seems some update break it
>>> at
>>> > some point.
>>> >
>>> > El jue., 3 sept. 2020 a las 20:07, Hugo Ferreira (<
>>> hferreira.80@gmail.com
>>> > >)
>>> > escribió:
>>> >
>>> > > I just tested the TODO live sample and it's working:
>>> > > https://royale.apache.org/todomvc-jewel
>>> > > If it's not working the development branch can probably be related
>>> to a
>>> > > recent bug.
>>> > >
>>> > > Carlos Rovira <ca...@apache.org> escreveu no dia quinta,
>>> > 3/09/2020
>>> > > à(s) 18:34:
>>> > >
>>> > > > Hi,
>>> > > >
>>> > > > I continued searching the problem and found the same is happening
>>> in
>>> > List
>>> > > > and in TodoMVC example :(
>>> > > > still don't know what could be wrong. Will continue searching.
>>> > > > Maybe something related to tabindex?
>>> > > >
>>> > > >
>>> > > > El jue., 3 sept. 2020 a las 17:28, Hugo Ferreira (<
>>> > > hferreira.80@gmail.com
>>> > > > >)
>>> > > > escribió:
>>> > > >
>>> > > > > Thanks.
>>> > > > > Putting the TextInput inside of a DataGrid, allowing editing has
>>> been
>>> > > the
>>> > > > > biggest challenge so far.
>>> > > > >
>>> > > > > Carlos Rovira <ca...@apache.org> escreveu no dia quinta,
>>> > > > 3/09/2020
>>> > > > > à(s) 16:13:
>>> > > > >
>>> > > > > > Hi Hugo,
>>> > > > > >
>>> > > > > > I've done an example trying to do the live editing datagrid.
>>> > > > > >
>>> > > > > > https://we.tl/t-BrViPUDncg
>>> > > > > >
>>> > > > > > For now I got switching labels to text input but in editing
>>> mode
>>> > > > > something
>>> > > > > > prevents the textinput to getting edited.
>>> > > > > >
>>> > > > > > Please, check if you get that to work and can provide a
>>> solution,
>>> > if
>>> > > > not
>>> > > > > > I'll try another day I have more time.
>>> > > > > >
>>> > > > > > In the todomvc example that worked without problem and was a
>>> List
>>> > > too.
>>> > > > In
>>> > > > > > DG each column is a List, so don't know why it is not working
>>> right
>>> > > > now,
>>> > > > > > maybe something in DG is interfering (maybe some event like
>>> > > > > > "selectionChanged"). Another cause could be the "focus"
>>> support in
>>> > > > > browsers
>>> > > > > > that works sometimes very "strangely".
>>> > > > > >
>>> > > > > > Maybe others here can take a look as well to this focus issue
>>> and
>>> > > know
>>> > > > > > what's happening under the hood (Piotr?, Greg?,...)
>>> > > > > >
>>> > > > > > As we get it working we can integrate better in Royale and
>>> give a
>>> > > > better
>>> > > > > > look and feel.
>>> > > > > >
>>> > > > > > Thanks
>>> > > > > >
>>> > > > > > --
>>> > > > > > Carlos Rovira
>>> > > > > > http://about.me/carlosrovira
>>> > > > > >
>>> > > > >
>>> > > >
>>> > > >
>>> > > > --
>>> > > > Carlos Rovira
>>> > > > http://about.me/carlosrovira
>>> > > >
>>> > >
>>> >
>>> >
>>> > --
>>> > Carlos Rovira
>>> > http://about.me/carlosrovira
>>> >
>>>
>>
>>
>> --
>> Carlos Rovira
>> http://about.me/carlosrovira
>>
>>
>
> --
> Carlos Rovira
> http://about.me/carlosrovira
>
>

-- 
Carlos Rovira
http://about.me/carlosrovira

Re: Live Editing DataGrid example (Re: Jewel DataGrid and editable columns)

Posted by Carlos Rovira <ca...@apache.org>.
Hi Hugo
just found the source of the problem:

IBeadKeyController: ClassReference(
"org.apache.royale.jewel.beads.controllers.ListKeyDownController")

:)

So now it's a matter of seeing how to deal with this :)



El vie., 4 sept. 2020 a las 0:20, Carlos Rovira (<ca...@apache.org>)
escribió:

> Hi,
>
> I isolated the problem to List and DataGrid. The problem is not happening
> in DataContainer...so we know nothing about the TextInput and can
> concentrate in List and DataGrid.
>
> El vie., 4 sept. 2020 a las 0:08, Hugo Ferreira (<hf...@gmail.com>)
> escribió:
>
>> Exactly from your description.
>> As soon the public sample is updated it will stop working, unless we find
>> the bug first.
>>
>> Carlos Rovira <ca...@apache.org> escreveu no dia quinta, 3/09/2020
>> à(s) 21:36:
>>
>> > Hi Hugo,
>> >
>> > right, when I did it was working (and the posted version was from that
>> > time). Then I tested some other times, but seems some update break it at
>> > some point.
>> >
>> > El jue., 3 sept. 2020 a las 20:07, Hugo Ferreira (<
>> hferreira.80@gmail.com
>> > >)
>> > escribió:
>> >
>> > > I just tested the TODO live sample and it's working:
>> > > https://royale.apache.org/todomvc-jewel
>> > > If it's not working the development branch can probably be related to
>> a
>> > > recent bug.
>> > >
>> > > Carlos Rovira <ca...@apache.org> escreveu no dia quinta,
>> > 3/09/2020
>> > > à(s) 18:34:
>> > >
>> > > > Hi,
>> > > >
>> > > > I continued searching the problem and found the same is happening in
>> > List
>> > > > and in TodoMVC example :(
>> > > > still don't know what could be wrong. Will continue searching.
>> > > > Maybe something related to tabindex?
>> > > >
>> > > >
>> > > > El jue., 3 sept. 2020 a las 17:28, Hugo Ferreira (<
>> > > hferreira.80@gmail.com
>> > > > >)
>> > > > escribió:
>> > > >
>> > > > > Thanks.
>> > > > > Putting the TextInput inside of a DataGrid, allowing editing has
>> been
>> > > the
>> > > > > biggest challenge so far.
>> > > > >
>> > > > > Carlos Rovira <ca...@apache.org> escreveu no dia quinta,
>> > > > 3/09/2020
>> > > > > à(s) 16:13:
>> > > > >
>> > > > > > Hi Hugo,
>> > > > > >
>> > > > > > I've done an example trying to do the live editing datagrid.
>> > > > > >
>> > > > > > https://we.tl/t-BrViPUDncg
>> > > > > >
>> > > > > > For now I got switching labels to text input but in editing mode
>> > > > > something
>> > > > > > prevents the textinput to getting edited.
>> > > > > >
>> > > > > > Please, check if you get that to work and can provide a
>> solution,
>> > if
>> > > > not
>> > > > > > I'll try another day I have more time.
>> > > > > >
>> > > > > > In the todomvc example that worked without problem and was a
>> List
>> > > too.
>> > > > In
>> > > > > > DG each column is a List, so don't know why it is not working
>> right
>> > > > now,
>> > > > > > maybe something in DG is interfering (maybe some event like
>> > > > > > "selectionChanged"). Another cause could be the "focus" support
>> in
>> > > > > browsers
>> > > > > > that works sometimes very "strangely".
>> > > > > >
>> > > > > > Maybe others here can take a look as well to this focus issue
>> and
>> > > know
>> > > > > > what's happening under the hood (Piotr?, Greg?,...)
>> > > > > >
>> > > > > > As we get it working we can integrate better in Royale and give
>> a
>> > > > better
>> > > > > > look and feel.
>> > > > > >
>> > > > > > Thanks
>> > > > > >
>> > > > > > --
>> > > > > > Carlos Rovira
>> > > > > > http://about.me/carlosrovira
>> > > > > >
>> > > > >
>> > > >
>> > > >
>> > > > --
>> > > > Carlos Rovira
>> > > > http://about.me/carlosrovira
>> > > >
>> > >
>> >
>> >
>> > --
>> > Carlos Rovira
>> > http://about.me/carlosrovira
>> >
>>
>
>
> --
> Carlos Rovira
> http://about.me/carlosrovira
>
>

-- 
Carlos Rovira
http://about.me/carlosrovira

Re: Live Editing DataGrid example (Re: Jewel DataGrid and editable columns)

Posted by Carlos Rovira <ca...@apache.org>.
Hi,

I isolated the problem to List and DataGrid. The problem is not happening
in DataContainer...so we know nothing about the TextInput and can
concentrate in List and DataGrid.

El vie., 4 sept. 2020 a las 0:08, Hugo Ferreira (<hf...@gmail.com>)
escribió:

> Exactly from your description.
> As soon the public sample is updated it will stop working, unless we find
> the bug first.
>
> Carlos Rovira <ca...@apache.org> escreveu no dia quinta, 3/09/2020
> à(s) 21:36:
>
> > Hi Hugo,
> >
> > right, when I did it was working (and the posted version was from that
> > time). Then I tested some other times, but seems some update break it at
> > some point.
> >
> > El jue., 3 sept. 2020 a las 20:07, Hugo Ferreira (<
> hferreira.80@gmail.com
> > >)
> > escribió:
> >
> > > I just tested the TODO live sample and it's working:
> > > https://royale.apache.org/todomvc-jewel
> > > If it's not working the development branch can probably be related to a
> > > recent bug.
> > >
> > > Carlos Rovira <ca...@apache.org> escreveu no dia quinta,
> > 3/09/2020
> > > à(s) 18:34:
> > >
> > > > Hi,
> > > >
> > > > I continued searching the problem and found the same is happening in
> > List
> > > > and in TodoMVC example :(
> > > > still don't know what could be wrong. Will continue searching.
> > > > Maybe something related to tabindex?
> > > >
> > > >
> > > > El jue., 3 sept. 2020 a las 17:28, Hugo Ferreira (<
> > > hferreira.80@gmail.com
> > > > >)
> > > > escribió:
> > > >
> > > > > Thanks.
> > > > > Putting the TextInput inside of a DataGrid, allowing editing has
> been
> > > the
> > > > > biggest challenge so far.
> > > > >
> > > > > Carlos Rovira <ca...@apache.org> escreveu no dia quinta,
> > > > 3/09/2020
> > > > > à(s) 16:13:
> > > > >
> > > > > > Hi Hugo,
> > > > > >
> > > > > > I've done an example trying to do the live editing datagrid.
> > > > > >
> > > > > > https://we.tl/t-BrViPUDncg
> > > > > >
> > > > > > For now I got switching labels to text input but in editing mode
> > > > > something
> > > > > > prevents the textinput to getting edited.
> > > > > >
> > > > > > Please, check if you get that to work and can provide a solution,
> > if
> > > > not
> > > > > > I'll try another day I have more time.
> > > > > >
> > > > > > In the todomvc example that worked without problem and was a List
> > > too.
> > > > In
> > > > > > DG each column is a List, so don't know why it is not working
> right
> > > > now,
> > > > > > maybe something in DG is interfering (maybe some event like
> > > > > > "selectionChanged"). Another cause could be the "focus" support
> in
> > > > > browsers
> > > > > > that works sometimes very "strangely".
> > > > > >
> > > > > > Maybe others here can take a look as well to this focus issue and
> > > know
> > > > > > what's happening under the hood (Piotr?, Greg?,...)
> > > > > >
> > > > > > As we get it working we can integrate better in Royale and give a
> > > > better
> > > > > > look and feel.
> > > > > >
> > > > > > Thanks
> > > > > >
> > > > > > --
> > > > > > Carlos Rovira
> > > > > > http://about.me/carlosrovira
> > > > > >
> > > > >
> > > >
> > > >
> > > > --
> > > > Carlos Rovira
> > > > http://about.me/carlosrovira
> > > >
> > >
> >
> >
> > --
> > Carlos Rovira
> > http://about.me/carlosrovira
> >
>


-- 
Carlos Rovira
http://about.me/carlosrovira

Re: Live Editing DataGrid example (Re: Jewel DataGrid and editable columns)

Posted by Hugo Ferreira <hf...@gmail.com>.
Exactly from your description.
As soon the public sample is updated it will stop working, unless we find
the bug first.

Carlos Rovira <ca...@apache.org> escreveu no dia quinta, 3/09/2020
à(s) 21:36:

> Hi Hugo,
>
> right, when I did it was working (and the posted version was from that
> time). Then I tested some other times, but seems some update break it at
> some point.
>
> El jue., 3 sept. 2020 a las 20:07, Hugo Ferreira (<hferreira.80@gmail.com
> >)
> escribió:
>
> > I just tested the TODO live sample and it's working:
> > https://royale.apache.org/todomvc-jewel
> > If it's not working the development branch can probably be related to a
> > recent bug.
> >
> > Carlos Rovira <ca...@apache.org> escreveu no dia quinta,
> 3/09/2020
> > à(s) 18:34:
> >
> > > Hi,
> > >
> > > I continued searching the problem and found the same is happening in
> List
> > > and in TodoMVC example :(
> > > still don't know what could be wrong. Will continue searching.
> > > Maybe something related to tabindex?
> > >
> > >
> > > El jue., 3 sept. 2020 a las 17:28, Hugo Ferreira (<
> > hferreira.80@gmail.com
> > > >)
> > > escribió:
> > >
> > > > Thanks.
> > > > Putting the TextInput inside of a DataGrid, allowing editing has been
> > the
> > > > biggest challenge so far.
> > > >
> > > > Carlos Rovira <ca...@apache.org> escreveu no dia quinta,
> > > 3/09/2020
> > > > à(s) 16:13:
> > > >
> > > > > Hi Hugo,
> > > > >
> > > > > I've done an example trying to do the live editing datagrid.
> > > > >
> > > > > https://we.tl/t-BrViPUDncg
> > > > >
> > > > > For now I got switching labels to text input but in editing mode
> > > > something
> > > > > prevents the textinput to getting edited.
> > > > >
> > > > > Please, check if you get that to work and can provide a solution,
> if
> > > not
> > > > > I'll try another day I have more time.
> > > > >
> > > > > In the todomvc example that worked without problem and was a List
> > too.
> > > In
> > > > > DG each column is a List, so don't know why it is not working right
> > > now,
> > > > > maybe something in DG is interfering (maybe some event like
> > > > > "selectionChanged"). Another cause could be the "focus" support in
> > > > browsers
> > > > > that works sometimes very "strangely".
> > > > >
> > > > > Maybe others here can take a look as well to this focus issue and
> > know
> > > > > what's happening under the hood (Piotr?, Greg?,...)
> > > > >
> > > > > As we get it working we can integrate better in Royale and give a
> > > better
> > > > > look and feel.
> > > > >
> > > > > Thanks
> > > > >
> > > > > --
> > > > > Carlos Rovira
> > > > > http://about.me/carlosrovira
> > > > >
> > > >
> > >
> > >
> > > --
> > > Carlos Rovira
> > > http://about.me/carlosrovira
> > >
> >
>
>
> --
> Carlos Rovira
> http://about.me/carlosrovira
>

Re: Live Editing DataGrid example (Re: Jewel DataGrid and editable columns)

Posted by Carlos Rovira <ca...@apache.org>.
Hi Hugo,

right, when I did it was working (and the posted version was from that
time). Then I tested some other times, but seems some update break it at
some point.

El jue., 3 sept. 2020 a las 20:07, Hugo Ferreira (<hf...@gmail.com>)
escribió:

> I just tested the TODO live sample and it's working:
> https://royale.apache.org/todomvc-jewel
> If it's not working the development branch can probably be related to a
> recent bug.
>
> Carlos Rovira <ca...@apache.org> escreveu no dia quinta, 3/09/2020
> à(s) 18:34:
>
> > Hi,
> >
> > I continued searching the problem and found the same is happening in List
> > and in TodoMVC example :(
> > still don't know what could be wrong. Will continue searching.
> > Maybe something related to tabindex?
> >
> >
> > El jue., 3 sept. 2020 a las 17:28, Hugo Ferreira (<
> hferreira.80@gmail.com
> > >)
> > escribió:
> >
> > > Thanks.
> > > Putting the TextInput inside of a DataGrid, allowing editing has been
> the
> > > biggest challenge so far.
> > >
> > > Carlos Rovira <ca...@apache.org> escreveu no dia quinta,
> > 3/09/2020
> > > à(s) 16:13:
> > >
> > > > Hi Hugo,
> > > >
> > > > I've done an example trying to do the live editing datagrid.
> > > >
> > > > https://we.tl/t-BrViPUDncg
> > > >
> > > > For now I got switching labels to text input but in editing mode
> > > something
> > > > prevents the textinput to getting edited.
> > > >
> > > > Please, check if you get that to work and can provide a solution, if
> > not
> > > > I'll try another day I have more time.
> > > >
> > > > In the todomvc example that worked without problem and was a List
> too.
> > In
> > > > DG each column is a List, so don't know why it is not working right
> > now,
> > > > maybe something in DG is interfering (maybe some event like
> > > > "selectionChanged"). Another cause could be the "focus" support in
> > > browsers
> > > > that works sometimes very "strangely".
> > > >
> > > > Maybe others here can take a look as well to this focus issue and
> know
> > > > what's happening under the hood (Piotr?, Greg?,...)
> > > >
> > > > As we get it working we can integrate better in Royale and give a
> > better
> > > > look and feel.
> > > >
> > > > Thanks
> > > >
> > > > --
> > > > Carlos Rovira
> > > > http://about.me/carlosrovira
> > > >
> > >
> >
> >
> > --
> > Carlos Rovira
> > http://about.me/carlosrovira
> >
>


-- 
Carlos Rovira
http://about.me/carlosrovira

Re: Live Editing DataGrid example (Re: Jewel DataGrid and editable columns)

Posted by Hugo Ferreira <hf...@gmail.com>.
I just tested the TODO live sample and it's working:
https://royale.apache.org/todomvc-jewel
If it's not working the development branch can probably be related to a
recent bug.

Carlos Rovira <ca...@apache.org> escreveu no dia quinta, 3/09/2020
à(s) 18:34:

> Hi,
>
> I continued searching the problem and found the same is happening in List
> and in TodoMVC example :(
> still don't know what could be wrong. Will continue searching.
> Maybe something related to tabindex?
>
>
> El jue., 3 sept. 2020 a las 17:28, Hugo Ferreira (<hferreira.80@gmail.com
> >)
> escribió:
>
> > Thanks.
> > Putting the TextInput inside of a DataGrid, allowing editing has been the
> > biggest challenge so far.
> >
> > Carlos Rovira <ca...@apache.org> escreveu no dia quinta,
> 3/09/2020
> > à(s) 16:13:
> >
> > > Hi Hugo,
> > >
> > > I've done an example trying to do the live editing datagrid.
> > >
> > > https://we.tl/t-BrViPUDncg
> > >
> > > For now I got switching labels to text input but in editing mode
> > something
> > > prevents the textinput to getting edited.
> > >
> > > Please, check if you get that to work and can provide a solution, if
> not
> > > I'll try another day I have more time.
> > >
> > > In the todomvc example that worked without problem and was a List too.
> In
> > > DG each column is a List, so don't know why it is not working right
> now,
> > > maybe something in DG is interfering (maybe some event like
> > > "selectionChanged"). Another cause could be the "focus" support in
> > browsers
> > > that works sometimes very "strangely".
> > >
> > > Maybe others here can take a look as well to this focus issue and know
> > > what's happening under the hood (Piotr?, Greg?,...)
> > >
> > > As we get it working we can integrate better in Royale and give a
> better
> > > look and feel.
> > >
> > > Thanks
> > >
> > > --
> > > Carlos Rovira
> > > http://about.me/carlosrovira
> > >
> >
>
>
> --
> Carlos Rovira
> http://about.me/carlosrovira
>

Re: Live Editing DataGrid example (Re: Jewel DataGrid and editable columns)

Posted by Carlos Rovira <ca...@apache.org>.
Hi,

I continued searching the problem and found the same is happening in List
and in TodoMVC example :(
still don't know what could be wrong. Will continue searching.
Maybe something related to tabindex?


El jue., 3 sept. 2020 a las 17:28, Hugo Ferreira (<hf...@gmail.com>)
escribió:

> Thanks.
> Putting the TextInput inside of a DataGrid, allowing editing has been the
> biggest challenge so far.
>
> Carlos Rovira <ca...@apache.org> escreveu no dia quinta, 3/09/2020
> à(s) 16:13:
>
> > Hi Hugo,
> >
> > I've done an example trying to do the live editing datagrid.
> >
> > https://we.tl/t-BrViPUDncg
> >
> > For now I got switching labels to text input but in editing mode
> something
> > prevents the textinput to getting edited.
> >
> > Please, check if you get that to work and can provide a solution, if not
> > I'll try another day I have more time.
> >
> > In the todomvc example that worked without problem and was a List too. In
> > DG each column is a List, so don't know why it is not working right now,
> > maybe something in DG is interfering (maybe some event like
> > "selectionChanged"). Another cause could be the "focus" support in
> browsers
> > that works sometimes very "strangely".
> >
> > Maybe others here can take a look as well to this focus issue and know
> > what's happening under the hood (Piotr?, Greg?,...)
> >
> > As we get it working we can integrate better in Royale and give a better
> > look and feel.
> >
> > Thanks
> >
> > --
> > Carlos Rovira
> > http://about.me/carlosrovira
> >
>


-- 
Carlos Rovira
http://about.me/carlosrovira

Re: Live Editing DataGrid example (Re: Jewel DataGrid and editable columns)

Posted by Hugo Ferreira <hf...@gmail.com>.
Thanks.
Putting the TextInput inside of a DataGrid, allowing editing has been the
biggest challenge so far.

Carlos Rovira <ca...@apache.org> escreveu no dia quinta, 3/09/2020
à(s) 16:13:

> Hi Hugo,
>
> I've done an example trying to do the live editing datagrid.
>
> https://we.tl/t-BrViPUDncg
>
> For now I got switching labels to text input but in editing mode something
> prevents the textinput to getting edited.
>
> Please, check if you get that to work and can provide a solution, if not
> I'll try another day I have more time.
>
> In the todomvc example that worked without problem and was a List too. In
> DG each column is a List, so don't know why it is not working right now,
> maybe something in DG is interfering (maybe some event like
> "selectionChanged"). Another cause could be the "focus" support in browsers
> that works sometimes very "strangely".
>
> Maybe others here can take a look as well to this focus issue and know
> what's happening under the hood (Piotr?, Greg?,...)
>
> As we get it working we can integrate better in Royale and give a better
> look and feel.
>
> Thanks
>
> --
> Carlos Rovira
> http://about.me/carlosrovira
>

Live Editing DataGrid example (Re: Jewel DataGrid and editable columns)

Posted by Carlos Rovira <ca...@apache.org>.
Hi Hugo,

I've done an example trying to do the live editing datagrid.

https://we.tl/t-BrViPUDncg

For now I got switching labels to text input but in editing mode something
prevents the textinput to getting edited.

Please, check if you get that to work and can provide a solution, if not
I'll try another day I have more time.

In the todomvc example that worked without problem and was a List too. In
DG each column is a List, so don't know why it is not working right now,
maybe something in DG is interfering (maybe some event like
"selectionChanged"). Another cause could be the "focus" support in browsers
that works sometimes very "strangely".

Maybe others here can take a look as well to this focus issue and know
what's happening under the hood (Piotr?, Greg?,...)

As we get it working we can integrate better in Royale and give a better
look and feel.

Thanks

-- 
Carlos Rovira
http://about.me/carlosrovira

Re: Jewel DataGrid and editable columns

Posted by Hugo Ferreira <hf...@gmail.com>.
Tested with CheckBox, RadioButton and other components without issues
except TextInput.
I already inpected the page and only moving away from <div tabindex="-1"
class="last jewel list column layout vertical viewport clipped"
style="flex: 0 0 80px; min-width: 80px; max-width: 80px; width: 80px;">
that works.
I don't know here to go now.

Then I tried a very simple use case and the same problem:

<j:initialView>
<j:View>
<j:Button text="test" click="teste()"/>
<j:DataGrid localId="dg">
<j:columns>
<j:DataGridColumn label="Col 1" dataField="Col1" align="center"/>
<j:DataGridColumn label="Col 2" itemRenderer="TestGridItemRenderer"/>
</j:columns>
</j:DataGrid>
</j:View>
</j:initialView>

private function test():void
{
var list:ArrayList = new ArrayList();
var test:Test = new Test();
test.Col1 = "aa";
test.Col2 = "bb";
list.addItem(test);
dg.dataProvider = list;
}

<?xml version="1.0" encoding="utf-8"?>
<j:DataGridItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:j="library://ns.apache.org/royale/jewel"
xmlns:js="library://ns.apache.org/royale/basic">

<j:beads>
<js:ItemRendererDataBinding/>
</j:beads>

<j:TextInput text="aaa"/>

</j:DataGridItemRenderer>

Hugo Ferreira <hf...@gmail.com> escreveu no dia segunda, 31/08/2020
à(s) 16:33:

> "I'll try to take a look as soon as possible"
> Thank you very much. Your help is more than appreciated. Meanwhile if I
> found the issue, I will report so you don't waste your time and others in
> future could find the answer.
>
> ""holiday return" effect is clearly noticeable today"
> Indeed :)
>
> Carlos Rovira <ca...@apache.org> escreveu no dia segunda,
> 31/08/2020 à(s) 16:27:
>
>> Hi Hugo,
>> I'll try to take a look as soon as possible. I'm with other tasks and as
>> well the "holiday return" effect is clearly noticeable today ;)
>>
>> El lun., 31 ago. 2020 a las 14:53, Hugo Ferreira (<hferreira.80@gmail.com
>> >)
>> escribió:
>>
>> > Hi Carlos,
>> >
>> > I alredy tried put a TextInput inside an ItemRenderer before post in the
>> > mailling list.
>> > Switch between label and textinput (as your example) showed, could be a
>> > workaround for the ItemEditor.
>> >
>> > However if I put a TextInput inside an ItemRenderer of a DataGrid
>> >  I can see the cursor blinking but the textinput is enabled but seems to
>> > be locked (I can't press any key).
>> > [image: Screenshot 2020-08-31 at 13.49.45.png]
>> > <?xml version="1.0" encoding="utf-8"?>
>> > <j:DataGridItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009"
>> > xmlns:j="library://ns.apache.org/royale/jewel"
>> > xmlns:js="library://ns.apache.org/royale/basic"
>> > xmlns:components="pt.solidsoft.framework.components.*">
>> >
>> > <fx:Script>
>> > <![CDATA[
>> > public function goToEditMode():void
>> > {
>> > lbl.visible = false;
>> > txt.visible = true;
>> > }
>> > ]]>
>> > </fx:Script>
>> >
>> > <j:beads>
>> > <js:ItemRendererDataBinding/>
>> > <j:HorizontalCenteredLayout/>
>> > </j:beads>
>> >
>> > <j:Label localId="lbl" text="Test" doubleClick="goToEditMode()"/>
>> > <j:TextInput localId="txt" text="Test" visible="false"/>
>> >
>> > </j:DataGridItemRenderer>
>> >
>> > Carlos Rovira <ca...@apache.org> escreveu no dia segunda,
>> > 31/08/2020 à(s) 10:58:
>> >
>> >> Hi Hugo,
>> >>
>> >> Unfortunately, there's no "editing" concept in Jewel DataGrid.
>> >> But on the other hand we are in Royale and not in Flex, so things
>> should
>> >> be
>> >> easier to do.
>> >> In fact, this example [1] done with a Jewel List shows you maybe have
>> all
>> >> the pieces to implement a custom cell editor yourself.
>> >>
>> >> DataGrid uses a List for every column (and a ButtonBar for the header).
>> >> So you can:
>> >>
>> >> a) create a custom DataGrid Renderer similar to the TODOMVC one (code
>> is
>> >> in
>> >> our examples/jewel/ and crux/ folders since there's 2 version one with
>> >> crux
>> >> and other without). You can dispatch events the same way todomvc
>> example
>> >> does just bubbling the event. Otherwise, you want to add some
>> controller
>> >> bead for editing.
>> >> b) you use assign the custom renderer it to your DataGrid
>> >>
>> >> if you do something that you think could be a good implementation you
>> can
>> >> share here and even contribute, and I'll (and others) be glad to help
>> you
>> >> with that.
>> >>
>> >> [1] https://royale.apache.org/todomvc-jewel
>> >>
>> >> El lun., 31 ago. 2020 a las 10:34, Hugo Ferreira (<
>> hferreira.80@gmail.com
>> >> >)
>> >> escribió:
>> >>
>> >> > Thank you.
>> >> > I will wait for Carlos feedback.
>> >> >
>> >> > Greg Dove <gr...@gmail.com> escreveu no dia domingo, 30/08/2020
>> >> à(s)
>> >> > 23:14:
>> >> >
>> >> > > Carlos can provide more details I am sure, but I know that Jewel
>> >> DataGrid
>> >> > > is in progressive development and represents work-in-progress.
>> >> > > At the moment I don't consider that Flex-like itemEditors are
>> >> supported,
>> >> > > but I expect it is intended to be in the future.
>> >> > >
>> >> > >
>> >> > >
>> >> > > On Mon, Aug 31, 2020 at 10:07 AM Hugo Ferreira <
>> >> hferreira.80@gmail.com>
>> >> > > wrote:
>> >> > >
>> >> > > > Hello,
>> >> > > >
>> >> > > > I continue my jorney on Royale with Jewel and I started now with
>> >> > DataGrid
>> >> > > > component.
>> >> > > > I'm facing an issue that I can't see how to edit an item inside
>> the
>> >> > > > selected row: Label becames an editable component like TextInput.
>> >> > > > This is a very, very important feature of a DataGrid.
>> >> > > >
>> >> > > > This is not supported right now or I'm doing something wrong ?
>> >> > > >
>> >> > > > Thank you,
>> >> > > > Hugo.
>> >> > > >
>> >> > >
>> >> >
>> >>
>> >>
>> >> --
>> >> Carlos Rovira
>> >> http://about.me/carlosrovira
>> >>
>> >
>>
>> --
>> Carlos Rovira
>> http://about.me/carlosrovira
>>
>

Re: Jewel DataGrid and editable columns

Posted by Hugo Ferreira <hf...@gmail.com>.
"I'll try to take a look as soon as possible"
Thank you very much. Your help is more than appreciated. Meanwhile if I
found the issue, I will report so you don't waste your time and others in
future could find the answer.

""holiday return" effect is clearly noticeable today"
Indeed :)

Carlos Rovira <ca...@apache.org> escreveu no dia segunda, 31/08/2020
à(s) 16:27:

> Hi Hugo,
> I'll try to take a look as soon as possible. I'm with other tasks and as
> well the "holiday return" effect is clearly noticeable today ;)
>
> El lun., 31 ago. 2020 a las 14:53, Hugo Ferreira (<hferreira.80@gmail.com
> >)
> escribió:
>
> > Hi Carlos,
> >
> > I alredy tried put a TextInput inside an ItemRenderer before post in the
> > mailling list.
> > Switch between label and textinput (as your example) showed, could be a
> > workaround for the ItemEditor.
> >
> > However if I put a TextInput inside an ItemRenderer of a DataGrid
> >  I can see the cursor blinking but the textinput is enabled but seems to
> > be locked (I can't press any key).
> > [image: Screenshot 2020-08-31 at 13.49.45.png]
> > <?xml version="1.0" encoding="utf-8"?>
> > <j:DataGridItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009"
> > xmlns:j="library://ns.apache.org/royale/jewel"
> > xmlns:js="library://ns.apache.org/royale/basic"
> > xmlns:components="pt.solidsoft.framework.components.*">
> >
> > <fx:Script>
> > <![CDATA[
> > public function goToEditMode():void
> > {
> > lbl.visible = false;
> > txt.visible = true;
> > }
> > ]]>
> > </fx:Script>
> >
> > <j:beads>
> > <js:ItemRendererDataBinding/>
> > <j:HorizontalCenteredLayout/>
> > </j:beads>
> >
> > <j:Label localId="lbl" text="Test" doubleClick="goToEditMode()"/>
> > <j:TextInput localId="txt" text="Test" visible="false"/>
> >
> > </j:DataGridItemRenderer>
> >
> > Carlos Rovira <ca...@apache.org> escreveu no dia segunda,
> > 31/08/2020 à(s) 10:58:
> >
> >> Hi Hugo,
> >>
> >> Unfortunately, there's no "editing" concept in Jewel DataGrid.
> >> But on the other hand we are in Royale and not in Flex, so things should
> >> be
> >> easier to do.
> >> In fact, this example [1] done with a Jewel List shows you maybe have
> all
> >> the pieces to implement a custom cell editor yourself.
> >>
> >> DataGrid uses a List for every column (and a ButtonBar for the header).
> >> So you can:
> >>
> >> a) create a custom DataGrid Renderer similar to the TODOMVC one (code is
> >> in
> >> our examples/jewel/ and crux/ folders since there's 2 version one with
> >> crux
> >> and other without). You can dispatch events the same way todomvc example
> >> does just bubbling the event. Otherwise, you want to add some controller
> >> bead for editing.
> >> b) you use assign the custom renderer it to your DataGrid
> >>
> >> if you do something that you think could be a good implementation you
> can
> >> share here and even contribute, and I'll (and others) be glad to help
> you
> >> with that.
> >>
> >> [1] https://royale.apache.org/todomvc-jewel
> >>
> >> El lun., 31 ago. 2020 a las 10:34, Hugo Ferreira (<
> hferreira.80@gmail.com
> >> >)
> >> escribió:
> >>
> >> > Thank you.
> >> > I will wait for Carlos feedback.
> >> >
> >> > Greg Dove <gr...@gmail.com> escreveu no dia domingo, 30/08/2020
> >> à(s)
> >> > 23:14:
> >> >
> >> > > Carlos can provide more details I am sure, but I know that Jewel
> >> DataGrid
> >> > > is in progressive development and represents work-in-progress.
> >> > > At the moment I don't consider that Flex-like itemEditors are
> >> supported,
> >> > > but I expect it is intended to be in the future.
> >> > >
> >> > >
> >> > >
> >> > > On Mon, Aug 31, 2020 at 10:07 AM Hugo Ferreira <
> >> hferreira.80@gmail.com>
> >> > > wrote:
> >> > >
> >> > > > Hello,
> >> > > >
> >> > > > I continue my jorney on Royale with Jewel and I started now with
> >> > DataGrid
> >> > > > component.
> >> > > > I'm facing an issue that I can't see how to edit an item inside
> the
> >> > > > selected row: Label becames an editable component like TextInput.
> >> > > > This is a very, very important feature of a DataGrid.
> >> > > >
> >> > > > This is not supported right now or I'm doing something wrong ?
> >> > > >
> >> > > > Thank you,
> >> > > > Hugo.
> >> > > >
> >> > >
> >> >
> >>
> >>
> >> --
> >> Carlos Rovira
> >> http://about.me/carlosrovira
> >>
> >
>
> --
> Carlos Rovira
> http://about.me/carlosrovira
>

Re: Jewel DataGrid and editable columns

Posted by Carlos Rovira <ca...@apache.org>.
Hi Hugo,
I'll try to take a look as soon as possible. I'm with other tasks and as
well the "holiday return" effect is clearly noticeable today ;)

El lun., 31 ago. 2020 a las 14:53, Hugo Ferreira (<hf...@gmail.com>)
escribió:

> Hi Carlos,
>
> I alredy tried put a TextInput inside an ItemRenderer before post in the
> mailling list.
> Switch between label and textinput (as your example) showed, could be a
> workaround for the ItemEditor.
>
> However if I put a TextInput inside an ItemRenderer of a DataGrid
>  I can see the cursor blinking but the textinput is enabled but seems to
> be locked (I can't press any key).
> [image: Screenshot 2020-08-31 at 13.49.45.png]
> <?xml version="1.0" encoding="utf-8"?>
> <j:DataGridItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009"
> xmlns:j="library://ns.apache.org/royale/jewel"
> xmlns:js="library://ns.apache.org/royale/basic"
> xmlns:components="pt.solidsoft.framework.components.*">
>
> <fx:Script>
> <![CDATA[
> public function goToEditMode():void
> {
> lbl.visible = false;
> txt.visible = true;
> }
> ]]>
> </fx:Script>
>
> <j:beads>
> <js:ItemRendererDataBinding/>
> <j:HorizontalCenteredLayout/>
> </j:beads>
>
> <j:Label localId="lbl" text="Test" doubleClick="goToEditMode()"/>
> <j:TextInput localId="txt" text="Test" visible="false"/>
>
> </j:DataGridItemRenderer>
>
> Carlos Rovira <ca...@apache.org> escreveu no dia segunda,
> 31/08/2020 à(s) 10:58:
>
>> Hi Hugo,
>>
>> Unfortunately, there's no "editing" concept in Jewel DataGrid.
>> But on the other hand we are in Royale and not in Flex, so things should
>> be
>> easier to do.
>> In fact, this example [1] done with a Jewel List shows you maybe have all
>> the pieces to implement a custom cell editor yourself.
>>
>> DataGrid uses a List for every column (and a ButtonBar for the header).
>> So you can:
>>
>> a) create a custom DataGrid Renderer similar to the TODOMVC one (code is
>> in
>> our examples/jewel/ and crux/ folders since there's 2 version one with
>> crux
>> and other without). You can dispatch events the same way todomvc example
>> does just bubbling the event. Otherwise, you want to add some controller
>> bead for editing.
>> b) you use assign the custom renderer it to your DataGrid
>>
>> if you do something that you think could be a good implementation you can
>> share here and even contribute, and I'll (and others) be glad to help you
>> with that.
>>
>> [1] https://royale.apache.org/todomvc-jewel
>>
>> El lun., 31 ago. 2020 a las 10:34, Hugo Ferreira (<hferreira.80@gmail.com
>> >)
>> escribió:
>>
>> > Thank you.
>> > I will wait for Carlos feedback.
>> >
>> > Greg Dove <gr...@gmail.com> escreveu no dia domingo, 30/08/2020
>> à(s)
>> > 23:14:
>> >
>> > > Carlos can provide more details I am sure, but I know that Jewel
>> DataGrid
>> > > is in progressive development and represents work-in-progress.
>> > > At the moment I don't consider that Flex-like itemEditors are
>> supported,
>> > > but I expect it is intended to be in the future.
>> > >
>> > >
>> > >
>> > > On Mon, Aug 31, 2020 at 10:07 AM Hugo Ferreira <
>> hferreira.80@gmail.com>
>> > > wrote:
>> > >
>> > > > Hello,
>> > > >
>> > > > I continue my jorney on Royale with Jewel and I started now with
>> > DataGrid
>> > > > component.
>> > > > I'm facing an issue that I can't see how to edit an item inside the
>> > > > selected row: Label becames an editable component like TextInput.
>> > > > This is a very, very important feature of a DataGrid.
>> > > >
>> > > > This is not supported right now or I'm doing something wrong ?
>> > > >
>> > > > Thank you,
>> > > > Hugo.
>> > > >
>> > >
>> >
>>
>>
>> --
>> Carlos Rovira
>> http://about.me/carlosrovira
>>
>

-- 
Carlos Rovira
http://about.me/carlosrovira

Re: Jewel DataGrid and editable columns

Posted by Hugo Ferreira <hf...@gmail.com>.
Hi Carlos,

I alredy tried put a TextInput inside an ItemRenderer before post in the
mailling list.
Switch between label and textinput (as your example) showed, could be a
workaround for the ItemEditor.

However if I put a TextInput inside an ItemRenderer of a DataGrid
 I can see the cursor blinking but the textinput is enabled but seems to be
locked (I can't press any key).
[image: Screenshot 2020-08-31 at 13.49.45.png]
<?xml version="1.0" encoding="utf-8"?>
<j:DataGridItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:j="library://ns.apache.org/royale/jewel"
xmlns:js="library://ns.apache.org/royale/basic"
xmlns:components="pt.solidsoft.framework.components.*">

<fx:Script>
<![CDATA[
public function goToEditMode():void
{
lbl.visible = false;
txt.visible = true;
}
]]>
</fx:Script>

<j:beads>
<js:ItemRendererDataBinding/>
<j:HorizontalCenteredLayout/>
</j:beads>

<j:Label localId="lbl" text="Test" doubleClick="goToEditMode()"/>
<j:TextInput localId="txt" text="Test" visible="false"/>

</j:DataGridItemRenderer>

Carlos Rovira <ca...@apache.org> escreveu no dia segunda, 31/08/2020
à(s) 10:58:

> Hi Hugo,
>
> Unfortunately, there's no "editing" concept in Jewel DataGrid.
> But on the other hand we are in Royale and not in Flex, so things should be
> easier to do.
> In fact, this example [1] done with a Jewel List shows you maybe have all
> the pieces to implement a custom cell editor yourself.
>
> DataGrid uses a List for every column (and a ButtonBar for the header).
> So you can:
>
> a) create a custom DataGrid Renderer similar to the TODOMVC one (code is in
> our examples/jewel/ and crux/ folders since there's 2 version one with crux
> and other without). You can dispatch events the same way todomvc example
> does just bubbling the event. Otherwise, you want to add some controller
> bead for editing.
> b) you use assign the custom renderer it to your DataGrid
>
> if you do something that you think could be a good implementation you can
> share here and even contribute, and I'll (and others) be glad to help you
> with that.
>
> [1] https://royale.apache.org/todomvc-jewel
>
> El lun., 31 ago. 2020 a las 10:34, Hugo Ferreira (<hferreira.80@gmail.com
> >)
> escribió:
>
> > Thank you.
> > I will wait for Carlos feedback.
> >
> > Greg Dove <gr...@gmail.com> escreveu no dia domingo, 30/08/2020 à(s)
> > 23:14:
> >
> > > Carlos can provide more details I am sure, but I know that Jewel
> DataGrid
> > > is in progressive development and represents work-in-progress.
> > > At the moment I don't consider that Flex-like itemEditors are
> supported,
> > > but I expect it is intended to be in the future.
> > >
> > >
> > >
> > > On Mon, Aug 31, 2020 at 10:07 AM Hugo Ferreira <hferreira.80@gmail.com
> >
> > > wrote:
> > >
> > > > Hello,
> > > >
> > > > I continue my jorney on Royale with Jewel and I started now with
> > DataGrid
> > > > component.
> > > > I'm facing an issue that I can't see how to edit an item inside the
> > > > selected row: Label becames an editable component like TextInput.
> > > > This is a very, very important feature of a DataGrid.
> > > >
> > > > This is not supported right now or I'm doing something wrong ?
> > > >
> > > > Thank you,
> > > > Hugo.
> > > >
> > >
> >
>
>
> --
> Carlos Rovira
> http://about.me/carlosrovira
>

Re: Jewel DataGrid and editable columns

Posted by Carlos Rovira <ca...@apache.org>.
Hi Hugo,

Unfortunately, there's no "editing" concept in Jewel DataGrid.
But on the other hand we are in Royale and not in Flex, so things should be
easier to do.
In fact, this example [1] done with a Jewel List shows you maybe have all
the pieces to implement a custom cell editor yourself.

DataGrid uses a List for every column (and a ButtonBar for the header).
So you can:

a) create a custom DataGrid Renderer similar to the TODOMVC one (code is in
our examples/jewel/ and crux/ folders since there's 2 version one with crux
and other without). You can dispatch events the same way todomvc example
does just bubbling the event. Otherwise, you want to add some controller
bead for editing.
b) you use assign the custom renderer it to your DataGrid

if you do something that you think could be a good implementation you can
share here and even contribute, and I'll (and others) be glad to help you
with that.

[1] https://royale.apache.org/todomvc-jewel

El lun., 31 ago. 2020 a las 10:34, Hugo Ferreira (<hf...@gmail.com>)
escribió:

> Thank you.
> I will wait for Carlos feedback.
>
> Greg Dove <gr...@gmail.com> escreveu no dia domingo, 30/08/2020 à(s)
> 23:14:
>
> > Carlos can provide more details I am sure, but I know that Jewel DataGrid
> > is in progressive development and represents work-in-progress.
> > At the moment I don't consider that Flex-like itemEditors are supported,
> > but I expect it is intended to be in the future.
> >
> >
> >
> > On Mon, Aug 31, 2020 at 10:07 AM Hugo Ferreira <hf...@gmail.com>
> > wrote:
> >
> > > Hello,
> > >
> > > I continue my jorney on Royale with Jewel and I started now with
> DataGrid
> > > component.
> > > I'm facing an issue that I can't see how to edit an item inside the
> > > selected row: Label becames an editable component like TextInput.
> > > This is a very, very important feature of a DataGrid.
> > >
> > > This is not supported right now or I'm doing something wrong ?
> > >
> > > Thank you,
> > > Hugo.
> > >
> >
>


-- 
Carlos Rovira
http://about.me/carlosrovira

Re: Jewel DataGrid and editable columns

Posted by Hugo Ferreira <hf...@gmail.com>.
Thank you.
I will wait for Carlos feedback.

Greg Dove <gr...@gmail.com> escreveu no dia domingo, 30/08/2020 à(s)
23:14:

> Carlos can provide more details I am sure, but I know that Jewel DataGrid
> is in progressive development and represents work-in-progress.
> At the moment I don't consider that Flex-like itemEditors are supported,
> but I expect it is intended to be in the future.
>
>
>
> On Mon, Aug 31, 2020 at 10:07 AM Hugo Ferreira <hf...@gmail.com>
> wrote:
>
> > Hello,
> >
> > I continue my jorney on Royale with Jewel and I started now with DataGrid
> > component.
> > I'm facing an issue that I can't see how to edit an item inside the
> > selected row: Label becames an editable component like TextInput.
> > This is a very, very important feature of a DataGrid.
> >
> > This is not supported right now or I'm doing something wrong ?
> >
> > Thank you,
> > Hugo.
> >
>

Re: Jewel DataGrid and editable columns

Posted by Greg Dove <gr...@gmail.com>.
Carlos can provide more details I am sure, but I know that Jewel DataGrid
is in progressive development and represents work-in-progress.
At the moment I don't consider that Flex-like itemEditors are supported,
but I expect it is intended to be in the future.



On Mon, Aug 31, 2020 at 10:07 AM Hugo Ferreira <hf...@gmail.com>
wrote:

> Hello,
>
> I continue my jorney on Royale with Jewel and I started now with DataGrid
> component.
> I'm facing an issue that I can't see how to edit an item inside the
> selected row: Label becames an editable component like TextInput.
> This is a very, very important feature of a DataGrid.
>
> This is not supported right now or I'm doing something wrong ?
>
> Thank you,
> Hugo.
>