reload trigger causing TypeError

Questionsreload trigger causing TypeError
Techlancer asked 4 years ago

I have this code to Search grid from external form.

var grid = jQuery("#grid");
var searchFiler = jQuery("#txtSearch").val(), f;
f = {groupOp:"OR",rules:[]}; f.rules.push({field:"itemASIN",op:"eq",data:searchFiler});
grid[0] = true;

after calling the last line, it throws error
TypeError : g undefined

1 Answers
Abu Ghufran answered 4 years ago

Check following:

1) On line, var grid = jQuery("#grid"); … #grid should be your grid id , e.g. if it is ->render('list1') then it will be #list1
2) Check if there are no dupliocate jquery versions included later after grid load. There is a possibility that later jquery include would have removed grid object.

Your Answer

3 + 6 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.

How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?