jqgrid not executing when bound to click event

Question!

I'm not sure why this isn't working but probably because I'm not very familiar with javascript.

The following is initialised

$('#categoryList').find('.sideboxEntry').live("click", function() {
    productBindToGrid();
});
productBindToGrid();

function productBindToGrid(filterBy) {
    $("#productGridView").jqGrid();
}

productBindToGrid() is entered and .jqGrid() fires on initialization but when '.sideboxEntry' is clicked it is entered too but .jqGrid() doesn't seem to work.

What am I missing?

By : seanlinmt


Answers

I should have read the documentation. Once initialised, you should trigger a reload using

$("#productGridView").trigger("reloadGrid"); 
By : seanlinmt


This video can help you solving your question :)
By: admin