Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 25064

Grid View Update Controls are not firing

$
0
0

I am using Asp grid view control for Edit and Update data, the web part is working fine in SharePoint 2010 but when I upgraded same web part in SharePoint 2013 then the gridview is not working properly.

Issues:

    • Update function not updating data and showing only blank row

I debug the codes but the events "On row updating" and "on row cancelling edit" are not even getting hit.

when i tried the below solution:

There is a service name Distributed Cache service which prevents view state to work or maintain. I stopped this service in Central Administration.

The grid worked fine but it affected the other features of SharePoint.

If i go to logs error appears:

Failed to load viewstate. The control tree into which viewstate is being loaded must match the control tree that was used to save viewstate during the previous request. For example, when adding controls dynamically, the controls added during a post-back must match the type and position of the controls added during the initial request.

To resolve this error i tried :

1. "ViewStateEnabled = True" on control n edit template

2. on Page directive set "EnableViewState = True"

But still events are not firing.

Please help me to resolve this issue.

TIA.


Viewing all articles
Browse latest Browse all 25064

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>