Telerik Forums
UI for ASP.NET MVC Forum
1 answer
481 views

Hi, 

 

How can i export selected Grid rows to XML file with specific format?

 

 

Konstantin Dikov
Telerik team
 answered on 07 Aug 2018
3 answers
231 views

Hello

I had in mind to use it with "incell" edition, is there any built in custom validation as with the grid, since I can not rely on the model validation?

Thank you very much !!

Tsvetina
Telerik team
 answered on 03 Aug 2018
5 answers
876 views

I'm trying to add a toolbar Template to the MVC Grid toolbar in addition to the Excel button.

When I add the template, the Excel button disappears. 

How can I have both?

Code below.

Thanks!

.ToolBar(toolbar =>
{
    toolbar.Excel();
    toolbar.Template("<button type='button' onclick='customCommand()'>Button Here</button>");
})

 

Georgi
Telerik team
 answered on 03 Aug 2018
2 answers
475 views
I have found an issue with the Grid using in-line editing - and it only seems to happen in the Edge browser.  A user will enter/edit data and press the TAB key (to leave the field) and the data disappears.  I also tried the demo (https://demos.telerik.com/aspnet-mvc/grid/editing) and was able to replicate the issue.  It only appears to happen when a user tabs out of the field, if they click out of the field the changes remain (as a dirty cell).  Is there a workaround for this?
Michael
Top achievements
Rank 1
 answered on 02 Aug 2018
1 answer
275 views

I am currently new to Kendo and the Scheduler Component and was wondering whether I can customize the daily working hours per work day. Let’s say that I’d like Monday’s working hours to start from 7:00 till 19:00. I then would Like Tuesday’s working hours to start from 19:00 and end at 07:00.

A possible solution is to have custom working hours per day.

Another possible workaround is to have a customized appointment block built that would have a class working similarly as the k-nonwork-hours css class. In this scenario, I want to be able to color the number of columns with the retrieved working hours, to show the user that he has an appointment on that day.

Can you please point me in the right direction as to how this can be achieved?

Neli
Telerik team
 answered on 02 Aug 2018
6 answers
1.4K+ views

Hi there,

So I was working on a solution for required checkbox, Terms and Conditions. 

You know, where you must check it so you can submit a form. 

So I was using all the Telerik components (Data Access ORM, ASP.NET MVC UI) and build the form like so. 

And I really want to get the checkbox must be checked. I tried following this tutorial below:

http://jasonwatmore.com/post/2013/10/16/aspnet-mvc-required-checkbox-with-data-annotations

And I have tried all the methods there, it does not work. The form would still be able to submit without checkbox being checked.

I am thinking if there is something special about Telerik that I can't get it working?

Help would be really appreciated! Thank you.

 

 

Kendo.MVC version is 2016.2.607.440. 

.Net 4.5

If you need more information please let me know.

Ianko
Telerik team
 answered on 02 Aug 2018
1 answer
857 views

Hello,

Currently I am trying to get the state of a checkbox that is set to indeterminate. I have a list of TreeNodes and am iterating through each node and adding information from each node to a list. Currently it is adding information based off of if the node is checked.

We have found we need to also include if the node's checkbox is set to indeterminate as well.

I know I can get this value in a roundabout way using JQuery but am interested in seeing if you have any built in functionality or other ways to get if the checkbox is set to indeterminate.

Thanks!

Attila Antal
Telerik team
 answered on 01 Aug 2018
3 answers
135 views

Hi, I'm struggling with something that should be easy, so I hope you can point to something stupid I'm doing wrong.

I have this MultiSelectFor.  When I go the GetCertifications method, I am returning the expected number of results, yet the display shows undefined for each one.  I'd expect that to happen if the fields were misnamed, but as far as I can tell I'm getting them correctly with the appropriate names.

 

@(Html.Kendo().MultiSelectFor(m => m.CertificationList)
                      .DataTextField("CertTitle")
                      .DataValueField("Id")
                      .Placeholder("Select Certifications...")
                      .AutoBind(false)
                      .MinLength(3)
                      .Filter(FilterType.Contains)
                      .DataSource(source =>
                      {
                          source.Read(read =>
                          {
                              read.Action("GetCertifications", "DemandForecastInfoSummary");
 
                          })
 
                      .ServerFiltering(true);
                      })
                  )

 

public ActionResult GetCertifications(string text)
      {
          if (string.IsNullOrEmpty(text))
          {
              return Json("", JsonRequestBehavior.AllowGet);
          }
          var rtnValue = new SelectList( DemandPlanService.GetAllCertifications(text).ToList(),"Id","CertTitle");
            
          return Json(rtnValue, JsonRequestBehavior.AllowGet);
      }

 

Nencho
Telerik team
 answered on 01 Aug 2018
3 answers
108 views

Running into a weird issue, we're setting up our grids with javascript for this page. 

 

 $('#assets-grid').kendoGrid({
                dataSource: new kendo.data.DataSource({
                    transport: {
                        read: 'application/GetAssetDetails'
                    },
                    schema: {
                        data: function(response) {
                            var result = [];

                            if (!response.success && response.message) {
                                errorAlert(response.message, 'modalNoteLabel', 10000);
                            }

                            if (response && response.Data) {
                                result = response.Data;
                            }
                            return result;
                        },
                        total: function(response) {
                            var length = 0;
                            if (response && response.Data) {
                                length = response.Data.length;
                            }

                            return length;
                        }
                    },
                    pageSize: 10,
                    serverPaging: false //I added this to fix, also tried serverOperation:false and that didnt work
                }),
                autoBind: false,
                sortable: true,
                scrollable: false,
                pageable: true,
                columns: [
                    {
                        field: 'Column',
                        title: 'olumne',
                        attributes: {
                            'title': '#: Column #'
                        },
                        headerAttributes: {
                            'title': 'column'
                        }
                    },
                    {
                        field: 'Column',
                        title: 'Column',
                        attributes: {
                            'title': '#: Column #'
                        },
                        headerAttributes: {
                            'title': 'Column'
                        }
                    },
                    {
                        field: 'Column',
                        title: 'Column',
                        attributes: {
                            'title': '#: Column #'
                        },
                        headerAttributes: {
                            'title': 'Column'
                        }
                    },
                    {
                        field: 'Column',
                        title: 'Column',
                        attributes: {
                            'title': '#: Column #'
                        },
                        headerAttributes: {
                            'title': 'Column'
                        }
                    }
                ],
                noRecords: {
                    template: "No records are found."
                }
            });

 

Ive added the section in the Datasource for serverPaging: False. 

 

What was happening is when the user loads the gird it would load fine, when they navigated the pages its fine, however if you looked at the network tab in developer tool bar or monitored events on the server you would notice 503 for the request stating that the id coming back is null. I tried to use serverOperation:false but that was still showing the same issue. I switched it to serverPaging and it seems to be resolved. My question is, Is this correct? Is there something else I am missing that should be done to prevent 503's when navigating paging?


Viktor Tachev
Telerik team
 answered on 01 Aug 2018
1 answer
167 views

Hi,

I'm currently creating Charts dynamically with a mixture of Columns and Lines.

I have two lines in this particular chart 1. Cumulative Total (CT) and 2. Forecast Cumulative Total (FCT).

What I'm trying to achieve is, for this financial year we calculate our "CT" up to the current month/year and anything after that we calculate our "FCT". 

How do i get these lines to match as the end of the period of the "CT" and start of "FCT".

I have attached an example that i can easy do in Excel.

Thanks,

Lee.

Tsvetina
Telerik team
 answered on 31 Jul 2018
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
Bronze
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
Bronze
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?