applyProperty to a grid textbox not in view

Use this board to ask questions or have discussions with other Rich Displays users.
Post Reply
robhathome2
Profound User
Posts: 42
Joined: Mon Jun 27, 2011 9:11 am
First Name: Rob
Last Name: Horton
Company Name: Design Group Plc
Contact:

applyProperty to a grid textbox not in view

Post by robhathome2 »

Hi

I have a 13 line grid with various textboxes, 2 of them containing a price and a number of cases. When either of these textboxes are changed, the onchange event fires, we add up the new totals, calc margins etc. and change the border of the textbox (to emphasize) so the user sees a visual confirmation that they have changed it. In addition, when the grid is initially displayed, we fire the summarising routine and it runs through every grid row (using getDataValue etc.), calculates everything and emphasizes either of the texboxes that have been changed from their original values (also shown on the grid). This emphasizing works great for the 13 rows on display but doesn't work for any row not displayed. Does anyone know if applyProperty doesn't work if the grid field is not in view? I have added an applyProperty(myfield, "field type", "textbox") just in case a re-rendering resolved it to no avail.

Thanks in anticipation.
Scott Klement
Experienced User
Posts: 2711
Joined: Wed Aug 01, 2012 8:58 am
First Name: Scott
Last Name: Klement
Company Name: Profound Logic
City: Milwaukee
State / Province: Wisconsin

Re: applyProperty to a grid textbox not in view

Post by Scott Klement »

It will not work wth boxes that have not yet been on the display (since the screen was sent from the program last). Profound UI does not create the HTML elements for grid rows until they are paged onto the screen... as such you will not be able to change their borders, since the elements do not yet exist.

After the user has paged them onto the screen, you can change them.
robhathome2
Profound User
Posts: 42
Joined: Mon Jun 27, 2011 9:11 am
First Name: Rob
Last Name: Horton
Company Name: Design Group Plc
Contact:

Re: applyProperty to a grid textbox not in view

Post by robhathome2 »

Thanks Scott - I'll change the way I'm doing it and set it before sending it to the grid.
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests