Telerik Forums
UI for ASP.NET MVC Forum
10 answers
2.8K+ 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
214 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.3K+ 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
403 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
225 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
703 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
926 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.9K+ 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
3 answers
1.3K+ views

My question is How can I find value and select it with jquery?

I have a textarea and the user put a list to it.

I have to check one by one the item is exist in the multiselect and select it.

Thanks, Károly 

Joana
Telerik team
 answered on 16 Jan 2019
2 answers
458 views

Hello,

What is the best way to handle a grid that can be edited by one role and read only by another?

Thanks

John

John
Top achievements
Rank 1
 answered on 15 Jan 2019
Narrow your results
Selected tags
Tags
Grid
General Discussions
Scheduler
DropDownList
Chart
Editor
TreeView
DatePicker
ComboBox
Upload
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
Dialog
MultiColumnComboBox
DropDownTree
Checkbox
Slider
Switch
Notification
Accessibility
ListView (Mobile)
Pager
Security
ColorPicker
DateRangePicker
Wizard
Styling
Chat
DateInput
MediaPlayer
TileLayout
Drawer
SplitView
Template
Barcode
ButtonGroup (Mobile)
Drawer (Mobile)
ImageEditor
RadioGroup
Sparkline
Stepper
TabStrip (Mobile)
GridLayout
Badge
LinearGauge
ModalView
ResponsivePanel
TextArea
Breadcrumb
ExpansionPanel
Licensing
Rating
ScrollView
ButtonGroup
DropDownButton
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
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
SmartPasteButton
PromptBox
SegmentedControl
LLM Kit
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?