Results 1 to 3 of 3

Thread: ExtJs GridPanel Icon is rendered too many times

  1. #1
    Sencha User
    Join Date
    Mar 2014
    Location
    Bangalore
    Posts
    2

    Default ExtJs GridPanel Icon is rendered too many times

    I am using ext js 4.0.7 version, When I try to load the store to GridPanel extjs. I am binding the Store,Columns , Fileds from the Server. I am sending server response in the JSON format. But Once Icon rendered it rendering too many times in the particular cell.
    extJsGridPanelError.jpg

    My Json object for the Columns, Store, Fields as shown below. Why this renderer event invoke so many times. How to achive the same functionality.
    Code:
    {  "success":true,  "columns":[{"dataIndex":"Icon","header":"  ","width":100,"renderer":function(value, metaData, record, rowIndex, colIndex, store) {switch(value) {case value : metaData.css = value; break;}return ;}}, {"dataIndex":"Name","header":"Name","flex":1}  ],  "fields":["Icon","Name"],"store":[  {"Icon":"tree-admin-enterprise","Name":"Enterprise"},  {"Icon":"tree-admin-domains","Name":"Domains"}],"errorMsg":""}

  2. #2
    Sencha User
    Join Date
    Feb 2008
    Posts
    194
    Answers
    2

    Default

    This is most likely your css error. Try using "background-repeat: none;" on your icon style.

  3. #3
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985
    Answers
    506

    Default

    Wondering if this is because the renderer is somehow improperly running multiple times because the renderer is coming from the data. Can you post more complete code so others can test? Are you able to try it with ExtJS 4.2.1?

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •