Custom cell editor in Ng Grid

Forum to discuss the new web client version of Servoy.

Custom cell editor in Ng Grid

Postby pitc » Sat Dec 05, 2020 5:24 am

I have been experimenting with the grid and in particular a column where the edit type is Form and have set up the form as one field : a textarea.
I can get the form to popup over the grid column but the content is not as I want it to be.
What I want is the current value of the column data provider in the form and after edits to put the value back into the data provider.
Currently I thought it was sufficient to copy the current value to the edit form variable.
However this is not working - no data at all.
In the documentation there is mention of a custom cell editor and I tried to follow the wiki documentation but it is unclear to me.
I do get the onColumnFormEditStarted method with all the information but I am not sure how to get the column value to the edit form.
Also I do not understand where the setFormEditorValue method has to be used to save the edited value back.
Is there better explanation anywhere ?
Tom
Tom
prospect-saas.com
pitc
 
Posts: 88
Joined: Thu Nov 14, 2019 2:22 pm
Location: Ottawa, Ontario, Canada

Re: Custom cell editor in Ng Grid

Postby pitc » Wed Jan 06, 2021 4:05 pm

Has anyone got an example code snippet to share for custom cell editor?
Tom
prospect-saas.com
pitc
 
Posts: 88
Joined: Thu Nov 14, 2019 2:22 pm
Location: Ottawa, Ontario, Canada


Return to Servoy NGClient

Who is online

Users browsing this forum: No registered users and 1 guest