Selection background question

Use this board to ask questions or have discussions with other Rich Displays users.
Post Reply
pmWaser
New User
Posts: 2
Joined: Tue Jan 27, 2015 8:19 am
First Name: Peter
Last Name: Meier
Company Name: Waser
State / Province: Outside Canada/USA
Country: Switzerland

Selection background question

Post 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.
Antonio
Profound User
Posts: 82
Joined: Fri Jun 29, 2012 2:33 pm
First Name: Antonio
Last Name: Ruballos
Company Name: Profound Logic
Contact:

Re: Selection background question

Post 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.
pmWaser
New User
Posts: 2
Joined: Tue Jan 27, 2015 8:19 am
First Name: Peter
Last Name: Meier
Company Name: Waser
State / Province: Outside Canada/USA
Country: Switzerland

Re: Selection background question

Post 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
Antonio
Profound User
Posts: 82
Joined: Fri Jun 29, 2012 2:33 pm
First Name: Antonio
Last Name: Ruballos
Company Name: Profound Logic
Contact:

Re: Selection background question

Post 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.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests