Darth Florus Posted November 26, 2013 Posted November 26, 2013 Mr. Farshad: 1) Is possible to incorporate a message that appears centered on the dbGrid when is empty? 2) Is possible to draw the empty rows of a dbGrid? Will be usefull because when the session is themed the empty rows are showed with default clBtnFace color and is confuse for the user. Best Regards
Sherzod Posted December 5, 2013 Posted December 5, 2013 1) Is possible to incorporate a message that appears centered on the dbGrid when is empty? Hi Oscar Flor Try: UniDBGrid1 - > UniEvents function beforeInit(sender) { this.view.emptyText = "<div style='width:150px;margin:0 auto;'><br><h2>No records!!!</h2></div>"; } Or change empty text in runtime: UniSession.AddJS(UniDBGrid1.JSName + '.view.emptyText = "<div style=''width:150px;margin:0 auto;''><br><h2>No records!!!</h2></div>"; '+UniDBGrid1.JSName+'.getView().refresh();'); Sincerely
Recommended Posts