Data Grid

Forum to discuss the new web client version of Servoy.

Data Grid

Postby hovw » Fri Jan 10, 2020 12:40 am

For the Data Grid
You can use onCellClick, onCellDoubleClick, onCellRightClick, onColumnDataChange

My Question is the a way to use a onColumnFocusLost.

reason;
Grid with 4 editable columns for data and 2 editable column for control.
After insert the data into column 0 - 3 with tab as navigation to column4 "control" next "tab" launch methode to make a new record "row".
This works with onColumnDataChange, but it is an extra key / click.

code for onColumnDataChange.

function onColumnDataChange(foundsetindex, columnindex, oldvalue, newvalue) {
switch(columnindex)
{
case 6:
onClickNew();
break

default:
}

return;

question 2
To make the tabel nice how to ad an image "button to a column
OSX 10.9.5 - 10.15.1
hovw
 
Posts: 33
Joined: Wed Nov 04, 2009 10:41 pm

Re: Data Grid

Postby Gabi Boros » Wed Jan 22, 2020 5:24 pm

you kind of want 'focus/focuslost' callbacks on the cell's right? please create a case for this.
as for the image, you could add icons from bootstrap/font awesome using the styleClass attribute (like: glyphicon glyphicon-plus) or
you can also show images from media, using showAs attribute with 'html', and having something like this as dataprovider: <html><img src=\"media:///plus.png\"</html>
Gabi Boros
Servoy
Gabi Boros
 
Posts: 399
Joined: Tue Jun 26, 2007 4:03 pm
Location: Timisoara, Romania


Return to Servoy NGClient

Who is online

Users browsing this forum: No registered users and 6 guests