jQWidgets Forums

Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
    Posts

  • HeinoVDS
    Participant

    Hi Peter,

    Thanks for looking at my problem…
    I’ve been looking at the link you supplied, but I don’t see how it will solve my problem. As i said; I’m rather new to all this, so I’m probably missing something stupid…

    Anyway, let me explain in more detail what I’m trying to do:
    I’m showing a grid that’s filled with order lines. These order lines are read from the server and I’m using a data adapter for this that uses an url to contact the server and receives a JSON file / object in return. This data is shown in the grid, and everything works perfect with this. Now, two fields in this data together form the key to an item and the corresponding description for this item (stored in another table) should also be shown in the grid. As I said before, I tried using the cellsrenderer function to get this description from the server, but the asynchronous nature of the request makes that this doesn’t work.
    At the moment I use the cellsrenderer function to add some extra info to the cell’s HTML and afterwards I use the bindingcomplete function to replace that HTML with an AngularJS directive. It’s this directive that uses the added extra info and reads the description from the server and because Angular automatically updates the DOM when the data changes, the description is correctly shown in the grid. (Until the column is resized / reordered)

    On the page you linked me to, there is an example that shows how to link two data adapters (Orders and Employees) to get some extra information to show in the grid, but if I understand that example correctly, all the data from the Employee adapter is automatically loaded before any data is shown in the grid? If so, this wouldn’t work for us, because the table that contains the descriptions is much to big. So I’m searching for a solution that would let me only read the few descriptions I actually need and shows them in the grid.

    I can’t imagine that this is something that hasn’t been needed by someone else before me, so I guess (hope) I’m missing something fundamental here… Feel free to enlighten me…

    Kind regards,
    Heino

Viewing 1 post (of 1 total)