Hi,
I change the content in one of my columns with JavaScript (I need to fetch data from SharePoint with their Client Object Model). This works as expected the first time I load the pages in my grid. But not when I go to a page i've already loaded.
For example: Say that I have two pages in my grid. When I load the aspx, the content in the column is updated properly with data from SharePoint. When i press "Next Page" the grid changes page, my function gets called and the column is updated with correct data.
If I press "Prev Page" my function is never called and hence the column is never updated.
Is there a way to solve this?
I've tried a lot of different approaches to get the function to execute: $(document).ready, adding script from the PageIndexChange event, script tag in the ItemTemplate for the column, attaching client side click event to the "pages" buttons etc.
Regards,
Martin
I change the content in one of my columns with JavaScript (I need to fetch data from SharePoint with their Client Object Model). This works as expected the first time I load the pages in my grid. But not when I go to a page i've already loaded.
For example: Say that I have two pages in my grid. When I load the aspx, the content in the column is updated properly with data from SharePoint. When i press "Next Page" the grid changes page, my function gets called and the column is updated with correct data.
If I press "Prev Page" my function is never called and hence the column is never updated.
Is there a way to solve this?
I've tried a lot of different approaches to get the function to execute: $(document).ready, adding script from the PageIndexChange event, script tag in the ItemTemplate for the column, attaching client side click event to the "pages" buttons etc.
Regards,
Martin