Mates, I would like to modify the group order, I did many searchs and nothing was found besides ASC and DES order. I've that sequence defined by kendo(Alfabetic order):
https://dojo.telerik.com/AJomALET/6
Sequence that I want:
Boston Crab Meat,
Camembert Pierrot,
Chang,
Aniseed Syrup,
....
Thanks in advance
When you export your kendo grid in PDF, it will copy the grid's style and data ,on how your grid is shown in the page. The best thing you can do is to make a custom sorting/ranking of your kendo grid groups before exporting. See this link.
Related
I want to create a bound form with next/prev/first/last/delete/new buttons.
Is there any sample code or demos out there on how to implement this? Even better would be samples that also show a linked subgrid, a la invoice details/Line Items.
Thanks, Brad
I tried using the frozen columns and detail template both at a time but both they are not supported at a time by kendo telerik grid I get this error every time when I try:
'Uncaught Error: Having both detail template and locked columns is not supported'.
Could you please look into this error. Would you give me an idea, how could I achieve both detail template and frozen columns together in kendo.
http://www.telerik.com/forums/grid-column-locking-with-detail-template
Shankar
As conflicting nature it's not possible in kendo ( or either grid . e.g. Excel sheet too )
http://kendoui-feedback.telerik.com/forums/127393-telerik-kendo-ui-feedback/suggestions/6263744-support-row-templates-with-frozen-columns
one probable solution is :
Create two grids side by side. ( left grid for frozen column , right grid for details columns ) you can use same dataSource for both the grid .
Make div size fixed so user cannot scroll on left grid .
hide those repeating columns in Right grid.
add one more extra expand button column in left grid.
on click of expand button of left grid, expand appropriate right side detail row.
i know this is not actual solution with kendo and lots of code work around, but using jquery, tricks you can at least achieve up to certain level.
=> if you have any solution then please share it here sankar. looks like this is old post .
I am a bit confused about my choice of Kendo UI grid for doing an excel like functionality.
My requirement is for a lab which they need to log samples and depending on some values do some calculations and update another cell. I need to add new rows to the grid and also do change tracking etc.
Any suggestions on the above?
I Have a TreeGrid with multiple levels I want to add Header for each level (i.e similar to that of subgrid, but i dont want to use it as the columns of subgrid doesnt align with the outer grid).
I would like to drive Porsche for free and that somebody should pay for the fuel additionally. :-) I think it's better that you use existing features of existing product if you want to use free products.
TreeGrid if jqGrid is the kind of grid. If the user collapse node the corresponding rows will be just made hidden. So the grid has column headers and no additional header can be created for tree node.
On the other side Subgrid, especially grid as subgrid, is more flexible. If you create subgrid inside of subGridRowExpanded callback you are free to set alignment, width or just everything from the child grid. You can even place any custom HTML an place of subgrid (see the demo from the answer). In the answer you will find an example how one can adjust width of subgrid if the column of main grid are resized.
So I think that you have to use grid as subgrid to implement your requirements. In any ways you should to write some additional code which implements your exact requirements.
Is there a way to specify the default sorting direction for columns in a Telerik MVC Grid?
example: click on column 'Date' and it sorts descending, click on column 'Name' and it sorts ascending
I do not think there is a way in today's Grid to change the "cycle" order for sorting operations. By default, the Grid will cycle through these sort orders when the header is clicked:
Unsorted > Ascending > Descending
If you use the API options described by Dick, you can set the initial sort behavior, but once the column is clicked, it will "resume" the cycle. So, if you set Date to Ascending initially, the next click will sort by Descending.
This is relatively common behavior for web grids, so it meets user experience expectations.
If you want to take explicit control over sorting behavior, there is a rich client-side API that allows you to specify sort and filters directly:
var grid = $('#yourGridId').data('tGrid');
//Descendingly sort the records by the Name property
grid.filter('Name-desc');
As you can see, you can specify the property name and sort direction. You can also sort on multiple fields. See the online docs for more examples.
I suppose you can play with the OrderBy method of the Telerik MVC grid and define the sort order explicitly - at least this is what I see from the demo description here.
Dick