Displaying data horizontally with no scroll bar - asp.net

I need to build a list of strings with a checkbox next to each one of them. I want to build it horizontally, but I don't want a horizontal scroll bar to appear. I was thinking of using either a Repeater or a DataList for the task, but how do I wrap the data to prevent a scroll bar to appear?

Try the CheckBoxList but set the repeatdirection to be horizontal and set the container to a specified width but not a specified height.

You can place all of your controls inside this Div
<div style="overflow:scroll;overflow-x:hidden; height:300px;"></div>
I Hope this will resolve your problem.

Related

JQuery Scrollbar on datagrid footer

I try to create datagrid with footer that's will show as many unique data rows in that field. The problem is the footer will taking more space when more unique data is inserted, what am I try to do is to set the footer with scroll bar and I am stack on it.
It's possible to set footer datagrid with it'sown scrollbar? Can anyone tell me how to do it

How to display a scroll bar for telerik radgrid in asp.net

I am not able to enable scroll bar for telerik radgrid.
i have used ClientSettings.Scrolling.AllowScroll=true.
can any one help?
You have to set an explicit height to show the vertical scrollbar; without an explicit height, it won't show up.

Issues with ASP>NET devexpress grid height

I am using a devexpress gridview with editform template. My issue is I have many rows within a grid, so when I edit rows at the bottom of a page, the edit form goes below the screen and I have to scroll down to see the whole edit form. Is there a way to set this grid to auto height so I dont have to scroll down. Also the vertical scroll bar is always displayed even if I make it false.
You can use PopUpEditForm So That You Dont have To ScrollDown On The Screen And It appears in the middle of the screen itself.
You can use the following settings for the PopupEditForm for your grid
<SettingsEditing EditFormColumnCount="2" Mode="PopupEditForm" PopupEditFormWidth="800px"
PopupEditFormHeight="320px" PopupEditFormVerticalAlign="Below" PopupEditFormHorizontalAlign="Center"
PopupEditFormAllowResize="false" />
PopupEditFormWidth,PopupEditFormHeight - You can change it to any size you want so that all your controls are properly placed.

Removing the Scrollbar from Horizontal List

I've got an Horizontal List. It contains 6 XML Nodes at the moment. But what I'd like to do is remove the scrollbar so that an button can function to scroll through the nodes instead.
Has anyone achieved this, if so how did you go about it?
Thanks in advance
You can usually remove the scroll bar by setting the horizontalScrollPolicy or verticalScrollPolicy to off.
After that, I believe you can scroll the list by setting the verticalScrollPosition or horizontalScrollPosition

Is it possible to get a custom ItemRenderer to scroll the DataGrid rather than its cell?

I'm having an issue with a custom ItemRenderer I've written for a DataGrid. With this ItemRenderer, it's possible that the contents could exceed the width and height of the DataGrid cell - and when this happens, scroll bars appear, letting me scroll the individual cell.
What I would like, however, is that when the contents of the cell are too large, the entire DataGrid scrolls, rather than the individual cells.
Now, when I set the custom ItemRenderer's horizontal and vertical scroll bar policies to "off", I get the vertical scrolling on the DataGrid that I want (the individual cells stretch to accommodate the full height of the contents) but I don't get any horizontal scrolling. Instead, any content too wide for the cell is clipped. Incidentally, setting the DataGrid's horizontal scroll bar policy to "on" has no effect, the scroll bar gutter is drawn, but nothing scrolls
Is there a way to force the DataGrid to scroll horizontally when my custom ItemRenderer's contents are too wide for the cell?
You may have to find a way calculate and expand the size of the DataGrid horizontally in a canvas so that it shows all the cells, and the scrollbar would appear as part of the canvas.

Resources