Telerik Forums
Kendo UI for jQuery Forum
2 answers
178 views
Hi,


There is two views in my app using ajax rest api.

Scenario 1:
I'm on the view A,
I click on the tabstrip to display  view B.
I wait for the view B to be fully displayed and  I click on the tabstrip to display  view A.
Works fine ...

Scenario 2:
I do the same but without waiting the view to be fully displayed.
I get a white screen (no header, no footer) and the app is stuck.


I have the bug in an IPhone 4 but not in an IPhone 5
Are you aware of this bug ? Can I hook on an error event in the kendo app ?

Thanks for your help







Colibri
Top achievements
Rank 1
 answered on 12 Dec 2012
3 answers
755 views
How do you use new readonly bindings?
Georgi Krustev
Telerik team
 answered on 12 Dec 2012
2 answers
340 views
Hello,

I am encountering an error for which several forum posts with solutions were posted for Telerik MVC, but I can't seem to find how to solve it with Kendo.

When running my page with Kendo grid in Chrome or Firefox, all works fine.
However, when opening the page in IE9, It throws the following error:
SCRIPT5007: Unable to get value of the property 'data': object is null or undefined <br>kendo.aspnetmvc.min.js, line 8 character 2212
But besides that, everything seems functional.
For MVC, the solution seemed to be using the @html.Telerik.ScriptRegistrar to force it to use the latest JQuery etc.

For Kendo, I don't seem to be able to find something similar.
I am using Kendo UI Complete v2012.2.710
JQuery version 1.8.1
Query.UI.Combined 1.8.23
jQuery.Validation 1.10.0

the following scripts are included
<script src="@Url.Content("~/Scripts/modernizr-2.6.2.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery-1.8.1.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery-ui-1.8.23.min.js")" type= "text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.unobtrusive-ajax.min.js")" type= "text/javascript"></script>
<script src="@Url.Content("~/Scripts/kendo/kendo.aspnetmvc.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/kendo/kendo.all.js")" type= "text/javascript"></script>
<script src="@Url.Content("~/Scripts/kendo/kendo.web.min.js")" type="text/javascript"></script>

I also attempted adjusting the X-UA-Compatible without success:
<meta http-equiv="X-UA-Compatible" content="IE=8" />
How to solve this with Kendo?

Ewald
Top achievements
Rank 1
 answered on 12 Dec 2012
3 answers
111 views
Hi There,

I have a grid and I need to highlight the rows which have a field called DATE_DUE and the date due is prior to certain days.

This certain date is a parameter value in a parameter table. Whatever is the number of days in a field called DAYS in that parameter table, I need to highlight the transactions in the grid when the DATE_DUE < CURRENT_DATE+DAYS.

For example, there is a transaction in grid and DATE_DUE is 20 Dec 2012. If the value of the DAYS in the parameter table is 10, I need not highlight that transaction but if is 20, I need to highlight. Today's date is 06 Dec 2012.

Please note that there is no field to join the table from where we get the grid data DATE_DUE and the parameter table where DAYS is a field
Vladimir Iliev
Telerik team
 answered on 12 Dec 2012
3 answers
795 views

Hi, I’ve been fighting this for a couple days so I thought I’d try to put the question out there. It kind of relates to a different earlier post but this is for remote data.  I’m using JQuery 1.8.2, kendoui.web.2012.3.1114 on IE9.

1.)     I’m trying to duplicate http://demos.kendoui.com/web/treeview/remote-data.html but I don’t understand how this works and populates on demand.  I’m trying to duplicate this with a WCF JSON response.   The only difference is that I’m not using JSONP since my service is local.  My WCF service returns the following.
 
d: "[{"FolderId":1,"FolderName":"Manufacturing","ParentFolderId":0,"UserId":30,"HasChildren":true}]"

 2.)    I’m testing getting the remote data 3 different ways below.  It binds to each treeview because it renders “Manufacturing” but the “HasChildren:true” doesn’t seem to have any effect on showing the arrow to expand.  Plus how would I populate on demand like #1 above?
 
3.)    What benefit does the transport object have over calling the $.ajax() method?

 My goal is to understand these enough so I can bind on demand OR load the entire treeview at once. 

//*-------------------------------------------------------------------------------
                
//  Remote HierarchicalDataSource demo using transport/parse
//*-------------------------------------------------------------------------------               

 var homogeneous = new kendo.data.HierarchicalDataSource({
 transport: {
 
read: {
 
url: "/Secure/WCF/MyService.svc/GetFolderList",
 
dataType: "json",
 
data: {
  
UserId: 30,
  
FolderId: 1
 
}
}
 },
schema: {
 
model: {
 
id: "FolderId",
 
hasChildren: "HasChildren"
},
 parse: function(data){
 
return preprocessData(data);
}
});

function preprocessData(data) {
 $("#treeviewTransportRemoteData").data("kendoTreeView").setDataSource(JSON.parse(data.d));
}

 $("#treeviewTransportRemoteData").kendoTreeView({
     dataSource: homogeneous,
    dataTextField: "FolderName"
}).data("kendoTreeView");

//*----------------------------------------------------------------------------
//  Remote data using JQuery Ajax method to populate remote data  
//*------------------------------------------------------------------------------                 

var params = new Object();
params.UserId = 30; 
params.FolderId = 1;             

 var jsonData = $.param(params);  
$.ajax({
  type: "GET",
  url: "/Secure/WCF/MyService.svc/GetFolderList",
  data: jsonData,
 
contentType: "application/json; charset=utf-8",
 
dataType: "json",
success: function (msg) {
 
$("#treeviewRemoteDataJQueryAjax").data("kendoTreeView").setDataSource(JSON.parse(msg.d));
},
error: function (XMLHttpRequest, textStatus, errorThrown) {
  alert(textStatus);
  }
  });
});

 $("#treeviewRemoteDataJQueryAjax").kendoTreeView({
dataTextField: "FolderName"
}).data("kendoTreeView");

 //*-------------------------------------------------------------------------------
//  Remote data using JQuery Ajax inside transport read.
//*-------------------------------------------------------------------------------

 var hds =  new kendo.data.HierarchicalDataSource({

 transport: {
 
read: function(options) {
    v
ar params = new Object();
   
params.UserId = 30; 
   
params.FolderId = 1;
   
var jsonData = $.param(params);                          

         $.ajax({
   
type: "GET",
   
url: "/Secure/WCF/MyService.svc/GetFolderList",
    data: jsonData,
   
contentType: "application/json; charset=utf-8",
   
dataType: "json",
   
success: function (msg) {
     
$("#treeviewTransportJQueryAjax").data("kendoTreeView").setDataSource(JSON.parse(msg.d));
   
 },
   
error: function (XMLHttpRequest, textStatus, errorThrown) {
    
alert(textStatus);
   
}
 
 });
 }
},
 schema: {
  
model: {
    
id: "FolderId",
     
hasChildren: "HasChildren"
   }
}

 });

 $("#treeviewTransportJQueryAjax").kendoTreeView({
 
dataSource: hds,
 
dataTextField: "FolderName"}).data("kendoTreeView");

David
Top achievements
Rank 1
 answered on 12 Dec 2012
1 answer
1.3K+ views
Hi,

Can you give me work around for extending kendo combo box with checkbox and multiselect.

Thanks.
Iliana Dyankova
Telerik team
 answered on 12 Dec 2012
1 answer
545 views
Hi,
i am new to kendo-UI,i am using mvc3 architecture.i can able to bind values from database to ComboBox and as well as to grid. Right now i got one problem that when i'm selecting ComboBox, the selected value pass to database (which is from View to Model) get the data from database. would you please help me out ASAP. 
Jayesh Goyani
Top achievements
Rank 2
 answered on 12 Dec 2012
1 answer
124 views
Once a datasource is created, is it possible to change the grouping field in code?

I tried:

dataSource.options.group.field = "Name";

But it has no effect on the grid using the datasource.
Nikolay Rusev
Telerik team
 answered on 12 Dec 2012
1 answer
254 views
Given a viewmodel which contains an array of objects that have a boolean property (Selected), how should I set the background color of the ListView items dynamically.  I have tried to use the style binding which works fine when the ListView first loads but the ListView is not updated as the items "Selected" property change (on click).

Here is the fiddle.
Petyo
Telerik team
 answered on 12 Dec 2012
1 answer
63 views
Hey all,
VERY GREEN here with KendoUI!  I was looking for an example out there of how to use DataSource to connect to my SQL Server.  I'm relatively old school, and am used to using the ol' connection and recordset, then using a SQL statement - getting the results, and populating the combobox using a loop. I am a visual learner, so - I was wondering if anyone out there has a good example of how I can learn this transition?  I( have a ton of leghacy code, but intend to slowly make changes over to all KendoUI controls.  But - obviously - need to learn the basics....

Thank Youy in Advance!,
Chris
Georgi Krustev
Telerik team
 answered on 12 Dec 2012
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
Drag and Drop
Application
Map
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
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?