I am trying to do the example on https://github.com/kingiol/XCMultiSortTableView
where I am putting json values. I used navigational bar but then the header data is getting hidden. I tried changing the frame size in XCMultiSortTableView.m file but the position of header doesn't change. I am getting output as
But I want the output where years is displayed along with navigational bar as
Please do reply.
I changed the topHeaderScrollView to
topHeaderScrollView.frame = CGRectMake(leftHeaderWidth + boldSeperatorLineWidth, 30, superWidth - leftHeaderWidth - boldSeperatorLineWidth, topHeaderHeight);
and changed the default header height to
#define XCMultiTableView_DefaultTopHeaderHeight 110.0f
Now I can view my header even when I have a navigation bar.
Related
I have set the auto dimension of the label but whenever data is loaded in table view it expand to 10 lines however text is about 1 line
enter image description here
Thats the code
Please check that picFlag is = "0" or not in response and make sure you have implemented estimatedHeightForRow delegate
I have an IGListCollectionView with sectionHeaders.
How do I auto size the cells
I need to present info in a table with different cells height in same section, each section have a sticky header.
I am using SectionController that inherit from ListBindingSectonControllerDataSource.
I tray to use estimatedItemSize and headerReferenceSize.
The UI is bouncy - look like it have a problem to calculate the header size.
If I run the code without the header it works fine.
I am using crystal report for printing details. I have two issues while printing.
Set height/width dynamically for section details
I want to change the height and width for the section dynamically through code. This height and width will come from user settings so I need those to be dynamic. When I checked, there is a option to set the section height programmatically but its not working. I am using the below code to set the section height
ReportDocument rd = new ReportDocument();
Section section = rd.ReportDefinition.Sections["Section3"];
section.Height = 1;
When I use this code, it gives me error "System.Runtime.InteropServices.COMException: The section height is not valid."
I also want to set "Gap Between Details" dynamically. Is it possible?
Set page content height dynamically
I want to set the page content height dynamically. We can set the page height and width from Design -> Page setup -> Page options -> Set Horizontal and Vertical values.
What is happening in my case is, I am using crystal report tp print barcodes. When the page height is big, it prints empty barcodes which I dont want. I want to set the page content height based on the number of barcodes I am going to print. How can I do this?
Can anybody help me solve these two issues?
I was finding how to resolve this question. For me, this works:
ReportDocument rd = new ReportDocument();
rd.ReportDefinition.Sections["Section5"].Height = 1000;
Try this, ok?
I added a formula field called AutoHeight and a parameter field called Height then I put this code inside the formula:
Local StringVar height = "";
Local NumberVar i;
For i:=1 to {?#Margin} do (
height := height + Chr(10)+Chr(13)
);
height
The final step is to place my AutoHeight formula in the section I want to control with the property Can grow checked
I have a DataGrid in an AbsolutePanel.
I set it size via myDataGrid.setSize("100px", "231px");
It is supposed to show 140 data items, but it only shows like 60 or something like that, with automatic vertical scroll bar presented.
But why it shows only part of the data, not full set?
I assume you use a default constructor for the DataGrid. By default the page size is 50, so it will only display 50 records.
Either you use another cosntructor (DataGrid(int pageSize)) or you add a Pager (i.e. SimplePager)
I need to set custom section height for my table view, and I'm trying to do it in pretty straightforward way by calling some delegate method:
- (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section
{
return 39.0;
}
I do get desired result - a taller section but I'v noticed one problem. When I tap the table (start dragging), move my finger up to top, and release the table, then the table bounces back but does not return to the correct initial place. If What I mean is the section header overlaps the first row. Here is the screen:
Any ideas why this happens or what workarounds exist?
UPDATE: I also tried increasing section height property of the tableView in IB. This increases the height but the same problem exist.
It sounds like you're dragging the table up so that the last row of the table, plus empty space below it, is showing, like this:
When you let go, it slides the table back down so that bottom edge of the last table row is flush against the bottom edge of the view.
This is the expected behavior for a table view. You're seeing the top row slip partly underneath your section header because the view height, minus the section header height, isn't an integer multiple of the row height. If you don't like this, you need to make sure the view height minus the section header height is an integer multiple of the row height.
There is another way to set the section height without using the delegate:
self.tableView.sectionHeaderHeight = 39.0;
If this does not help, you will have to fiddle with the UIScrollView Delegate.
Also, from your screen shot I see that you might be interested in the property tableHeaderView, which is a header above the table that will scroll off-screen when the table view is scrolled.