Telerik Forums
UI for ASP.NET MVC Forum
6 answers
297 views

 Hello,

is it possible when using the built-in PDF export functionality to make it list each grouped section (created via Ajax().Group()) onto its own page?

I'm required to create two types of reports. One that exports all items combined into a single report and a second one that exports based on grouping of a specific column. I have the grid grouped correctly but when exporting, I need each group on it's own page rather than displayed all in one grid.

Is there built-in functionality for this or a known work-around?

Thank you.

Tsvetina
Telerik team
 answered on 22 Jan 2019
2 answers
104 views

Hi,

I have a Word document I use as template, the document contains multiple sections, page breaks and column breaks. When the PDF is exported, I got every section in a new page and all pages with multiple columns render as one column.

Am I missing some setting in the export?

Thanks for the help!

Eliel
Top achievements
Rank 1
 answered on 21 Jan 2019
10 answers
2.6K+ views
I found out how to export a single grid to excel from the grid but how would you export a grid that contains client templates?  Is it even possible?

Thanks.....
Ezequiel
Top achievements
Rank 2
 answered on 21 Jan 2019
10 answers
154 views

Hello,

I'm looking at the "editing_custom" grid example for ASP.NET MVC and wondering if there is a way to bind the drop down without ViewData?  I would like to use a generic ViewModel with Value and Text pairs similar to our existing MVC solution.  I am asking this because there is no reusability when populating the CategoryViewModel and ViweData in the controller.  Only the EditorTemplate can be reused.

@model Kendo.Mvc.Examples.Models.CategoryViewModel

@(Html.Kendo().DropDownListFor(m => m)
        .DataValueField("CategoryID")
        .DataTextField("CategoryName")
        .BindTo((System.Collections.IEnumerable)ViewData["categories"])
)

Also, how do you add a "--Select a Category--" at the top of the dropdown list (in your example and in a non-ViewData approach)?

Thanks

John

Viktor Tachev
Telerik team
 answered on 21 Jan 2019
7 answers
1.2K+ views

Hello,

Would someone be able to offer the solution on how to get certain node's data which is dynamic loaded (load on demand)?

The case is that in my MVC project the top level node have already be loaded on TreeView . I need load second level to fourth level node based on every level's condition (on one button click). My problem is I cannot get second level's detail data (after the nodes appended to top level ) which third level depend on. When I do the debug the count of second level nodes showed correctly, but not detail data anywhere. Do you have some suggestions? Thanks in advance!

Daochuen
Top achievements
Rank 1
Iron
Veteran
Iron
 answered on 18 Jan 2019
3 answers
282 views
Is it possible to call an ActionResult in my controller in the refresh?

I need to pass the ID to my Controller to get back data.

windowObject.refresh({
    url: "/feedbackForm"
});
Marin Bratanov
Telerik team
 answered on 18 Jan 2019
3 answers
147 views

Something is not clicking for me on this, and I am not really sure where to start.  I have what amounts to a directory structure I am sending from the server (see json below) and trying to load into the treeview.  However, I am getting an error stating .  Everything I have been able to find on that pretty much says that I need to define the schema.  This is taking too long for me to figure out and any help would be appreciated.

 

01.{
02.  "FolderId": 1,
03.  "Name": "root",
04.  "Description": "root description",
05.  "Note": "root note",
06.  "Parent": null,
07.  "Children": [
08.    {
09.      "$id": "1",
10.      "FolderId": 2,
11.      "Name": "Sub Level 1",
12.      "Description": "Sub Level 1 description",
13.      "Note": "Sub Level 1 note",
14.      "Children": [],
15.      "Documents": [
16.        {
17.          "$id": "2",
18.          "DocumentId": 2,
19.          "Name": "PepsiCo Medical Test Doc with picture.docx",
20.          "Note": "Copied from Document.Version 1.1",
21.          "Description": null,
22.          "DocType": 1,
23.          "Status": 3,
24.          "AllVersions": [],
25.          "DocumentHistories": [],
26.          "ViewingRoles": null,
27.          "CurrentUserId": "00000000-0000-0000-0000-000000000000",
28.          "Versions": [],
29.          "PublishedVersion": null,
30.          "LatestDraftVersion": null,
31.          "LatestVersion": null,
32.          "Disposed": false
33.        }
34.      ],
35.      "Disposed": false
36.    },
37.    {
38.      "$id": "3",
39.      "FolderId": 3,
40.      "Name": "Sub Level 2",
41.      "Description": "Sub Level 2 description",
42.      "Note": "Sub Level 2 note",
43.      "Children": [
44.        {
45.          "$id": "4",
46.          "FolderId": 4,
47.          "Name": "Sub Level 2_1",
48.          "Description": "Sub Level 2_1 description",
49.          "Note": "Sub Level 2_1 note",
50.          "Children": [],
51.          "Documents": [
52.            {
53.              "$id": "5",
54.              "DocumentId": 1,
55.              "Name": "PepsiCo Medical Test Doc with picture.docx",
56.              "Note": null,
57.              "Description": null,
58.              "DocType": 1,
59.              "Status": 2,
60.              "AllVersions": [],
61.              "DocumentHistories": [],
62.              "ViewingRoles": null,
63.              "CurrentUserId": "00000000-0000-0000-0000-000000000000",
64.              "Versions": [],
65.              "PublishedVersion": null,
66.              "LatestDraftVersion": null,
67.              "LatestVersion": null,
68.              "Disposed": false
69.            }
70.          ],
71.          "Disposed": false
72.        }
73.      ],
74.      "Documents": [],
75.      "Disposed": false
76.    }
77.  ],
78.  "Documents": [],
79.  "Disposed": false
80.}
Veselin Tsvetanov
Telerik team
 answered on 18 Jan 2019
10 answers
614 views

I am trying to cascade 3 levels but is failing the 3rd drop down.  Is this not possible? Everything works until I select the 500 scale then nothing else the 100 scale option does not do anything

 

    <h4>Select Grid:</h4>
    @(Html.Kendo().DropDownList()
              .Name("MainGrid")
              .HtmlAttributes(new { style = "width:50%" })
              .OptionLabel("Select Grid Section...")
              .DataTextField("Gridid")
              .DataValueField("Gridid")
              .DataSource(source =>
              {
                  source.Read(read =>
                  {
                      read.Action("GetCascadeMainGrid", "GridPrint");
                  });
              })
    )
 
    <h4 style="margin-top: 2em;">500 Scale:</h4>
    @(Html.Kendo().DropDownList()
              .Name("Grid500")
              .HtmlAttributes(new { style = "width:50%" })
              .OptionLabel("Select Map 500 Scale...")
              .DataTextField("MapName")
              .DataValueField("Pagenumber")
              .DataSource(source =>
              {
                  source.Read(read =>
                  {
                      read.Action("GetCascadeGrid500", "GridPrint")
                      .Data("filterGrid500");
                  })
                  .ServerFiltering(true);
              })
              .Enable(false)
              .AutoBind(false)
              .CascadeFrom("MainGrid")
    )
 
 
 
     <button class="k-button k-primary" id="get" style="margin-top: 0em;  ">Add this Grid</button>
    <script>
            function filterGrid500() {
                return {
                    MainGrid: $("#MainGrid").val()
                };
            }
    </script>
 
    <h4 style="margin-top: 2em;">100 Scale:</h4>
    @(Html.Kendo().DropDownList()
              .Name("Grid100")
              .HtmlAttributes(new { style = "width:50%" })
              .OptionLabel("Select Map 100 Scale...")
              .DataTextField("MapName")
              .DataValueField("Pagenumber")               
              .DataSource(source =>
              {
                  source.Read(read =>
                  {
                      read.Action("GetCascadeGrid100", "GridPrint")
                      .Data("filterGrid100");
                  })
                  .ServerFiltering(true);
              })
              .Enable(false)
              .AutoBind(false)
              .CascadeFrom("Grid500")
    )
    <button class="k-button k-primary" id="get2" style="margin-top: 0em;">Add this Grid</button>
    <script>
           function filterGrid100() {
                return {
                    Grid500: $("#Grid500").val()
                };
            }
    </script>
</div>
<script>

 

Dimitar
Telerik team
 answered on 17 Jan 2019
1 answer
856 views

The default Kendo Grid's behavior is to display a text box for string editing. How do you change this to a textarea?

I am trying to use a EditorTemplate but cannot retrieve or pass the model's string values if I use Html.TextArea

Tsvetina
Telerik team
 answered on 17 Jan 2019
7 answers
1.8K+ views
Hi, I am using the grid's persist state feature to retain a user's current page, sorts, filter, etc.  I've been asked to add a "Reset Grid State" button to the grid to basically set the grid back to how it looked on initial load prior to any paging, sorting, filtering, etc.  What's the best way to do this?
Alex Hajigeorgieva
Telerik team
 answered on 16 Jan 2019
Narrow your results
Selected tags
Tags
Grid
General Discussions
Scheduler
DropDownList
Chart
Editor
TreeView
DatePicker
Upload
ComboBox
MultiSelect
ListView
Window
TabStrip
Menu
Installer and VS Extensions
Spreadsheet
AutoComplete
TreeList
Gantt
PanelBar
NumericTextBox
Filter
ToolTip
Map
Diagram
Button
PivotGrid
Form
ListBox
Splitter
Application
FileManager
Sortable
Calendar
View
MaskedTextBox
PDFViewer
TextBox
Toolbar
MultiColumnComboBox
Dialog
DropDownTree
Checkbox
Slider
Switch
Notification
ListView (Mobile)
Pager
Accessibility
ColorPicker
DateRangePicker
Wizard
Security
Styling
Chat
MediaPlayer
TileLayout
DateInput
Drawer
SplitView
Barcode
ButtonGroup (Mobile)
Drawer (Mobile)
ImageEditor
RadioGroup
Sparkline
Stepper
TabStrip (Mobile)
GridLayout
Template
Badge
LinearGauge
ModalView
ResponsivePanel
TextArea
Breadcrumb
ExpansionPanel
Licensing
Rating
ScrollView
ButtonGroup
CheckBoxGroup
NavBar
ProgressBar
QRCode
RadioButton
Scroller
Timeline
TreeMap
TaskBoard
OrgChart
Captcha
ActionSheet
Signature
DateTimePicker
AppBar
BottomNavigation
Card
FloatingActionButton
Localization
MultiViewCalendar
PopOver (Mobile)
Ripple
ScrollView (Mobile)
Switch (Mobile)
PivotGridV2
FlatColorPicker
ColorPalette
DropDownButton
AIPrompt
PropertyGrid
ActionSheet (Mobile)
BulletGraph
Button (Mobile)
Collapsible
Loader
CircularGauge
SkeletonContainer
Popover
HeatMap
Avatar
ColorGradient
CircularProgressBar
SplitButton
StackLayout
TimeDurationPicker
Chip
ChipList
DockManager
ToggleButton
Sankey
OTPInput
ChartWizard
SpeechToTextButton
InlineAIPrompt
TimePicker
StockChart
RadialGauge
ContextMenu
ArcGauge
AICodingAssistant
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?