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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Ajax Form Post Back to refresh Grid

Thread ID:

Created:

Updated:

Platform:

Replies:

128501 Jan 25,2017 10:42 PM UTC Jan 26,2017 08:11 AM UTC ASP.NET MVC 1
loading
Tags: Grid
Steve Lei
Asked On January 25, 2017 10:42 PM UTC

Hi,

I have got a problem after the AjaxForm postback json to update/refresh the Grid datasource.

Uncaught ejGrid: methods/properties can be accessed only after plugin creation

I have a grid to display order list from ViewBag in initial page and I have datepickers to be search orders by date range from DB.
When hit the search button, it will post a AjaxFrom back to controller and send json object back to JS code.
When JS try to update the grid datasource by using new json object. I have got the error in above in rad.

More details in attached file.

Thanks,



Attachment: syncfusion_grid_ajax_refresh_d6e91df8.zip

Saravanan Arunachalam [Syncfusion]
Replied On January 26, 2017 08:11 AM UTC

Hi Steve, 
Thanks for contacting Syncfusion’s support. 
We analyzed your provided screenshot and the cause of the issue is that you have tried to create a Grid instance by using id of Grid’s parent element (NonInvoicedList) instead of Grid element (OrdersList) when update the datasource. So, we suggest you to create a Grid instance by using id of Grid element and then update the data by using dataSource method of Grid control. Please refer to the below code example and online api reference link. 
@(Html.EJ().Grid<object>("OrderList") //OrderList is id of Grid element 
. . .  
 
) 
 
Regards, 
Saravanan A. 


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

;