Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3323512
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T23:18:41+00:00 2026-05-17T23:18:41+00:00

I created link in the grid panel, so that when I click on the

  • 0

I created link in the grid panel, so that when I click on the link and it will open another tab in the tab panel. Currently I render the column cell output into html href with onClick event. But it seems that got error when the renderer method openrender() call the other method newtab(), which showing error function newtab() cannot be found. It maybe because of the onClick event can only call to methods/functions outside “Ext.onReady(function(){“ block? Does anyone know solution for this, any help is much appreciated thanks.

Or if you have other ways to achieve the same purpose also feel free to share. Thanks.


function newtab(state,ptt,status){
    tabs.add({
        title: 'Order List Detail',
                iconCls: 'tabs',
                items: [
                new Ext.Panel({
                    height: 40,
                    html: 'some html'
                })
                ,layout: 'fit'
        }).show();

}

function openrender(value, p, record){
    return String.format('<a <href="#" onClick="newtab(\'{1}\',\'{2}\',\'{3}\')">{0}</a></b>',value, record.data.state, record.data.ptt, 'Open');
}

var grid = new Ext.grid.GridPanel({
frame:true,
title: 'Pending Orders',
layout: 'fit',
store: catstore,
stripeRows: true,
loadMask: true,
iconCls: 'grid',
tbar: [{
        text: 'Category',
        xtype: 'label'
    }
],
columns: [
{header: "State Name", dataIndex: 'state', sortable: true},
{header: "PTT Name", dataIndex: 'ptt', sortable: true},
{header: "Open", dataIndex: 'openstatus', sortable: true, renderer: openrender}
]
});
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T23:18:42+00:00Added an answer on May 17, 2026 at 11:18 pm

    well I just found out another workaround by using grid cellclick listener

    var grid = new Ext.grid.GridPanel({
    frame:true,
    title: 'Pending Orders',
    layout: 'fit',
    store: catstore,
    stripeRows: true,
    loadMask: true,
    iconCls: 'grid',
    tbar: [{
    text: 'Category',
    xtype: 'label'
    }
    ],
    columns: [
    {header: "State Name", dataIndex: 'state', sortable: true},
    {header: "PTT Name", dataIndex: 'ptt', sortable: true},
    {header: "Open", dataIndex: 'openstatus', sortable: true, renderer: openrender}
    ],
    listeners:{
    cellclick: function(grid, rowIndex, columnIndex) {
    // Get the Record for the row
    var record = grid.getStore().getAt(rowIndex);
    // Get field name for the column
    var fieldName = grid.getColumnModel().getDataIndex(columnIndex);

    if(fieldName == 'openstatus')
    newtab(record.data.state, record.data.ptt, 'Open');
    }
    }
    });

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it possible for gcc to link against a library that was created with
Whenever i click on the link created by users.create_login_url() , i get an error
In my asp.net mvc page I create a link that renders as followed: http://localhost:3035/Formula/OverView?colorId=349405&paintCode=744&name=BRILLANT%20SILVER&formulaId=570230
In ASP.NET MVC, I'm trying to create a link that includes an anchor tag
I have a link that I dynamically create which looks something like the following:
i have a alphabetic filter consist of 26 dynamically created link button on selecting
When you create a link to an executable file intended for download (like say
I want to create a hidden field and create a link in one helper
Is there a way to create a link in a JSP page to a
I need to create an ODBC link from an Access 2003 (Jet) database to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.