def grid_config(request): # build a config suitable to pass to jqgrid constructor grid = ExampleGrid() # To add dynamic query set grid.queryset = request.session['cdr_queryset'] return HttpResponse(grid.get_config(), mimetype="application/json")
def grid_handler(request): # handles pagination, sorting and searching grid = ExampleGrid() # To add dynamic query set grid.queryset = request.session['cdr_queryset'] return HttpResponse(grid.get_json(request), mimetype="application/json")