Telerik Forums
Kendo UI for jQuery Forum
1 answer
289 views

Hello All,

I've seen questions like this several times and based on the answers, I think I'm doing everything right and even so it's not working.

My grid invokes the remote update method ok, and the server receives the requirement as expected. It executes the code perfectly. I'm using popup edit and the problem is the edit window never closes. It remains there. I receive no error message either from the grid control, the server or jquery/javascript.

The response I'm sending is the following:

Response HTTP/1.1 200 OK
Content-Length 110
Content-Type application/json; charset=utf-8
Server Microsoft-HTTPAPI/2.0
Access-Control-Allow-Origin *
Access-Control-Allow-Methods GET, POST, PUT, DELETE
Date Sun, 18 Sep 2016 00:01:57 GMT
[{"firstName":"XXX","lastName":"YYY","number":666,"role":0,"roleDescription":"User"}]

 

The grid definition follows:

$(document).ready(function () {
$("#userGrid").kendoGrid({
dataSource: {
type: "jsonp",
transport: {
read: "<%=ConfigurationManager.AppSettings["wsbase"]%>/getuserlist",
update: {
url: "<%=ConfigurationManager.AppSettings["wsbase"]%>/updateuser",
dataType: "jsonp",
type: "get",
},
 error: function (e) {
if (e.errors) {
alert(e.errors);
this.cancelChanges();
}
 },
},
            schema: {
               model: {
                  id: "number",
                  fields: {
                     number: { type: "number", editable: false },
                     firstName: { type: "string", editable: false },
                     lastName: { type: "string", editable: false },
                     role: { type: "number", validation: {min: 0, max: 3, required: true} },
                     roleDescription: { type: "string", editable: false }
                  }
               }
            }
},
pageable: false,
height: 350,
toolbar: ["create"],
columns: [
{ field: "number", title: "Número" },
            { field: "firstName", title: "Nombre"},
            { field: "lastName", title: "Apellido"},
            { field: "role", title: "Cód. Perfil"},
            { field: "roleDescription", title: "Perfil"},
            { command: ["destroy", "edit"], title: "Opciones"}],
editable: "popup"
});
});

 

Any help, VERY WELCOMED!

Eduardo
Top achievements
Rank 1
 answered on 18 Sep 2016
6 answers
340 views
I've noticed that when column filtering is applied to the grid that the Excel export number of rows is less than what is present on the grid after the column filtering.  It seems kind of random on what is missing.  Is this a known issue?   When I don't apply column filtering it exports the correct number of rows.
T. Tsonev
Telerik team
 answered on 17 Sep 2016
1 answer
375 views

Filter event is not firing in your demo.

The GridOptions interface in TypeScript definition files is also missing filter definition.

Dimiter Madjarov
Telerik team
 answered on 17 Sep 2016
1 answer
183 views

Export to PDF takes long time to download in case case of large data.

Thanks.

Dimiter Topalov
Telerik team
 answered on 17 Sep 2016
2 answers
284 views

when the first time generate the grid with data is fine but once i select another type id then it cause the problem happen on the grid. The second image will show the problem.

Code :http://jsbin.com/wasalutugo/edit?js,output

Dimiter Topalov
Telerik team
 answered on 17 Sep 2016
1 answer
102 views

Hi. In the standard Kendo Datasource usage with a scheduler (partial code), 

dataSource: {
                        batch: true,
                        transport: {
                            read: {
                                url: baseURL + "api/events",
                                dataType: "jsonp",
                                type: "GET",
                                contentType: 'application/json; charset=utf-8'
                            },
                            update: {
                                url: function (options) {
                                    var model = {
                                        taskId: 1,
                                        title: "test title",
                                        start: null,
                                        end: null,
                                        startTimezone: null,
                                        endTimezone: null,
                                        description: null,
                                        recurrenceRule: null,
                                        isAllDay: false
                                    };
I'd like to be able to access the values from the popup editor and throw them in the model. See all the nulls as placeholders above...I know this isn't standard protocol of doing things but...I'm just wondering, can it be done, and how?

Michael
Top achievements
Rank 1
 answered on 16 Sep 2016
3 answers
134 views

Hello,

I would like DatePicker to validate obviously invalid user input, but it doesn't happen. Why?

I use the following code:

<input type="text"/>
 
<script>
    kendo.culture("en-GB");
    $('input').kendoDatePicker();
 /script>

 

Here is it in dojo:  http://dojo.telerik.com/IHoSa

 

What are the steps to enable validtion of user's input?

 

Thanks

Patrick | Technical Support Engineer, Senior
Telerik team
 answered on 16 Sep 2016
5 answers
784 views

Hello

I'm using Kendo UI with Symfony and so far it works perfectly. Only when I check my code with Kendo's chrome extension, I get some warnings like

VM235:545 Detected Kendo UI version: "2014.3.1119"
VM237:170 Kendo UI is included before jQueryVM237:170 (anonymous function)VM237:169 (anonymous function)VM237:148 req.onreadystatechange
VM237:170 jQuery does not seem to be includedVM237:170 (anonymous function)VM237:169 (anonymous function)VM237:148 req.onreadystatechange
VM237:170 Kendo CSS file kendo.bootstrap.min_2.css loaded before kendo.common CSS
VM237:170 Kendo CSS file kendo.common_3.css loaded before kendo.common CSS
VM237:170 Kendo CSS file kendo.common_2.css loaded before kendo.common CSS
VM237:170 Kendo CSS file kendo.bootstrap.min_3.css loaded before kendo.common CSS
VM237:170 The kendo.common CSS file is not included

I tried to change the load order of the files, but the warnings remain. As mentioned already, everything works fine. Should I bother?

Thank you

T. Tsonev
Telerik team
 answered on 16 Sep 2016
2 answers
1.5K+ views

I want to set data with data method(data), but I want to tell different total that is the size of array. Something like this:

dataSource.data({ data: this.asArray, total: this._rowCount});

How can I do that without setting transport option?

Seyfor
Top achievements
Rank 1
 answered on 16 Sep 2016
1 answer
1.3K+ views
I am writing this below. I am able to get the StartDate field value in my case, but I am not able to get EndDate field value. It is coming as undefined. Please help.

model: {
                 id: "BusinessAreaDivisionMappingId",
                 fields: {
                     BusinessAreaDivisionMappingId: { type: "number", editable:false,     nullable: false },
                     StartDate: {
                         type: "date",
                         required: true,
                         validation: {
                             required: true,
                             dateComparisonValidation: function (element) {
                                 debugger;
                                 var columnIndex = 0;
                                 var grid = $("#bAPLMappingGrid").data("kendoGrid");
 
                                 for (columnIndex; columnIndex < grid.columns.length; columnIndex++) {
                                     if (grid.columns[columnIndex].field == "EndDate") {
                                         break;
                                     }
                                 }
                                 var StartDate = new Date($(element).data("kendoDatePicker").value());
                                 var EndDate = new Date($(element).closest("tr").find("td:eq(" + columnIndex + ")").text());
                                 element.attr("data-dateComparisonValidation-msg", "Start Date Cannot be more than End Date");
                                 if (StartDate && EndDate)
                                     return (StartDate >= EndDate);
                                 return true;
                             }
                         }
                     },
                     EndDate: { type: "date" },
                     IsDeleted: { type: "boolean", editable: false, nullable: true }
                 }
             }
Konstantin Dikov
Telerik team
 answered on 16 Sep 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?