getObj("Grid1").grid.render();

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:

getObj("Grid1").grid.render();

Post by robhathome2 »

Hi

I have a grid that I wanted to set the number of visible rows for. At first I was using just getObj("sfl3").grid.setNumberOfRows(get("total_rows")). This resulted in me not getting the entered data in the grid row back. I then read about having to have getObj("sfl3").grid.render(); to ensure it re-rendered correctly. Now I don't get the data back and I also get Onload Error: Object [object Object] has no method 'render' in Chrome. In IE I get no such error but when using either I don't get the entered data back.

As soon as I take off the onload js to set the number of rows and render I get the data back perfectly.

Am I doing something wrong?

Thanks

Rob.
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: getObj("Grid1").grid.render();

Post by Scott Klement »

The render() feature was added in ProfoundUI 4.1.2. Can you make sure that you're running that release (or newer)?

Also, be sure that you've cleared your browser cache in Chrome, to make sure you don't have an older version that has been cached.

If that doesn't help, we'll need to investigate further, so please let me know.
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: getObj("Grid1").grid.render();

Post by robhathome2 »

Hi Scott

Cache cleared and that resolved the error dialogue. However, the read back still returns the original data in the field, not the modified value irrespective of IE or Chrome.

What do you need from me?

Regards

Rob.
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: getObj("Grid1").grid.render();

Post by Scott Klement »

What we'll need is a way to reproduce the problem on our development box where we can troubleshoot the problem further. I'll have someone from our support team contact you.
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: getObj("Grid1").grid.render();

Post by robhathome2 »

Thanks Scott

If it helps we can always do it on teamviewer or whatever Profound's preference is.

Rob.
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: getObj("Grid1").grid.render();

Post by robhathome2 »

For all those looking at setting the number of rows and then rendering it was a bug - now fixed in release 4.2.2. Thanks for the speedy remedy Profound.

One tip - when you set the number of rows and you have a header, the header counts as a row so you'll need to set it to the number of "subfile records" + 1 if the grid has a header.

Regards

Rob.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests