Dynamic Column Selection

Use this board to ask questions or have discussions with other Rich Displays users.
Post Reply
ppbedz
Experienced User
Posts: 147
Joined: Tue Jun 17, 2014 4:00 pm
First Name: Patti
Last Name: Bednarz
Company Name: McGard
State / Province: New York
Country: United States
Contact:

Dynamic Column Selection

Post by ppbedz »

Is there any way to dynamically set the grid columns? It does not appear that you can bind a field to number of columns or column size. I wanted to resize my grid columns based on user input.

Example: I want the user to see standard comments for vendor and/or item number. If the vendor number is specified as input, they really don't need to see a column with the vendor number (same for item). I only want to show those columns if they have requested "all" vendors or "all" items. Even "group suppression" would be nice.

Thank you, Patti
ppbedz
Experienced User
Posts: 147
Joined: Tue Jun 17, 2014 4:00 pm
First Name: Patti
Last Name: Bednarz
Company Name: McGard
State / Province: New York
Country: United States
Contact:

Re: Dynamic Column Selection

Post by ppbedz »

I just discovered the removecolumn method. It works, however I would like to conditionally remove several columns. Is there a way, for example to remove columns 2-4 ? Also, how would I put them back? I was thinking I would code the "onload" to show whatever columns pertain to the user's selections..... ?
SeanTyree
Profound User
Posts: 76
Joined: Fri Jan 11, 2013 6:11 pm
First Name: Sean
Last Name: Tyree
Company Name: US HealthWorks
State / Province: California
Zip / Postal Code: 91355
Country: United States
Contact:

Re: Dynamic Column Selection

Post by SeanTyree »

Patti,
You might try resizing the columns that you don't want to display to 0px width. This effectively hides the columns but would allow you to redisplay them by re-setting the width.

Sean
ppbedz
Experienced User
Posts: 147
Joined: Tue Jun 17, 2014 4:00 pm
First Name: Patti
Last Name: Bednarz
Company Name: McGard
State / Province: New York
Country: United States
Contact:

Re: Dynamic Column Selection

Post by ppbedz »

Thank you, Sean. I have everything working now. Have a nice weekend! - Patti
Post Reply

Who is online

Users browsing this forum: No registered users and 9 guests