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

Client side data bind error

0 Answers 50 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ron
Top achievements
Rank 1
Ron asked on 04 Apr 2012, 11:22 AM
Hi,

I'm using javascript to dynamically bind data to data source on text change of a rad text box  to display search results. Every thing works find except for when I get to the data bind it throws the following error: "Microsoft JScript runtime error: Unable to get value of the property 'indexOf': object is null or undefined" Through debug mode I can see that I am getting the results I want from the database but binding is giving me a problem that I unable to solve so far. Here is the code:
function SearchValueChanged(sender, args) {
 
       InvoiceWebService.SearchInvoice(3, 36, updateGrid, OnFail);
       return false;
   }
   function OnFail(result) {
       alert(result);
   }
   function updateGrid(result) {
 
       var tableView = $find("<%= grdInvoices1.ClientID %>").get_masterTableView();
       tableView.set_dataSource(result);
       tableView.dataBind();
 
   }
Thanks,
Ron

No answers yet. Maybe you can help?

Tags
Grid
Asked by
Ron
Top achievements
Rank 1
Share this question
or