ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
Grid not updating
Title:
B
I
{code}
?
Hi, we created a simple website with a login page and a main page containing a grid connected to a SQL db. The grid in the main page due the connected db is updated with differents data for each user... the issue is when we try to login with several users at the sime time, from different web browsers and different machines, each with just one user to login, the grid in the main page mantains the data from the user who first logged in. Ofcourse the sessionID and the user are different each time (we managed to show them on the main page), and the project is not in debug mode. We use IIS 10 on windows server 2019.
Save Changes
Cancel
Giovanni EQL
asked at 09 Sep 2022
the grid is showing the data that it is being provided with, you would have the same problem if you would use a `@for` loop instead
at 09 Sep 2022
Omu
What do you mean? The code that takes the data from the database is fired only one time... that's the problem.
at 09 Sep 2022
Giovanni EQL
If you modify the view code, instead of `@Html.Awe().Grid` try to use a `@for` loop, you can try that and see if you have the same problem. The grid will either call the `DataFunc` or the `Url` on page load, depends what you've defined.
at 09 Sep 2022
Omu
OK I tried to use the loop, but the problem persists. The controller is called from the table, but the data model is not fired again. Maybe i'm missing something?
at 09 Sep 2022
Giovanni EQL
ok, since you're having the same problem with a simple loop, that means the problem is not related to the awesome grid, but to your custom code, only devs who have access your codebase will be able to fix this
at 09 Sep 2022
Omu
Ok, thank you for your help. We managed to fix it by reloading the model when needed.
at 09 Sep 2022
Giovanni EQL
Answers
please
Sign In
to leave an answer
By accessing this site, you agree to store cookies on your device and disclose information in accordance with our
cookie policy
and
privacy policy
.
OK