Refresh column with renderer

  1. #1

    Refresh column with renderer

    I have a grid with some columns which have renderer defined. Now when I try to update a row on which some server side function changes data, all columns are updated in UI, except those with renderer defined. How can I client refresh grid column with renderer?
  2. #2
    If you could provide a simple example of your code it would be great.
  3. #3
    Thank you very much for trying to help me. While I was preparing sample for you I noticed that in sample everything works as expected. I simply could not reproduce the behavior. Then I returned back to my project. And after hours of testing I finally spotted the problem. The problem was that I was displaying less columns then I had in my model, but some of those non displayed fields had impact on some columns via renderer. Since I was using standard mechanism to update one row in grid:
    var record = App.ObjectsGrid.getSelectionModel().selected.items[0];
    var index = App.ObjectsGrid.getStore().indexOf(record);
    var r = App.ObjectsGrid.getStore().getAt(index);
    r.beginEdit(); data;  <-- there was a problem
    I just changed problematic line to:
    r.raw = data;
    and suddenly everything started to work like a charm. :)

    Thanks again.
  4. #4
    Excellent! Please, feel free to search or ask the forum if further help is needed.

Similar Threads

  1. [CLOSED] Scope in Column Renderer is ignored
    By matt in forum 2.x Legacy Premium Help
    Replies: 4
    Last Post: Nov 20, 2014, 5:46 AM
  2. [CLOSED] Column template and renderer
    By marco.morreale in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Oct 03, 2013, 4:12 PM
  3. [CLOSED] Renderer getting null value (first parameter) after refresh
    By jmcantrell in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Jun 05, 2013, 3:40 PM
  4. [CLOSED] when gridpanel column apply renderer.format , renderer.fn not work
    By in forum 2.x Legacy Premium Help
    Replies: 1
    Last Post: Mar 12, 2013, 11:35 AM
  5. Replies: 1
    Last Post: Dec 06, 2012, 4:27 PM

Tags for this Thread

Posting Permissions