erich.wanker Posted April 20, 2016 Share Posted April 20, 2016 hi .. how can i set the css-classname of a dynamic created component? i use my_panel:=TUniContainerPanel.Create(self); my_panel.Parent:=UniContainerPanel1; my_panel.Top:=y; my_panel.Left:=x; my_panel.Width:=365; my_panel.Height:=137; ... THIS DIDN´t WORK: my_panel.ClientEvents.ExtEvents.Add('beforerender=function beforerender(sender, eOpts){ sender.addClass("bericht");}'); ThanX Quote Link to comment Share on other sites More sharing options...
erich.wanker Posted April 20, 2016 Author Share Posted April 20, 2016 OK.. found it .... :-) UniSession.AddJS(my_panel.JSName + '.addCls(''bericht'');'); 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.