Telerik Forums
Kendo UI for jQuery Forum
1 answer
111 views

I have this ASP.NET MVC application using kendo ui in the frontend. 

I've made a grid that you can edit inline and sort by using drag and drop. 

Observe the follwing fiddle: https://jsfiddle.net/c817crh6/2/

I have two problems with this grid

1) When editing a textfield and clicking save, the row is not saved.  Only the read method is called on the server.

When I edit a textfield and click ( or tab ) out of the textfield, then it works fine ( First the update, then the read method is called ).

-> I think kendo does not detect an update on the model but can't figure out how to forse to update the model. 

2) When changing the order by draging in the list, the save button is calling the delete method on the server.  

 

My backend controller looks like this

public ActionResult Management_Edit([DataSourceRequest] DataSourceRequest request, ManagementViewModel management){ // Code to edit }

 

thanks in advance

Dimiter Topalov
Telerik team
 answered on 12 Oct 2016
3 answers
238 views

Hello!

we've currently searching for a reason why there are getting more and more event handler on an observable object we are using in different view models. 

http://jsbin.com/xujeteqivu/1/edit?html,js,output

In our opinion the change and get events should be unbound from the obs Observable after the unbind of the view model. With more view models which use the obs Observable the amount of events is getting bigger and bigger an the view model never gets collected from the garbage collector.

Thanks in advance!

Michael

Alexander Popov
Telerik team
 answered on 12 Oct 2016
1 answer
127 views
I have some code that looks for the k.filename on the file upload control to get the filenames and number of files being uploaded.  After updating to 2016 R3 from R2 SP1, it appears the class names of k-filename and k-filesize have been changed to k-file-name and k-file-size.  I don't see this listed anywhere in the breaking changes for this update.
Rumen
Telerik team
 answered on 11 Oct 2016
1 answer
132 views

Hi Kendo Team,

 

I think I may have found a bug but it would be nice if I could confirm it with you guys.

My team has been trying to wrap our code where we attach custom editors to cell ranges inside of a sheet.batch call to optimize the speed of our application.

However we noticed that when we do this, it seems to cause the custom editors to break (whether they are list dropdowns or date pickers).

You can replicate it in the kendo demo you guys have here:

http://docs.telerik.com/kendo-ui/controls/data-management/spreadsheet/how-to/validation-to-column

If you scroll to the very bottom of the edit section of the demo and change where you apply the validation rule by enabling showButton and putting it inside a sheet.batch, you will see that the dropdown list selectors in the demo preview will not work at all (they appear but nothing is displayed).

        //Apply the validation rule
        $("#spreadsheet").data("kendoSpreadsheet").activeSheet().batch(function () {
        range.validation({
          dataType: "list",
          from: "ListValues!A$1:B$1",
          allowNulls: true,
          type: "reject",
          titleTemplate: "Invalid value",
          messageTemplate: "Valid values are 'true' and 'false'."
        });
        });

 

In fact, if you replace that range.validation with a different type of validation like the date picker, it will also break - the icons will be displayed when selecting the cell but clicking the icon brings up an empty date picker that does not work.

 

        $("#spreadsheet").data("kendoSpreadsheet").activeSheet().batch(function () {
        range.validation({
          dataType: "date",
          showButton: true,
          comparerType: "between",
          from: "DATEVALUE(\"1/1/1900\")",
          to: "DATEVALUE(\"1/1/1998\")",
          allowNulls: true,
          type: "reject",
          titleTemplate: "Birth Date validaiton error",
          messageTemplate: "Birth Date should be between 1899 and 1998 year."
        });
        });

 

For whatever reason by putting the custom editors into the batch calls, it seems to be losing the "from" range to check against (seeing as the red arrow still works and the messageTemplate also displays properly on hover.

Thoughts?

Thanks,

Jeff

Mihai
Telerik team
 answered on 11 Oct 2016
3 answers
187 views
In ASP.NET MVC how do you allow selecting cell values from a list, in the UI for ASP.NET MVC R3 2016 it was advertised that it can be done?
T. Tsonev
Telerik team
 answered on 11 Oct 2016
3 answers
278 views

You know the default number of rows is 200, columns is 50. I want to set the number of rows and columns dynamically according to the data getting from controller code. Because the data length is not a fixed value, so how can I set the number of rows and columns dynamically by a method? please give example.

Petyo
Telerik team
 answered on 11 Oct 2016
1 answer
174 views

Hi all, 

Is there a way to embed a custom font in the SVG when exporting a DOM as SVG?

 

Thank you

Rumen
Telerik team
 answered on 11 Oct 2016
1 answer
215 views

Hello,

I want to add visible line to an area chart, so it looks like the charts in Windows Performance monitor. Is it possible to do so? Other option is to add fill to a line chart. I can't find a way how to do either of that.

Thanks!

Zak

Alex Hajigeorgieva
Telerik team
 answered on 11 Oct 2016
2 answers
645 views

Hi!, I'm having a problem using headerAttributes on a kendo ui Grid column.

var columnas = [];

columnas.push({ 

              headerAttributes: {                 

      style: "font-size: 14px"               },               title: "Desc",               field: "nombre",               width: 170,                 groupFooterTemplate:

 groupFooterTemplatePadre,

              footerTemplate: FooterTemplate});

 

grid = $("#grid").kendoGrid({     dataSource: dataSource,     groupable: false,     pdf: {         allPages: true,         avoidLinks: true,         paperSize: "auto",         margin: { top: "1cm", left: "1cm", right: "1cm", bottom: "1cm" },         landscape: true,         repeatHeaders: false,         scale: 0.4     },     resizable: false,     editable: !viewModelTitulo.cerrada,     selectable: "row",     navigatable: true,     scrollable: true,     columns: columnas,     dataBound: function(e){         var rows = e.sender.tbody.children();         for (var j = 0; j < rows.length; j++) {             var row = $(rows[j]);             var dataItem = e.sender.dataItem(row);             if (dataItem!=null && dataItem.get("nombre").toLowerCase().indexOf("company") >= 0) {                 row.addClass("green");             }         }     }});

 

using this code on a Kendo ui Grid the column header shows the image attached.

it's a bug?

Thanks!

 

 

 

 

Rosen
Telerik team
 answered on 11 Oct 2016
8 answers
1.1K+ views

I tried to parse "2016-07-24T23:25:33.632Z" to datePicker. Because I am in timezone +10, I will expect it come back 25/07/2016 however it always display 24/07/2016. Do you know how to make it work

        <input kendo-date-picker
               ng-model="dateString"
               k-format = "dd/MM/yyyy "
               k-parse-formats ="['YYYY-MM-DDTHH:mm:ss.fffZ']"
               />

 

http://dojo.telerik.com/@wingouyang/UBeRO

Igor
Top achievements
Rank 1
 answered on 11 Oct 2016
Narrow your results
Selected tags
Tags
Grid
General Discussions
Charts
Data Source
Scheduler
DropDownList
TreeView
MVVM
Editor
Window
DatePicker
Spreadsheet
Upload
ListView (Mobile)
ComboBox
TabStrip
MultiSelect
AutoComplete
ListView
Menu
Templates
Gantt
Validation
TreeList
Diagram
NumericTextBox
Splitter
PanelBar
Application
Map
Drag and Drop
ToolTip
Calendar
PivotGrid
ScrollView (Mobile)
Toolbar
TabStrip (Mobile)
Slider
Button (Mobile)
Filter
SPA
Drawing API
Drawer (Mobile)
Globalization
LinearGauge
Sortable
ModalView
Hierarchical Data Source
Button
FileManager
MaskedTextBox
View
Form
NavBar
Notification
Switch (Mobile)
SplitView
ListBox
DropDownTree
PDFViewer
Sparkline
ActionSheet
TileLayout
PopOver (Mobile)
TreeMap
ButtonGroup
ColorPicker
Pager
Styling
Chat
MultiColumnComboBox
Dialog
DateRangePicker
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Accessibility
Effects
PivotGridV2
Licensing
ScrollView
Switch
TextArea
BulletChart
QRCode
ResponsivePanel
Wizard
CheckBoxGroup
Localization
Barcode
Breadcrumb
Collapsible
MultiViewCalendar
Touch
RadioButton
Stepper
Card
ExpansionPanel
Rating
RadioGroup
Badge
Captcha
Heatmap
AppBar
Loader
Security
TaskBoard
Popover
DockManager
TimePicker
FloatingActionButton
CircularGauge
ColorGradient
ColorPalette
DropDownButton
TimeDurationPicker
ToggleButton
BottomNavigation
Ripple
SkeletonContainer
Avatar
Circular ProgressBar
FlatColorPicker
SplitButton
Signature
Chip
ChipList
VS Code Extension
AIPrompt
PropertyGrid
Sankey
Chart Wizard
OTP Input
SpeechToTextButton
InlineAIPrompt
StockChart
ContextMenu
DateTimePicker
RadialGauge
ArcGauge
AICodingAssistant
SmartPasteButton
PromptBox
SegmentedControl
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?