How to prevent a clickable cell in a grid refreshing the whole grid - Printable Version +- Atozed Forums (https://www.atozed.com/forums) +-- Forum: Atozed Software Products (https://www.atozed.com/forums/forum-1.html) +--- Forum: IntraWeb (https://www.atozed.com/forums/forum-3.html) +---- Forum: English (https://www.atozed.com/forums/forum-16.html) +----- Forum: IntraWeb General Discussion (https://www.atozed.com/forums/forum-4.html) +----- Thread: How to prevent a clickable cell in a grid refreshing the whole grid (/thread-648.html) |
How to prevent a clickable cell in a grid refreshing the whole grid - Ian_F1 - 09-10-2018 Hi, It would seem that clicking on a clickable cell in a TIWGrid causes the whole Grid to get refreshed. How do I stop this occurring? Here's how to see my issue:
Code: procedure TIWForm1.IWAppFormCreate(Sender: TObject); (NOTE: The only reason to add so many rows is so you get a scrollbar) Now run the application and open the browser and scroll down to the bottom of the grid and then click on a cell. The grid will scroll back to the first row which to me makes me think it's been completely refreshed? I'd like for the grid to just stay where it was before I clicked on it. Many thanks in anticipation. Ian. RE: How to prevent a clickable cell in a grid refreshing the whole grid - Alexandre Machado - 09-10-2018 Hi there! What does your clickable column do? Does it have an onclick event handler? RE: How to prevent a clickable cell in a grid refreshing the whole grid - Ian_F1 - 09-11-2018 Hi Alexandre, I'm handling the event in the OnCellClick procedure for the Grid. Funnily enough I'm calling NewWindow, the syntax of which you helped me with the other day! Incidentally, if I issue a SendFile instead of a NewWindow the grid does not get re-rendered. Ian. RE: How to prevent a clickable cell in a grid refreshing the whole grid - Ian_F1 - 09-11-2018 Please ignore this question as I've worked around it. Instead of making the cell itself clickable I've assigned a TIWLabel to the cell and added an OnAsyncClick event to this label and this works fine. |