Page 1 of 1

Selection background question

Posted: Wed Aug 05, 2015 10:37 am
by pmWaser
Hello

Is it possible in a database driven grid to activate the setting selection background on a row click ?

Thank you very much for your answer in advance.

Peter.

Re: Selection background question

Posted: Fri Aug 07, 2015 2:13 pm
by Antonio
It looks like currently row selection is not possible with a database driven grid. It might be possible with some javascript code in the onclick event of the row. But perhaps if we got a better idea of what you are trying to do and why you need this, there might be another option better suited for you.

Re: Selection background question

Posted: Mon Aug 10, 2015 5:29 am
by pmWaser
Hi Antonio

Thanks for your answer.

We do the following:
1. In a grid, we click on a row (one left mouse click).
2. Now the row is not marked (the user does not see which row was selected). In our opinion, the row should be marked.
3. Then we push the button edit to change the selected record. This works fine.

If there is a way to mark the row without using a javascript code, we would appreciate it.

Thank you in advance for your input.

Peter

Re: Selection background question

Posted: Tue Aug 18, 2015 8:43 pm
by Antonio
You could make it so that clicking on a row automatically clicks on the edit button. The onrowclick event would allow for this, you would call pui.click in the onrowclick event of the subfile grid and pass it the appropriate id of the edit button.

If the edit button you are referring to is inside of the subfile, you would have to do something like this in the onrowclick event of the grid:

pui.click("ButtonID." + row);

where ButtonID is the id of the button. If the button is not inside of the subfile you would simply do:

pui.click("ButtonID");

Let me know if this makes sense or not.