Jump to content

How Do I select the first record in the UnimDBListGrid ?


Ney

Recommended Posts

My code write in the Properties ClientEvents/UniEvents (UnimDBListGrid):

function beforeInit(sender, config)
{
  var htmlRow=
  '<div class= "myrowproduto">'+
      '<table style= "width:100%; height:100%; vertical-align:middle;">'+
      '<tr>'+
           '<td>'+
           '<span style= "font-size:20px; color:Yellow; padding-left:10px; colspan=2; width:100%; display:inline-block;"> CÓDIGO&emsp;{0} </span>' +
           '<span style= "font-size:20px; color:white; padding-left:10px; colspan=2; width:100%; display:inline-block;">NOME {1} </span>' +
           '</td>'+
      '</tr>'+
      '</table>'+    
  '</div>';
  config.itemTpl= new Ext.XTemplate ( htmlRow );  
}  

 

where add and what add in the code above?

I want to show the screen with the first record selected in the UnimDBListGrid.

Thanks.

Link to comment
Share on other sites

On 10/15/2021 at 10:54 PM, Ney said:

My code write in the Properties ClientEvents/UniEvents (UnimDBListGrid):

function beforeInit(sender, config)
{
  var htmlRow=
  '<div class= "myrowproduto">'+
      '<table style= "width:100%; height:100%; vertical-align:middle;">'+
      '<tr>'+
           '<td>'+
           '<span style= "font-size:20px; color:Yellow; padding-left:10px; colspan=2; width:100%; display:inline-block;"> CÓDIGO&emsp;{0} </span>' +
           '<span style= "font-size:20px; color:white; padding-left:10px; colspan=2; width:100%; display:inline-block;">NOME {1} </span>' +
           '</td>'+
      '</tr>'+
      '</table>'+    
  '</div>';
  config.itemTpl= new Ext.XTemplate ( htmlRow );  
}  

 

where add and what add in the code above?

I want to show the screen with the first record selected in the UnimDBListGrid.

Thanks.

By default,the first is selected,and the cursor is positioned to the first record.

Link to comment
Share on other sites

5 minutes ago, 55143681 said:

By default,the first is selected,and the cursor is positioned to the first record.

 

On 10/15/2021 at 7:54 PM, Ney said:

I want to show the screen with the first record selected in the UnimDBListGrid.

?

Link to comment
Share on other sites

×
×
  • Create New...