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

Webservice data binding example demo

1 Answer 30 Views
Documentation and Tutorials
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 26 Mar 2015, 03:03 PM
I have attempted to recreate this demo on my local PC with the northwind DB:

http://demos.telerik.com/aspnet-ajax/grid/examples/data-binding/client-side/programmatic/defaultcs.aspx

Unfortunately, the clientside call in the client pageload event:

PageMethods.GetData(0, tableView.get_pageSize(),

does not initiate the following serverside code:

public static List<Employee> GetData(int startIndex, int maximumRows,

string sortExpressions, List<GridFilterExpression> filterExpressions)

this function fails here:

function RadGrid1_RowDataBound(sender, args) {

var radTextBox1 = args.get_item().findControl("LastName"); 

radTextBox1.set_value(args.get_dataItem()["LastName"]); fails here

}

Can someone please explain why the client side call does not work or provide me with a better example of clientside data binding.

Thanks in advance.

Mark

1 Answer, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 31 Mar 2015, 03:06 PM
Hello,

Refer to the answer in the other forum thread you have opened on the matter:
http://www.telerik.com/forums/webservice-data-binding-example-demo

Regards,
Pavlina
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
Tags
Documentation and Tutorials
Asked by
Mark
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Share this question
or