Webservice data binding example demo

2 posts, 0 answers
  1. Mark
    Mark avatar
    7 posts
    Member since:
    Dec 2014

    Posted 26 Mar 2015 Link to this post

    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

  2. Pavlina
    Admin
    Pavlina avatar
    6084 posts

    Posted 26 Mar 2015 Link to this post

    Hi,

    I noticed that you have opened multiple forum posts with the same question. May I ask you to keep the communication in one thread only in order the communication to be more straightforward and helpful. Thank you in advance for your understanding.

    Regards,
    Pavlina
    Telerik
     

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

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top