Results 1 to 2 of 2

Thread: Ext Js Grid Panel dynamic renderer event passed from the Server (Java/.NET)

Hybrid View

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

    Default Ext Js Grid Panel dynamic renderer event passed from the Server (Java/.NET)

    I am passing a Json object to use in the GridPanel includes store, Columns and Fields. But everything is working except the Icon, when I try to send the renderer also from the server. Once the response reached at the client, rendered is having the double
    in the Column model.. Please help to overcome the issue...

    This is the sample Json





    {
    "success":true,
    "columns":[{"dataIndex":"Icon",
    "header":" ",
    "flex":1,
    "renderer":"function(value, metaData, record, rowIndex, colIndex, store) {alert(value);metaData.css = value;}"
    },
    {"dataIndex":"Name",
    "header":"Name",
    "flex":1}
    ],
    "fields":["Icon","Name"],
    "store":[{"Icon":"tree-admin-enterprise","Name":"Enterprise"},{"Icon":"tree-admin-domains","Name":"Domains"}],"errorMsg":""}

    Please help me to find the issue...


    Current output :- "renderer":"function(value, metaData, record, rowIndex, colIndex, store) {alert(value);metaData.css = value;}"

    Expected Output :- "renderer":function(value, metaData, record, rowIndex, colIndex, store) {alert(value);metaData.css = value;}

    Please help how can I remove the double quotes before / after the operation.




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

    Default

    I'm guessing from your other post that you've gotten this working?
    http://www.sencha.com/forum/showthread.php?283093

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
  •