Is there any method to insert the different class into alternate rows in struts2 datagrid. using the altClass property i can insert class into either even or odd rows. But i want to insert different class for odd rows and even rows. Is it possible in struts2 drid view
I have just download the ui.jquery.css and include it manually in my jsp page using link tag. And i have use altRows="true" and altClass="even" and access this even class different style and other <tr> without even class other style. That's it.
Related
Is there a way to change the generic ID on Oracle Apex? I cannot use the id below for the other Modal page containing the said ID will we affected. My solution is to set a different id on this Session Timeout ui-id-2 Modal Page.
Also I am not sure why this code: span#ui-id-2{code..} works when applied on Page CSS inline, but when applied on Static Application Files .CSS it is not working.
Oracle v20.
Yes! You can do it using jQuery, but it will work only in runtime
$("#ui-id-2").attr("id","newId");
And the thing with CSS maybe you need to add !important to override the class.
I'd like to set either the CSS class or an attribute of a region based on the value of a page item. I've tried the following syntax with no real joy:
#P0_CURRENT_SCHEMA#
:P0_CURRENT_SCHEMA
&P0_CURRENT_SCHEMA
Is there a syntax that will allow me to use the value of a page item rather than a static value to set the value of a CSS class (my aim here is to have part of the UI colour code itself based on what environment it is in).
Your substitution syntax isn't quite right. You need the period at the end.
&P0_CURRENT_SCHEMA.
A jQuery approach that would allow for dynamic changing of the class on the fly. It could be added to a dynamic action.
$('#P0_SET_MY_CLASS').addClass($('#P0_CURRENT_SCHEMA').val());
In gwt how to get a widget's default style(CSS Selector).For example, gwt button has style name "gwt-button" which is referenced in gwt theme css file.
How to got that programmatically.
Is there any,
DOM.getStyleAttribute();
to accomplish this. GWT experts please help.
In your example of button (or any object that is a child of UIObject) can call getStyleName()
UIObject documentation
String com.google.gwt.user.client.ui.UIObject.getStyleName()
Gets all of the object's style names, as a space-separated list. If you wish to retrieve only the primary style name, call getStylePrimaryName().
Now as to why you need this information is the real question. It is my guess that you want to change the styling of an object (add or remove). This would best be done by either of the following methods.
1) Supplying a custom resources file to the object that has your styling
2) creating a class that extends Composite and create a custom UIBinder class with all of your styles within it.
It seems jqGrid is not assigning any CSS ids to cells by default.
Any tips how to go about it?
I notice I can assign classes per column as per the wiki, but I would like to add CSS ids.
Why jqGrid schould assign an additional CSS class for every cell if jqGrid not use the class? If you need to add a CSS class to some jqGrid cells you can use setCell method.
$("#list").jqGrid('setCell', id, colName, '', "someCssClass");
See modified demo for this old answer as an example.
DataTextField="Name"
DataValueField="ID_ListGroupParIzm"
???? DataValueField2="ID_Point"
is it real to load 2 values from sqlDataSource in one DropDown list ? Get structure object from sqlDataSource ?
I can see only one way - making a new table to combine ID_Point and ID_ListGroupParIzm to one ID but that's really weird.
The only reason I can see for trying to do this is so that you can use javascript to affect two other objects on the page when something is selected.
If that is the case, I would strongly suggest using css classes instead and using jQuery (or another similar framework to select them from the dom.
eg.
<div id="ctl00_point" class="point item1">Content</div>
<div id="ctl00_listgrouppartzm" class="lgpartzm item1">Content</div>
<div id="ctl01_point" class="point item2">Content</div>
<div id="ctl01_listgrouppartzm" class="lgpartzm item2">Content</div>
Now rather than trying to store "point1|listgrouppartzm1" into the value of the drop down list and then parse it out, you only have to store "item1" and you have all the information you need to find those two divs.
In jQuery, you can get them both by
$(".item1")
or individually by
$(".item1.point")
$(".item1.lgpartzm")
You need to combine two fields before data-binding to the dropdownlist.
I think it's the only way to do it.