Kendo UI Multiple Grid - asp.net-mvc

I want to create a grid where it gets two entries to bind from two tables in the database, and save the result in another result table.
To explain more I have attached a picture of the needed grid,
So as you guys see in the picture, : 1) I want the servers list to be bound in the horizontal header (from servers table),2) and I want to bind the application list in the vertical row. That way I check inside the grid when an application is deployed on a server.
My question is how to achieve this? is there a kendo component or any other component that will help me doing this job?

A lot can depend on the data model.
The KendoUI PivotGrid https://demos.telerik.com/kendo-ui/pivotgrid/index might be what you need and works cleanly with categorical form data.
If you prepare your own pivoted data, as the results of a SQL Server pivot query, a normal KendoUI Grid may suffice.
If you prepare you own data, as the result of a dynamic pivot query, the columns could be different each time. You will need to learn about htmlhelper Grid, such as discussed in https://docs.telerik.com/aspnet-mvc/helpers/grid/how-to/Binding/grid-bind-to-datatable.
A dynamic data source can also be handled in just jQuery (with no htmlhelpers), such as discussed in https://www.telerik.com/blogs/dynamic-data-in-the-kendo-ui-grid

Related

User input in repeated grid to fill dynamic dropdown

I am building an Orbeon form where people can add information to a repeated grid, e.g. Name, Age.
Later in the form, there will be a 'Friend' section that will reuse data from the repeated grid.
I can synchronize the data using <fr:synchronize-repeated-content>, but is it possible to reuse the data from the repeated grid in a dynamic dropdown instead?
A dynamic dropdown could make this form much shorter, compared to <fr:synchronize-repeated-content>, as only a few of the rows in the repeated grid will need more data later in the form (only few friends from a long list of names in the repeated grid).
It is currently not possible for this form to use any web services.
Currently, you can't directly populate a dropdown based on data entered in a repeated grid earlier in the form. As you suggested, using another repeated grid and <fr:synchronize-repeated-content> is a workaround. But being able to directly populate a dropdown would definitely make sense, and this is covered by request for enhancement 4182.

Setting up default GridSortOrder with Vaadin8 and new Grid doesn't work

Our former solution based on Vaadin 7 Grid used multicolumn sorting. Data is sorted by backend database but we have to maintain visual infomation about sorting in column headers. Visualy it displays as small rectangles in column header.
Now with Vaadin 8 and new Grid, our data is, by default(by database), sorted by 'name' column so I'm defining default sort order for Grid using code as below. It seems to be straightforward but it doesnt show up on Grid. I can define GridSortOrder for one or two columns with no luck. Can't see anything on screen (in column headers). Any idea how to accomplish this properly?
List<GridSortOrder<Map>> orders=new ArrayList();
orders.add(new GridSortOrder<>(colName,SortDirection.DESCENDING));
grid.setSortOrder(orders);

Kendo Grid not sorting an alphanumeric column properly (Natural sort)

I am using Kendo Grid in my asp.net mvc 4 project. I have the latest version of Kendo UI. One of the columns on the grid has data like (initially unsorted) ..
MS1
MS2
MS3
MS2345
MS4
When I sort the column the data is displayed as ...
MS1
MS2
MS2345
MS3
MS4
Instead of ...
MS1
MS2
MS3
MS4
MS2345
This is what I am expecting when I sort the column.
What am I doing wrong?
Edit:
Based on the information I have been given so far (thanks guys), what I want to do is Natural Sort. I have more than 100,000 records in the database. I am doing all the sorting and filtering on the server-side due to the large number of records in the system.
Solution:
The following solution didnt work for me as our system is very large but just in case you wanna know.
Telerik guys replied saying "In order to do this you need to use custom binding. Then you would have full control over data operations such as paging and sorting. I found a few good resources how to implement natural sorting in .NET: http://www.interact-sw.co.uk/iangblog/2007/12/13/natural-sorting "
As #StephenByrne said string sorting works as your result. In order to achieve what you are looking for you should perform "natural sort"
What you can do is: in kendo grid, make the column as non-sort-able. Then using JavaScript click event fire any of below approaches to perform "natural sort"
Here are few examples how you can achieve this
http://my.opera.com/GreyWyvern/blog/show.dml/1671288
https://github.com/overset/javascript-natural-sort
https://stackoverflow.com/a/2802804/942855
http://www.bennadel.com/blog/2495-User-Friendly-Sort-Of-Alpha-Numeric-Data-In-JavaScript.htm

Looping through rows

I have an app that displays a number of rows of products. Right now it's hardcoded to use three html rows. I really want to build a template for one row, and loop through and populate as many as I need to show up. I was thinking this is a job for Web UI loops (think fruitsearch example). Or do I want to build the template and make it a web component and pass my data to that? I'm really not sure what the best structure is here. This is a bit of an open-ended question, but what's the ideal structure for populating multiple rows of data?
Use Web Components when you need re-usability, or if your rows have complex logic or layout associated with them.
Given your description of "rows of products" I would use a Web Component for each product row and possibly another Web Component to keep track of all the product rows. For instance, if this is a product search result page, the SearchResultComponent could have a title, a list of ProductRowComponents and the number of results found, and each ProductRowComponent could have a name, a price and an image.
This would make it easier to handle the complexity involved as well as allow re-usability (i.e. using multiple ProductRowComponents).

Smart gwt tree grid with multiple columns and check box

We need a Smart gwt tree grid with multiple columns and check box.
After some initial investigation it seems
1. Treegrid can support a tree for single columns and can support checkbox. But this is only for single column.
2. Treegrid can support multiple columns with datasource. However checkbox based selection is not supported..
Any suggestions on what component to use for this requirement?
Both features work together. Take any multi-column tree sample, eg this one:
http://www.smartclient.com/smartgwt/showcase/#tree_appearance_multicolumns
and just call
employeeTreeGrid.setSelectionAppearance(SelectionAppearance.CHECKBOX);

Resources