I want to display no scrollbar in fullcalendar - fullcalendar

I am trying to display the calendar with NO scrollbar on the right. I tried setting contentHeight but it is not working as intended. There is no scrollbar and the calendar is all displayed, but it streches the rows so that they are all the same height as the row with the most events.
Example, row 3 of the month has 10 events, so the row will strech to display all 10 events, however ALL other rows will have the same height even empty rows.
I tried with this value. contentHeight: 2800
The EventLimit is set to False. As I want every events to be displayed.
Thanks for any help.

Have you tried to set the height to auto? Check to official doc.
I hope it helps. ;)

Related

Sizing a Flex DataGrid to fit the data, then scrolling

I have a UI that is a master/details UI design pattern. There is a DataGrid that holds 1-n records in the top part section of a VDividedBox, then a details pane in the bottom part that shows details of the record selected in the DataGrid, responding to the selection.
The DataGrid usually only contains a small number of items, and so I'd like in most cases for the DataGrid to size to the number of rows and for the details pane to be shown just below the table with no empty space or empty rows. I've got that working OK by setting rowCount="{tableData.length}", where tableData is the data provider. So far, so good.
However, occasionally the table contains a larger number of items, and in these cases I'd like the table to grow to fill the available space, then scroll when there are too many items to show, without the details pane scrolling off. That is, behave like the rowCount is not set to the dataprovider length, and the height set to 100%.
My problem is, determining when to make this switch. What is the best way to switch the behavior from the rowCount-based height, to the percentage based height? Or am I missing some trick that would make the rowCount-based height table scroll when it runs out of space?
Thanks,
Paddy
What if you set the rowCount via:
rowCount="{tableData.length > 30 ? 30 : tableData.length }"
where 30 is the max height you want to scale to?
That way if there are more than 30 (or some #) of rows it will scroll.

Flex 4.6 Mobile - Scrolling to the last added item in a dataGrid with variableRowHeight

I'm trying to set the scroll vertical position of a spark dataGrid to show the items as I add them to the grid. I know you can set the scroll position like this:
dataGrid.scroller.viewport.verticalScrollPosition = itemPosition*rowHeight;
The problem is that the dataGrid have variableRowHeight, as each row word wraps their name labels, and I don't know how to get each row height. I though of getting the itemRenderer associated with every item as I add it to the grid, and keep the total row height value in a variable, but don't know how to achieve that.
Is there any way to set the scroll position of a dataGrid with variableRowHeight to show the last added item?
After you set your dataprovider, you could do something like
dg.validateNow();
dg.verticalScrollPosition=dg.grid.contentHeight+dg.grid.height;

Is it possible to have Dojo/Dijit DataGrid autoheight functionality based on the parent div size instead of a number of rows?

I have a datagrid that is updated periodically and the number of rows inside it grows steadily over time. It is inside of a parent div with a height of 60% of the screen.
If I set autoheight to, say, 5 rows, the table works properly. When a sixth row is added, a scrollbar appears within the datagrid and I can scroll up/down and the headers remain fixed at the top and visible. Unfortunately, once I have a lot of data, this is a waste of space -- I have 60% of the screen's height to work with, but only 5 rows are being shown at a time.
If I set autoheight to false, the scrollbar that appears is attached to the parent div. Scrolling up/down allows me to see the data, but the headers at the top of the grid scroll out of view.
Is there a way to ask the datagrid to show as many rows as it can fit and provide a scrollbar for the rest?
---- EDIT ----
Setting autoheight to false would be exactly what I want if the datagrid would resize itself along with the parent when I resize my browser. Is there a good way to achieve that?
I think you're looking for grid.resize(); If you look at the file "Grid.js.uncompressed.js" in the dojox nightly files here: http://archive.dojotoolkit.org/nightly/dojotoolkit/dojox/grid/ You can see exactly what it does. The dataGrid should inherit this method, if you're using it. One way to use it is to resize the containing div based on the window's height, and then resize the grid inside:
function changeHeight() {
document.getElementById("div Id in which the dojo grid is there").style.height ="your desired height";
dijit.byId('Id of the dojo grid').resize();
dijit.byId('Id of the dojo grid').update();
}
Another option method is do do something like this:
function resizeGrid() {
// do whatever you need here, e.g.:
myGrid.resize();
myGrid.update();
}
dojo.addOnLoad(function() {
dojo.connect(window, "onresize", resizeGrid);
});

Auto-sizing the height of a TileList

Is there a way to have the TileList component to auto-size to its contents? I have tried setting it 100%, but it seems that won't help. I don't want to hard-code the height because the content will be vary, and I don't want scrollbars to show up. Please help.
This is how I ended up solving this issue:
First I set the values for rowHeight and maxColumn properties. Then I did a little function that fires on the updateComplete event of the TileList to calculate the height of the tileList by doing a rowHeight * number of rows.
That worked.
Try creating an event handler when the tilelist changes, calculate the height based on the children then resize the child list based on that value.

Autoscroll Datagrid in Flex

Is there any way to scroll Datagrid on timer basis.
Let say there are plenty of records which can not be shown in one screen. And the screen is showing the first 10 records. An auto scroll should start after 5 seconds and bring up the next 10 records. Then again after 5 seconds the other 10 records and so on. A kind slide show effect.
Any help is appreciated.
Thanks
Try looking up Timer. You can set both the vertical and horizontal scroll positions of a Datagrid with the .verticalScrollBarPosition method.

Resources