We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Error grid postback using DataManager

Thread ID:

Created:

Updated:

Platform:

Replies:

123291 Mar 3,2016 04:35 PM UTC Mar 9,2016 12:14 PM UTC ASP.NET Web Forms 4
loading
Tags: Grid
Roimer Machacón Otero
Asked On March 3, 2016 04:35 PM UTC

Hi we're using syncfusion grid with datamanager, now we have this case that occurr

1) When in the first load of the page the datasource for the grid is empty or have data, this load correctly 
Now what is the problem that we have:

We have registers in the page a id in a textbox with a grid associated (in this load the register associated to the id).

If The first load is empty and making postback change the id and this for the grid try data is ok, now when have the id with data in the grid, and want return of the id that the grid haven´t data, appear this error (Cannot read property 'items' of undefined)  The grid is corrupt apparently. Now exist a form to repair the grid in the postback for avoid this error?

We're using the syncfusion version 12.4.0.34.

Attached image with the error

Attachment: error_grid_e9bba2a1.rar

Ragavee U S [Syncfusion]
Replied On March 4, 2016 02:48 PM UTC

Hi Roimer,

We have analyzed the reported query. Based on our understanding, your scenario is as follows.

Initially render a grid(GridID: “Grid1”) with empty dataSource. In the postback action, you are dynamically changing the id of the grid(GridID: “Grid2”) and binding dataSource to the altered grid.

Could you please explain briefly on your requirement to change the “id” attribute of the Grid control? Also, please explain the need and on what action again you want to retrieve the id of the initially rendered grid.

As we are quite unclear on the scenario that you have mentioned, could you please share the below details.

1.       Clear replication procedure of the issue
2.       View page code corresponding to grid rendering and postback
3.       Server side code corresponding to data binding
4.       Please expand the script error obtained in browser console and share the screenshot of the stack trace.
5.       If possible, please provide a sample or hosted link for our reference.

Regards,
Ragavee U S.

Roimer Machacón Otero
Replied On March 7, 2016 09:34 PM UTC

Hi with respect to the change id, not change the id of the grid, we change an id value in a textbox and depending of this value in the textbox bring the data corresponding for load in the grid

Roimer Machacón Otero
Replied On March 7, 2016 10:03 PM UTC

Attached image with a case in the grid is corrupted when clicked in a linkbutton that have an event in server

Attachment: Error_grid_575319a1.rar

Ragavee U S [Syncfusion]
Replied On March 9, 2016 12:14 PM UTC

Hi Roimer,

We have analyzed the screenshots that you have shared. We are able to reproduce the issue in the below scenario.

Scenario: Initially render the grid with data and have a textbox with some value. Perform paging in grid. Now on button click, change the value in the textbox and update the grid dataSource (where the data count is less than that of the initially rendered grid) of the grid. Script error obtained since the current page is not updated.

Could you please let us know if the above scenario conforms to that of yours? If yes, we would like to let you know that this issue “Script error obtained when data refreshed after paging operation” has been fixed and included in our 2015 Volume 4 Service Pack 2 release which can be downloaded from the below location.

http://www.syncfusion.com/forums/123314/essential-studio-2015-volume-4-service-pack-release-v13-4-0-63-available-for-download

If not, please share the below details.
1.       Clear replication procedure.
2.       Server side code corresponding to textbox value update and grid data refresh.
3.       JSON count (Grid dataSource) – while initial rendering and after postback.

Regards,
Ragavee U S.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;