It is very nice that users can hide/show columns, change their sequence, apply an order by to suit their needs, but HOW do we store these customizations? Offcourse i can create a table with user-id and all possible settings, but i have not yet found an API to detect these actions by users. Is there such API? If yes, what information do i get? If not, then i can not use these very userful options because users will not be pleased to do the customization everytime again.

asked 04 Sep '15, 04:12

Jan%20Willem%20Vermeer's gravatar image

Jan Willem V...
1231331
accept rate: 0%


Hi Jan,

You can get and set the state of the Grid component using Formspider API's. This article explains how to use these Formspider API's.

Kind Regards, Yalim

link

answered 04 Sep '15, 06:54

Yalim%20Gerger's gravatar image

Yalim Gerger ♦♦
1.8k5
accept rate: 15%

edited 04 Sep '15, 06:54

Thanks for your quick reply Yalim.

Offcourse i already studied that article :)

The problem is that i can not find the "trigger" indicating that a user is modifying the settings. Offcourse i can get the state of the grid every time the user performs a query, but that will lead to overload. In your example you use a button to store the settings, but why? That is no logical action to me so users will certainly forget that. I want to store the grid immediately after (and only after) a user has done such customization and when the user visits the page again, his settings are automatically restored. Without buttons.

Kind regards, Jan Willem

link

answered 04 Sep '15, 07:55

Jan%20Willem%20Vermeer's gravatar image

Jan Willem V...
1231331
accept rate: 0%

Hi Jan,

Yes, current implementation requires a Save action from the user. There is no special event firing each time the user changes the grid state. There can be but there is not. Overall. I don't think it is a terrible idea to let the user to decide to save the state of a grid. Very often I find myself doing changes to grids that I don't want to keep permanently.

The grid would stay modified until the user logs out though. It would resume to its original state the next time the user logs in. So for the duration of the session any modified grid would not change if this is what you are worrying about.

Kind Regards, Yalim

link

answered 04 Sep '15, 08:05

Yalim%20Gerger's gravatar image

Yalim Gerger ♦♦
1.8k5
accept rate: 15%

Hi Yalim,

some users will use the application every day, but some of them will only use it once per month or more. So they log in again every time.

It's a pity that there is no trigger... I will have a look to make something on my own by checking the grid at the time the user quits the application. Although he will probably have many tabs activated by then...

Kind regards, JW

link

answered 04 Sep '15, 08:44

Jan%20Willem%20Vermeer's gravatar image

Jan Willem V...
1231331
accept rate: 0%

Hi Jan,

Yes, that's a great idea actually. You should be able to do this in the close event of the application. Smart. :-)

Kind Regards,
Yalim

(04 Sep '15, 08:54) Yalim Gerger ♦♦
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×16
×4

Asked: 04 Sep '15, 04:12

Seen: 1,001 times

Last updated: 04 Sep '15, 08:54


© Copyright Gerger 2017