views:

437

answers:

2

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?

+1  A: 

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

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

How to know the grid has been initialized?

Roop