Ney Posted October 15, 2021 Share Posted October 15, 2021 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 {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 More sharing options...
Sherzod Posted October 15, 2021 Share Posted October 15, 2021 2 hours ago, Ney said: I want to show the screen with the first record selected in the UnimDBListGrid. Hello, Please clarify your problem? I do not see the problem. Link to comment Share on other sites More sharing options...
55143681 Posted October 19, 2021 Share Posted October 19, 2021 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 {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 More sharing options...
Sherzod Posted October 19, 2021 Share Posted October 19, 2021 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 More sharing options...
Recommended Posts