Grid中添加链接,打开选项卡页面

如何在grid中点击,添加一个选项卡并打开页面
 
     function addeditnew(id, title)    
    {                    
    var node =   {                     
        attributes: {                         
          href: "addeditnew.aspx?id=" +id                     
        },                     
        text: title,                    
         id: "news"+id                 
    };                
     alert('test');               
      //window.parent.addExampleTab(node);                
    parent.addExampleTab.apply(parent, [node]);            
  }
 
后台调用这个方法就行

posted on 2014-11-10 09:14  xihong  阅读(313)  评论(0编辑  收藏  举报

导航