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.

Can't add data when Grid binding to remote odata service with empty data,

Thread ID:

Created:

Updated:

Platform:

Replies:

115312 Jan 9,2014 10:16 AM Jan 15,2014 06:02 AM JavaScript 4
loading
Tags: General
Kevin
Asked On January 9, 2014 10:16 AM

I am evaluating JavaScript grid control. I have 3 questions.
1, I binding grid to a remote odata service (via WebApi 2 ODataController), it return empty data. But I click grid toolbar addbutton, no inline or dialog show.
2, when click delete button, also nothing happen.
3, I tried binding grid to a webapi 2 service, but report "Uncaught TypeError: Cannot read property 'length' of undefined "

Kevin
Replied On January 9, 2014 10:23 AM

I set offline:true, webapi is ok.
But webapi can't add data when remote data is empty as well.

Kevin
Replied On January 9, 2014 10:29 PM

when set offline is true using webapi, I lost autosysnc with server.

Yogeshwaran [Syncfusion]
Replied On January 13, 2014 07:37 AM

Hi kevin,

 

Thanks for using Syncfusion products.

 

 

I binding grid to a remote odata service (via WebApi 2 ODataController), it return empty data. But I click grid toolbar addbutton, no inline or dialog show.

Yes we can able to reproduce this issue. We have considered this as issue. The fix for this issue will available on our upcoming service pack release.

when click delete button, also nothing happen.

Change Guid to nullable Guid. This will avoid this issue.

I tried binding grid to a webapi 2 service, but report "Uncaught TypeError: Cannot read property 'length' of undefined "

We are working on this query with high priority . we will update response for this query on January 15, 2014

 

Please let us know if you have any further concerns.

 

Regards,                                                                                                                           

Yogesh R


Yogeshwaran [Syncfusion]
Replied On January 15, 2014 06:02 AM

Hi kevin.

 

I have created sample for ejGrid with webApi 2 service and I am unable to reproduce the "Uncaught TypeError: Cannot read property 'length' of undefined" reported issue. Could you please provide more information about the issue. Please find the sample attached sample.

 

Sample:

WebAPi2Service.zip

 

Please let us know if you have any concerns.

 

Regards,

Yogesh R


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.

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.

;