This is a migrated thread and some comments may be shown as answers.

Client side binding with webservice

5 Answers 102 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Brett
Top achievements
Rank 1
Brett asked on 09 Mar 2012, 06:41 PM

I have large amount of data and I’m trying out the example found here:  http://demos.telerik.com/clientbinding3/

I managed to get it working with my data and filtering works, but I can’t seem to get it to change the pages. It also doesn’t update the “Time to get data” or “Time to update Grid”.

I’m wondering if it’s not getting the “ClientBindingExample.js”, because if I comment the javascript out of my ASPX file, it still loads the grid fine.

Is there something I could be missing?  I’m sure it has to be easy, but I don't see it. :(

Thanks!

5 Answers, 1 is accepted

Sort by
0
Richard
Top achievements
Rank 1
answered on 13 Mar 2012, 03:25 PM
Brett:

Where did you find this demo? I can't seem to locate the project with the code. Can you post the link? I'm trying to determine if it is outdated for use with the current RadGrid for ASP.NET AJAX.

I'd suggest that you take a few minutes to view the RadGrid for ASP.NET AJAX - Client-Side Paging video. It should provide some insights on why paging isn't working.

Also, have you tried implementing the more current Grid/Declarative Binding or Grid/Client Binding online demos.

Alternatively, please post your full code so we can seen what's going on.

Cheers!
0
Brett
Top achievements
Rank 1
answered on 13 Mar 2012, 09:37 PM
For the life of me, I can't find the direct URL download for the code that I downloaded. I do have the code that I downloaded in a zip file. I'll attach that.

I looked at the Grid/Declarative Binding demo, but I didn’t quite understand it because in the demo it looks like they are loading it into an array of 100,000 items. I wasn’t able to really test its speed for searching, because of how I understand it; it’s just all duplicate entries in 10,000 pages. – I don’t quite fully understand it. I found it difficult to apply the demo into something with Linq or SQL.

I’m not very experienced with programming, it’s just my hobby and I like to play. When I found the demo in my original post, it seemed like it was exactly what I wanted. I don’t quite fully understand the security implications with a webservice, I can always learn that, but when I tied it into my million record database, I noticed a big speed improvement (partly I think is related to the Linq).

At any rate, I attached the original source files that I downloaded to this post. The only difference I changed was the Linq table to point to my database. When did that everything worked and loaded up fine, but I couldn’t get the paging working. :(

0
Richard
Top achievements
Rank 1
answered on 14 Mar 2012, 04:44 PM
Brett:

Unfortunately, you can't attach a .zip to a post. But, you can copy/paste the code using the Code Formatting tool in the forum post toolbar. Be sure to paste .aspx code and select "Markup" and the code behind and select "C# or VB".

Looking forward to working on it with you.

Cheers!
0
Brett
Top achievements
Rank 1
answered on 15 Mar 2012, 08:08 PM
aha! I found the source code that I was working with. I found it on Vladimir Enchev's blog post. You can find it here:

0
Richard
Top achievements
Rank 1
answered on 16 Mar 2012, 05:43 PM
Brett:

Thanks for sharing the source of the code for this older demo. Yes, it looks to me like your default.aspx page is not referencing the "ClientBindingExample.js" correctly and not finding it in the   <script type="text/javascript" src="ClientBindingExample.js"></script> tag.

Is this file in the top level of your application? If not, you'd have to change the src= property to point to the correct location of the file.

You could add an alert popup to one of the method calls in the .js file just to see if it's getting called properly.

Regards,
Tags
Grid
Asked by
Brett
Top achievements
Rank 1
Answers by
Richard
Top achievements
Rank 1
Brett
Top achievements
Rank 1
Share this question
or