estrify Posted May 23, 2012 Share Posted May 23, 2012 This is a simple tip that allows to display a text within an UniEdit control when it is empty (it would be great if UniEdit could have a property EmpryText to do this): Just open UniEdit's ClientEvents and edit ExtEvents property Add the following line in the "OnBeforerender" event: sender.emptyText='text to display when the field is empty'; 1 Quote Link to comment Share on other sites More sharing options...
dionel1969 Posted May 26, 2012 Share Posted May 26, 2012 This is a simple tip that allows to display a text within an UniEdit control when it is empty (it would be great if UniEdit could have a property EmpryText to do this): Just open UniEdit's ClientEvents and edit ExtEvents property Add the following line in the "OnBeforerender" event: sender.emptyText='text to display when the field is empty'; Would be good to have this as property in Design Time. Quote Link to comment Share on other sites More sharing options...
albertovesx Posted October 6, 2012 Share Posted October 6, 2012 This is a simple tip that allows to display a text within an UniEdit control when it is empty (it would be great if UniEdit could have a property EmpryText to do this): Just open UniEdit's ClientEvents and edit ExtEvents property Add the following line in the "OnBeforerender" event: sender.emptyText='text to display when the field is empty'; thank you, very useful Quote Link to comment Share on other sites More sharing options...
estrify Posted May 30, 2013 Author Share Posted May 30, 2013 Hi, Don't use function OnBeforerender(sender){ sender.emptyText='text to display when the field is empty';} instead, use this UniEvent function OnBeforeInit(Sender){ Ext.Apply(sender, { emptyText: 'text to display when the field is empty' });} This will avoid in IE bugs like one reported in http://forums.unigui.com/index.php?/topic/3036-problem-with-unicombobox-to-show-selection/ Regards, 1 Quote Link to comment Share on other sites More sharing options...
Sherzod Posted May 31, 2013 Share Posted May 31, 2013 instead, use this UniEvent function OnBeforeInit(Sender) { Ext.Apply(sender, { emptyText: 'text to display when the field is empty' }); } Hi estrify. Thank you. With all due respect to you. Since I got error, I corrected your code. Sender to sender Apply to apply function OnBeforeInit(sender) { Ext.apply(sender, { emptyText: 'text to display when the field is empty' }); } Sincerely. Quote Link to comment Share on other sites More sharing options...
estrify Posted May 31, 2013 Author Share Posted May 31, 2013 Thank you... I write it directly... Next time it will be better a copy&paste... Quote Link to comment Share on other sites More sharing options...
Sherzod Posted May 31, 2013 Share Posted May 31, 2013 Thank you... I write it directly... Next time it will be better a copy&paste... (not to speak of, what all JavaSript identifiers case-sensitive...) Thank you Quote Link to comment Share on other sites More sharing options...
Sherzod Posted June 4, 2013 Share Posted June 4, 2013 Hi estrify. In IE9 is not showing a empty text, if in UniEdit PasswordChar := '*'; Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.