Show kendo grid title in column - kendo-ui

Is there is a way to represent grid in kendo, so that the title will be in the first column and the data will be in the second column and so on
I want to generate the second grid but I only find the grid is genereted is like the first one

What you are looking for is called a vertical grid (or a property grid if you want to display a single record) and it ain't supported out of the box by Kendo (as July 2015). Many components of the grid (like the scrollbars) are hardcoded in Kendo's library and are not made to be modified. Since the grid source are available, you could, in theory, modify the code to create a vertical grid but that would have a lot of impact all over the place and with those changes you can't expect any kind of support from Telerik.
I already requested a vertical grid back in 2012 in kendo's user voice but Telerik haven't reviewed it yet.
For now, the only simple workaround I can think of would be to pre format your data to invert the columns with the rows. However, this as some limitations. For instance, you won't get any header support (filter / sort) nor the virtual scroll support. If you don't need those support, then you could use the grid to do what you want.

Related

Slickgrid - number of columns showed in dom

I'm about to test a website with Selenium. There is implemented a table with SlickGrid.
I have the Problem that when I read in a row i get only 29 columns but there were about 40 (in real).. This cause to 100% to the virtualised scrolling.
I'm wondering, what's the default amount of columns which appears in the dom?
It took me a while to resolve how it's done and I can say it's a bit tricky. There is no such thing as a "default amount" of columns, this amount is getting computed, see below for a bit of technical details.
You can check the slick.grid.js files line 1787. There is a function cleanUpAndRenderCells(). This is responsible for calculating and rendering the cells which aren't on the grids canvas. For example when you scroll the horizontal scrollbar, this function gets called and based on the direction of the scroll they check if the next set of cells aren't on canvas and can fit the canvas, they append the cells to the DOM.
For the matter of reading the row values
I see two possible ways of doing that using javascript.
If you are using a data array as datasource:
data[grid.getSelectedRows()[0]]
If you are using a DataView as datasource:
grid.DataView.getItemById(0)
Both will return an Object with property names of columns.
However I'm not sure how/why would you integration test this, the slickgrid package is already tested, you can check it here.

KendoUI multiple axis Chart (mixed chart with Bubble and Column chart types)

I am using Telerik for Silverlight (for desktop browsers) and Kendo UI (for mobile browsers) in my data visualisation project.
Multi axis chart of types Bubble and Column works fine in Silverlight. But the same does not work in Kendo UI. Kendo just draws Column and not the bubbles. Anybody knows the way to achieve this in Kendo UI?
Please see my two images below:
Desktop Silverlight Chart
Mobile (Kendo UI) Chart
You can achieve that by creating multiple (in your case two) series. One for column and one for bubble.
Example can be found here: http://demos.telerik.com/aspnet-mvc/bar-charts/multiple-axes
If you've tried this and it doesn't work, post some code so we can debug. :)

JqGrid add vertical scroll with horizontal scolling

jqGrid offers a bunch of fantastic features, but there is one feature missing that my customer keeps on complaining about (OK, he is never really satisfied with what he gets ) and that's proper vertical and horizontal scrolling. The grid I had to set up contains about 20 columns with some columns containing longer text so the grid won't even fit a 24″ screen. To properly layout the grid and the rest of the visual components (i.e. additional search and filter functions above the grid) I moved the grid to a scrolling div being about 95% of the screen width with a horizontal scrollbar to scroll the oversized grid, the problem with that workaround is that you won't see the vertical scrollbar of the grid itself, it only becomes visible if you first scroll to the right and that's not really comfortable.
Hope my explanation is comprehendible? If someone knows a good workaround, I would be eager to know it! Otherwise a "dual scrolling grid" would be a nice feature in 4.5
Thanks a lot!
Video example http://screencast.com/t/gPdOVPQlRc
jqGrid have many many options. It could be a problem with usage of jqGrid. The grid with many columns could be displayed in different ways.
One way is just to display full grid on the page and to use scrollbars of the browser windows. If you have simple page layout then the way could be really the best.
Another way could be to use shrinkToFit: false option. In the case you should specify the exact width values for columns in colModel. If you use shrinkToFit: false option you can set width option of jqGrid. In the case horizontal scrollbars will be placed in jqGrid.
In many cases the grid with many columns contains not always really interesting information for every user. So it can be helpful if you would provide columnCooser in the grid. Additionally you can save the users preferences in localStorage (see the answer and another one). It could improve user experience.
You don't wrote about the height of the grid, but the usage of height: "auto" produced typically good results.

SlickGrid: 2 questions: 1) change the orientation of column labels and 2) display d3.js elements inside cells

New to SlickGrid here, and have a couple questions:
1) Is it possible to change the orientation of the column labels? I would like to display a grid without horizontal scrolling, and the data can easily fit if I limit the width of each column. However is I do that, I dont have enough space for my column labels. So I am wondering if - like in excel - I could change the orientation of the column labels (to say 45 degreees vs. horizontal)? If not, any other suggestion?
2) Is it possible to display D3.js type elements (shapes etc) inside cells? If not, are there options to display things such as color coded stop-lights type things?
As you might have guessed, I am building a dashboard that pulls data from a summary table in a DB, and need visual eye candy. It's probably all doable in D3.js, but I'm looking for a faster way to implement, and a data grid appears appropriate.

is there built-in way to make DevExpress XtraGrid GridView column headers/captions diagonal to save horizontal space?

I have a whole bunch of very narrow columns in a DevExpress GridView and I want to save on column header width by making the caption text (which is too wide even at 3-4 letter abbreviations) slanted / diagonal. Well, so I guess I could get rid of text captions and replace them with pictures of diagonal text, at least if GridView will allow sufficient height for the header.
Is there any built-in way to just display the rotated text without going the image way? I don't think I am the first programmer out there trying to squeeze out horizontal space like that, so this doesn't sound like an outlandish thing to support in a popular grid component :-)
If not, and so I do have to use an image for column header, any relevant suggestions or warnings?
XtraGrid does not provide a built in functionality to show column header captions this way. However, this can be done within the CustomDrawColumnHeader event handler. We have posted a tutorial showing how this can be done. By default, it should be located at:
C:\Users\Public\Documents\DevExpress 2010.2 Demos\Components\WinForms\XtraGrid\CS\GridTutorials\GridVerticalHeaders
NOTE, as this feature is implemented using custom draw. It means that this text is only painted this way. Custom drawn text won't be exported or printed.

Resources