I have a very simple requirement: I want to show a header and footer in print layout of a view. One approach I can use is to manipulate the height of the page and display some text fields at appropriate positions as header and footer, but I think there must be smarter way to do this in cocoa.
Can any one tell me- is there any default method to achieve this in cocoa or some smarter way to do this?
To be more precise ... I want to show page number on center at footer such that if print layout consists of n number of pages it should display: page 1 of n, page 2 of n and so on !
I am able to resolve it by sub-classing NSView and coding in - (void)drawPageBorderWithSize:(NSSize)borderSize...
Now I have a complex scenario: I have prepared a view on top which contains some images and text fields. I want to set it as header in all pages in print layout, but firstly I want to know is it possible ? If yes then how??
Can anyone show me some direction to achieve it?
Thanks,
Miraaj
Related
I love how you can set either inline or standard help text on page items. Unfortunately the only current region in APEX (Universal theme) that supports this functionality out of the box is new interactive grid.
But even here it is not ideal as it sits under Actions menu -> Help and contains additional text about IG functionalities which might be not what you want to show anyway.
Does anyone know of a work around in which I can set help text on an interactive report?
Thanks
Just set it in column's property palette (left screenshot). Then run the report, click column's header (1), click the question mark (2) and - here's your help (3):
So I found another way that better represents what I wanted to display to my users. If you create a display only text field above your interactive report with the appearance template = Optional - Above. Then add this inline CSS to your page:
label[for="PX_YOUR_PAGE_ITEM"], #PX_YOUR_PAGE_ITEM {
font-size: 16px !important;
font-weight: bold !important;
}
The page item will now display as the region header (Display Only Form Field). Now you just add your help text and now you have a pretty, functional, region header with help text attached. (Sorry I can't embed images into my answer yet so plz up vote if you found this solution helpful).
*Note: In the images I have two region titles that can display help text. You must have a CSS block for each region title.
Display Only Form Field
Help Text Active
I want to add a header to my JQgrid without pushing a custom div right above my grid. I found the caption option which appears to create a header that looks good. However, right below the header another div appears which is ~4x the height of the header. This looks to simply be a div that allows a user to hide or unhide the entire grid.
Question 1: Is this hide/unhide supposed to be this big? My height and width are both set to auto for the grid.
Question 2: Is there a way to easily remove this hide/unhide area?
If you think you need source code or an image to show the problem let me know and I'll post it. It needs to be scrubbed of company data first, hence me not putting it in the initial post.
Is this the same issue as Large header in jqGrid?
Both answers include workarounds to get rid of the huge header.
I have to display a set of data in the following manner:
Which ASP.NET 3.5 control best matches my requirement?
If one matches, could you please give me an idea about how to format it to view like the image?
Well, first off you have multiple blocks (multiple rows) so I would suggest a Repeater. Within each block you must display three columns (the image the text and the small images), and you should use a Panel (renders as a ). In the second panel you have multiple lines of text for which you can use Labels because they allow for rendering as a so that you an include a class.
Style everything nicely with CSS and you should be able to remake the above picture.
I think repeater control would be fine for your requirement.
in JQGrid 3.8, is it possible to have an icon instead of text in a column ?
I don't think it's possible but if you have a trick, i'd be happy
There are many ways to add icons in the grid. First way is: the data which be placed in the column header (colNames) or inside of the cell data could be HTML data. So you can easy insert the <img> element in the grid. One more method is th use custom formatters. See here some demos. If the standard jQuery UI icons contain all the icons which you need I would recommend you to use there.
How to make some of article when I click readmore the paragraph not show
to the bottom but to the right side...
Here's the illustration screenshot:
http://www.oymo.com/upload/uploads/collumn-artikel.jpg
You can't do proper columns - ie. when the text flows from the bottom of one column it moves to the top of the next, without use of CSS3 (which isn't widely supported). You could probably do something with a bit of mootools or jquery as an alternative.
However, if you just want to show the intro text in one div and the main text in another (something like http://www.kodaklens.co.uk/mobile/) then you need to modify your template /templates/templatename/html/com_content/article/default.php, by creating your required 'static' layout and then loading the different article pieces into each container, but this won't help with text flow.