Loading ...
Sorry, an error occurred while loading the content.

17588Re: [ydn-javascript] data table formatLink problem

Expand Messages
  • Rodrigo Haas
    Sep 2, 2007
    • 0 Attachment
      Satyam,

      Thanks for response!

      I am using YUI 2.3.0.

      Look my code:

      <code>

      this.myDataSource = new YAHOO.util.DataSource(uri);
         
       
          this.myDataSource.responseType = YAHOO.util.DataSource.TYPE_TEXT;
         
          this.myDataSource.responseSchema = {
              recordDelim: "|", // Record delimiter
              fieldDelim: ",", // Field delimiter
              fields: ["VIA_TIPO","VIA_TITULO","NOMEVIA","SUBLOTE","NUMERO","BAIRRO","NUM_CEP","DESCRICAO","SITE"]  

          }
         
          var myConfigs = {
                      paginated:true,
                      paginator: {
                          rowsPerPage: 10,
                          dropdownOptions: [10,20,30,50,100]
                      },
                      pageLinks: 3
              }
       
          this.myDataTable = new YAHOO.widget.DataTable("basic", myColumnDefs,     this.myDataSource, myConfigs,{caption:"DataTable Consulta",           selectionMode:"single"} );
         
          // Subscribe to events for row selection
              this.myDataTable.subscribe("rowMouseoverEvent", this.myDataTable.onEventHighlightRow);
              this.myDataTable.subscribe("rowMouseoutEvent", this.myDataTable.onEventUnhighlightRow);
              this.myDataTable.subscribe("rowClickEvent", this.myDataTable.onEventSelectRow);


          }

      </code>

      when not using "row selection" the link in DataTable query result works fine...

      I believe to be a bug in Yui DataTable!


      Thanks again,


      Rodrigo Haas



      Satyam <satyam@...> escreveu:
      I remember that links didn't work in some old version of YUI, 2.1 or before.  They were fixed, or so I recall, I didn't test them myself, in 2.2 or thereabouts.
       
      Satyam
      _._,___

      Flickr agora em português. Você clica, todo mundo vê. Saiba mais.

    • Show all 8 messages in this topic