estrify Posted May 23, 2012 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
dionel1969 Posted May 26, 2012 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
AlbertoVesx Posted October 6, 2012 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
estrify Posted May 30, 2013 Author 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
Sherzod Posted May 31, 2013 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
estrify Posted May 31, 2013 Author Posted May 31, 2013 Thank you... I write it directly... Next time it will be better a copy&paste... Quote
Sherzod Posted May 31, 2013 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
Sherzod Posted June 4, 2013 Posted June 4, 2013 Hi estrify. In IE9 is not showing a empty text, if in UniEdit PasswordChar := '*'; Quote
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.