jQuery $.Ajax RadGrid Client Side Binding

Thread is closed for posting
4 posts, 0 answers
  1. Jon (I.T. Agility Inc.)
    Jon (I.T. Agility Inc.) avatar
    19 posts
    Member since:
    Feb 2007

    Posted 10 Aug 2009 Link to this post

    Hello,

    I'm trying to use jQuery to bind to RadGrid and I am getting get_masterTableView() is not a function whenever I try to bind the results of my ajax call.

    I am using the following;

     function onSuccess(result) { 
                    var grid = $('#<%= RadGrid1.ClientID %>'); 
                    var tableView =  grid.get_masterTableView(); 
                    tableView.set_dataSource(result); 
                    tableView.dataBind(); 
                     
                    $('#<%= RadAjaxLoadingPanel1.ClientID %>').hide("<%= RadGrid1.ClientID %>"); 
                } 

  2. Veselin Vasilev
    Admin
    Veselin Vasilev avatar
    2992 posts

    Posted 11 Aug 2009 Link to this post

    Hello,

    to find the client-side instance of RadGrid you need to use the $find method:

    var grid = $find("<%= RadGrid1.ClientID %>"); 

    Your code would return the DIV element of the grid hence the error.

    I hope this helps.

    Greetings,
    Veselin Vasilev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Jon (I.T. Agility Inc.)
    Jon (I.T. Agility Inc.) avatar
    19 posts
    Member since:
    Feb 2007

    Posted 11 Aug 2009 Link to this post

    thanks - I was able to use the find method to locate the grid.  however - locating a loading panel always returns null.

    $find('<%=RadAjaxLoadingPanel1.ClientID%>').show("<%= RadGrid1.ClientID %>");
  5. Yavor
    Admin
    Yavor avatar
    11 posts

    Posted 14 Aug 2009 Link to this post

    Hello Jon,

    Based on the supplied information, it is hard to determine why the loading panel is not properly located.
    If the issue persists, you can open a formal support ticket, and send us a small application, demonstrating your logic, and the unwanted behavior.
    We will review it locally, and get back to you with additional information.

    All the best,
    Yavor
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top