Grid column options (Sortable, Sizable)

Use this board to ask questions or have discussions with other Rich Displays users.
Post Reply
miker52
New User
Posts: 4
Joined: Tue Jun 21, 2016 12:31 pm
First Name: Mike
Last Name: Rahn
Company Name: MARCC
Contact:

Grid column options (Sortable, Sizable)

Post by miker52 »

Just now getting my feet wet with this package and doing my 1st Rich Display so excuse me if this has been answered or in documents (i have searched and did not find any).

Anyway, i have used the sortable column feature and found there is no option to turn off the sortable column when persist is on? i would think this should be an option in addition to sort ascending and sort descending (i.e. no sort)?

On the sizeable column, i notice this does not size just the column you are trying to size but the adjacent column. I was expecting the whole grid to stay the same size except for column i am trying to size. I am sure this may have something to do with how grid columns are defined and documented "somewhere" but I thought i would act like my customers and just ask :-).

Thank you
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: Grid column options (Sortable, Sizable)

Post by Scott Klement »

If I understand you correctly, you are saying that if you set 'persist state' = true, and 'sortable columns' = false, it still lets you sort the columns?

Sorry that 'resizable columns' doesn't work the way you expected. This is the way we designed it, but I certainly understand that different people may have other opinions of how it should work. I'd be interested to hear how you think it should work... we can discuss it amongst our staff and decide if we'd like to invest in changing it or not.
miker52
New User
Posts: 4
Joined: Tue Jun 21, 2016 12:31 pm
First Name: Mike
Last Name: Rahn
Company Name: MARCC
Contact:

Re: Grid column options (Sortable, Sizable)

Post by miker52 »

Scott,

Thanks for the prompt reply.

As for sortable columns, I have them set for true with persist on. Once i have selected a column to be sortable, i cannot turn it off as there is no option on the user screen (after compile and placed into production) to turn off "all" (or column specific) sorting that has been selected to be sorted. Because of this, when i reload the data, it comes in based on the column sort criteria previously selected by the user. I would like to see and option to have a no sort on a right click on the column.

I like the persist as if a user moves/resizes columns it will keep that

I would like to see this so the user can get their information the way is was intended from the design if they wanted to "reset" their preferences.
miker52
New User
Posts: 4
Joined: Tue Jun 21, 2016 12:31 pm
First Name: Mike
Last Name: Rahn
Company Name: MARCC
Contact:

Re: Grid column options (Sortable, Sizable)

Post by miker52 »

Scott,

As far as column resizing, i think this should work just like an excel spreadsheet where if you expand/reduce a column, everything to the right "moves" right/left the number of pixels the column you are resizing and keeps there original column width.
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: Grid column options (Sortable, Sizable)

Post by Scott Klement »

Mike,

You can add your own option to stop the sort from persisting. We provide an API called clearState() that you can call to remove the saved value for a given attribute.

So for example, if you don't want sortable columns to persist between screen displays, you could put the following in your screen's "onsubmit" event:

Code: Select all

getObj("MyGrid").grid.clearState("sort");
The grid with an "id" attribute of "MyGrid" will clear it's persistent setting for sorting when the screen is submitted, so the next time it displays the sort sequence won't persist. More info on this API is found here:
http://www.profoundlogic.com/docs/pages ... d=17432578

Thanks for the info on the column resizing. We will think about this. If you're interested, you can file an official Feature Request by e-mailing support@profoundlogic.com
miker52
New User
Posts: 4
Joined: Tue Jun 21, 2016 12:31 pm
First Name: Mike
Last Name: Rahn
Company Name: MARCC
Contact:

Re: Grid column options (Sortable, Sizable)

Post by miker52 »

Scott,

Many Thanks. That appears to have done the trick.

I wish it was more configurable thru the properties (i.e. each component had it's own persist option) but this gets the job done.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests