-
1. Re: disable or remove buttons from pickList
nbelaevski Mar 25, 2009 4:16 PM (in response to cmathrusse)Hello,
You can hide them using rich-* classes. -
2. Re: disable or remove buttons from pickList
cmathrusse Mar 26, 2009 11:41 AM (in response to cmathrusse)Thanks for the response. Can you elaborate a little bit? I understand what your suggesting with changing the style class, but could you give me an example to get me going?
Thanks....
Chris -
3. Re: disable or remove buttons from pickList
nbelaevski Mar 26, 2009 4:18 PM (in response to cmathrusse)Hi Chris,
.rich-picklist-control-remove, .rich-picklist-control-removeall {display: none}. Unfortunately, this doesn't affect disabled buttons, so it's necessary to hide them all also: .rich-picklist-control-disabled {display: none} -
4. Re: disable or remove buttons from pickList
cmathrusse Mar 26, 2009 6:16 PM (in response to cmathrusse)OK, I must be doing something incorrect here. What I have defined is the following, based upon your post:
<style> .rich-picklist-control-remove, .rich-picklist-control-removeall {display: none} .rich-picklist-control-disabled {display: none} </style>
If I understand correctly, this should override the defaults that are defined for the controls. But when I add this to the page the Remove and Remove All buttons are still rendered. So where is my mistake?
Thanks for the help and patience. -
5. Re: disable or remove buttons from pickList
nbelaevski Mar 26, 2009 7:38 PM (in response to cmathrusse)Code looks correct. You can check why it's not working using Firebug, maybe there's someone redefining them. Also try adding !important: {display: none !important;}
-
6. Re: disable or remove buttons from pickList
cmathrusse Mar 26, 2009 9:54 PM (in response to cmathrusse)Very strange. Looking at the source I can see the style being applied and I can see the class. However, it appears that it is being preceded with space.
class=" rich-picklist-control-remove" style="display: none;"
Could it be that leading space that is causing my issue?
I've created an .mht file of my page and made it available at the following location, in case you could take a look.
http://dl.getdropbox.com/u/601181/Sybase%20Export%20Control%20Verification.mht
Again, thanks for the help.. It's greatly appreciated. -
7. Re: disable or remove buttons from pickList
ilya_shaikovsky Mar 27, 2009 5:26 AM (in response to cmathrusse)RFC created.
https://jira.jboss.org/jira/browse/RF-6622
now I'll explore the css solution you shared and update you additionally. -
8. Re: disable or remove buttons from pickList
ilya_shaikovsky Mar 27, 2009 5:56 AM (in response to cmathrusse)yes I'm able to reproduce the problem. This problem occurs because our element style overrides value from your styleClass. But the problem revealed for me by using Nicks important! suggested addition.
-
9. Re: disable or remove buttons from pickList
cmathrusse Mar 27, 2009 11:54 AM (in response to cmathrusse)Thanks for the update. I'm glad we found the issue. For now, I'll just patiently wait. :-)
-
10. Re: disable or remove buttons from pickList
karlkras Oct 19, 2010 10:14 PM (in response to cmathrusse)Hey Chris, were you ever able to get this working? I'm looking at hiding the Add All button and wanting to know details.
-
11. Re: disable or remove buttons from pickList
ilya_shaikovsky Oct 20, 2010 5:08 AM (in response to karlkras)how about attributes implemented at https://jira.jboss.org/jira/browse/RF-6622 ?