1. #1
    Ext User
    Join Date
    Mar 2009
    Posts
    28
    Vote Rating
    0
    shajeerkt is on a distinguished road

      0  

    Default How to call a page in navigation Panel from a Grid column as a hyperlink or button

    How to call a page in navigation Panel from a Grid column as a hyperlink or button


    Dear All,

    How can i call a page which is in the navigation pane from a grid column as a hyperlink or a button.
    For example, what i need is from this page(http://extjs.com/examples/#widgetrenderergrid) by clicking one of the button or link in the grid i should open another grid(http://extjs.com/examples/#paging)

    this is what i had done.
    Code:
    GridCellRenderer<TestData> buttonRenderer = new GridCellRenderer<TestData>() {  
                   
                       private boolean init;  
                   
                       public Object render(final TestData model, String property, ColumnData    config, final int rowIndex,  
                           final int colIndex, ListStore<TestData> store, Grid<TestData> grid) {  
                         if (!init) {  
                           init = true;  
                           grid.addListener(Events.ColumnResize, new            Listener<GridEvent<TestData>>() {  
                   
                             public void handleEvent(GridEvent<TestData> be) {  
                               for (int i = 0; i < be.getGrid().getStore().getCount(); i++) {  
                                 ((Button) be.getGrid().getView().getWidget(i, be.getColIndex())).setWidth(be.getWidth() - 10);  
                               }  
                             }  
                           });  
                         }  
                   
                         final StringBuffer str = new StringBuffer();
                         str.append("<a href=");
                         str.append("\"");
                     
                         str.append("http://www.google.com");
                         str.append("\"");
                         str.append(">");
                         str.append(model.getDsl_type());
                         str.append("</a>");
                         
                        
                         final Html html = new Html(str.toString());
                       
                          
                   
                         return html;  
                       }  
                     };  
    
            column = new ColumnConfig();
            column.setId("dsl_type");
            column.setHeader("DSL Type");
            column.setWidth(100);
            column.setRenderer(buttonRenderer);
            configs.add(column);
    In my code i had given to open google.com . Its working but opening in another page .
    So what i need is want to open another grid page from the navigation pane when i click a link on the grid cell , as a normal click in the navigation pane.

    Hope you understand my question .
    Sorry for my bad English .

    Thanks and regards,

  2. #2
    Ext User
    Join Date
    Sep 2008
    Location
    Germany
    Posts
    961
    Vote Rating
    0
    Arno.Nyhm is on a distinguished road

      0  

    Default


    is your question who to create an other (gxt) tab with gxt widgets in your tabpanel?

    then look into the code of the navigation panel how the tabs are created.
    you dont need to create a hyperlink etc.
    This forum needs your help: you got hints from the community and now you have fixed your code? dont just reply with "now its fixed" or "i found the error"! please take the time to post also an detailed answer with the working code.

    GreaseMonkey Script for a GXT-only Forum: it hides ExtJs here: New Posts • Search Results • Advanced Search form • Category overview http://www.extjs.com/forum/showthrea...041#post410041

  3. #3
    Ext User
    Join Date
    Mar 2009
    Posts
    28
    Vote Rating
    0
    shajeerkt is on a distinguished road

      0  

    Default


    No,

    i want like a hyperlink in a gridcell which will route me to a page in the Navigation pane .
    Any help will be appreciated ..

Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar