Telerik Forums
Kendo UI for jQuery Forum
1 answer
75 views
We've run into a situation where we need to be able to tell if a view is being shown because the user clicked 'back' (whether via an HTML button, or the back button on their device/browser). Is there any way to do this from within the view's show event?

Thanks,
Jonathan
Jonathan M
Top achievements
Rank 1
 answered on 12 Dec 2012
4 answers
242 views
Hi,
We are trying to load a Kendo Tree view control with XML document as datasource. But we can't fnd any code samples for the same. We are struck here. Can anyone help us by providing some sampe code?
Hari
Top achievements
Rank 1
 answered on 12 Dec 2012
2 answers
96 views
how to get the ID(Primary key) of the ProjectGroup model ? when i want to use that ID in the method like DataServiceFactory.AdminService.GetUsersForProjectGroup(ID) , i cant bind it , just for now to check, i passed ID as "1" in the below code . can any one help how to bind the "ID "

@(Html.Kendo().Grid(Model.ProjectGroups)
    .Name("Grid")
    .Columns(columns =>
                 {
                     columns.Template(@<div><h4>@item.Name</h4><small>@item.Description</small></div>).Title("Name");
                     List<User> users = DataServiceFactory.AdminService.GetUsersForProjectGroup(1);
                     columns.Template(
                         @<div>
                         @foreach(var user in users){<p>@user.FullName</p>}</div>).Title("Members");
                     List<Partition> partitions = DataServiceFactory.AdminService.GetAccessedPartitionForProjectGroup(1);
                     columns.Template(
                         @<div>
                         @foreach (var partition in partitions)
                         {<p>@partition.Name</p>}</div>).Title("Partitions");

                     columns.Template(@<a href="@Url.Action("EditGroup", new { ID = item.ID })"><i class="icon-pencil"></i></a>);
                      
                 })
                 .Pageable()
                 .Sortable()
    )
Petur Subev
Telerik team
 answered on 12 Dec 2012
4 answers
140 views
If I navigate directly to a view in my app, without parameters, my views show as they should:  
http://localhost:34991/MobileNew/Account/Dashboard/#clientSearchByLastNameView

If I add parameters, it will 'reset' the app, and start on the first/initial view:
http://localhost:34991/MobileNew/Account/Dashboard/#clientSearchResultsView?SearchLastName=Smith

I should add, when I say "navigate", I don't mean app.navigate.  I mean a direct link from the browser's address bar.

Is this a known issue, and what is the workaround?
RodEsp
Top achievements
Rank 2
 answered on 12 Dec 2012
1 answer
128 views
Hello, I am trying to access my datasource after I read it in remotely.  The problem is that it thinks that my datasource is undefined.  I am pretty sure I am using the proper syntax because when I check the data in the change() event, it shows all the data correctly and I can access each field.  But when i try to do it outside of the code it doesn't work.  Here is my code and the errors I am getting.  PLEASE HELP!

PlayerCalculatorModule.prototype.initialize = function() {
    'use_strict';
    var self = this;
    var calcData;
    this.eventModel = kendo.data.Model.define({
        id: "playerGUID",
        playerFirstName: "playerFirstName",
        playerLastName: "playerLastName",
        pricePerTd: "pricePerTd",
        pricePerYard: "pricePerYard",
        pricePerFumble: "pricePerFumble",
        pricePerSacked: "pricePerSacked",
        pricePerIncompletion: "pricePerIncompletion",
        pricePerInterception: "pricePerInterception",
        pricePerCompletetion: "pricePerCompletetion",
        playerStartingPrice: "playerStartingPrice"
    });
    this.calcData = new kendo.data.DataSource({
        transport: {
            read: {
                // the remote service url
                url: "/Market/ServiceBeans/playerCalcService.jsp",
                // JSONP is required for cross-domain AJAX
                dataType: "json",
                // additional parameters sent to the remote service
                data: { //additional parameters sent to the remote service
                    action: "getEvents"
                }
            }
        },
        change: function () { // subscribe to the CHANGE event of the data source
            console.log(this.data());
        }
    });
    this.calcData.read();
    console.log(this.calcData.data());

};

The first time I call console.log(this.data());  Everything works as it should.  But when i call :
 console.log(this.calcData.data()); It thinks i have no data.  

Here are is the console output:

[_eventsObject]
  1. _eventsObject
  2. length0
  3. parentfunction (){return t._parent()}
  4. typefunction (e){var t,n,i,r=this,a=function(){return r};U.fn.init.call(this);for(n in e)t=e[n],"_"!=n.charAt(0)&&(i=ft.call(t),t=r.wrap(t,n,a)),r[n]=t;r.uid=L.guid()}
  5. __proto__Class.extend.i
^^^^^ This is the bad return, it should have a length of not 0

[U.extend.initU.extend.initU.extend.initU.extend.initU.extend.initU.extend.initU.extend.initU.extend.initU.extend.initU.extend.initU.extend.initU.extend.initU.extend.initU.extend.initU.extend.initU.extend.initU.extend.initU.extend.initU.extend.initU.extend.initU.extend.initU.extend.initU.extend.initU.extend.initU.extend.initU.extend.initU.extend.initU.extend.initU.extend.initU.extend.initU.extend.initU.extend.initU.extend.initU.extend.initU.extend.initU.extend.initU.extend.initU.extend.initU.extend.initU.extend.initU.extend.initU.extend.initU.extend.initU.extend.initU.extend.initU.extend.initU.extend.initU.extend.initU.extend.initU.extend.initU.extend.initU.extend.initU.extend.initU.extend.initU.extend.initU.extend.initU.extend.initU.extend.initU.extend.initU.extend.initU.extend.initU.extend.initU.extend.initU.extend.initU.extend.initU.extend.initU.extend.initU.extend.initU.extend.initU.extend.initU.extend.initU.extend.initU.extend.initU.extend.initU.extend.initU.extend.initU.extend.initU.extend.initU.extend.initU.extend.initU.extend.initU.extend.initU.extend.initU.extend.initU.extend.initU.extend.initU.extend.initU.extend.initU.extend.initU.extend.initU.extend.initU.extend.initU.extend.initU.extend.initU.extend.initU.extend.initU.extend.initU.extend.initU.extend.initU.extend.init…]
  1. [0 … 99]
  2. [100 … 168]
  3. _eventsObject
  4. length169
  5. parentfunction (){return t._parent()}
  6. typefunction (e){var t,n,i,r=this,a=function(){return r};U.fn.init.call(this);for(n in e)t=e[n],"_"!=n.charAt(0)&&(i=ft.call(t),t=r.wrap(t,n,a)),r[n]=t;r.uid=L.guid()}
  7. __proto__Class.extend.i

^^^^^ This is the correct output it has all of my objects and their fields within each.

Any help is greatly appreciated, I am really stuck on this one.

Petur Subev
Telerik team
 answered on 12 Dec 2012
1 answer
162 views
Hi 

We are using two combobox with Cascading behaviour. 

We want both combo box to be enabled as they are cascade to each other. 

That is 

1 . Both should be enabled by default
2. If user selects Combobox 1, Combobox 2 should be filtered by value from combobox 1 
3. If user selects Combobox 2, Combobox 1 should be filtered by value from combobox 2 
4. Also always we need to show the  Place holder value 

I would appreciate if you help us on t his

Jaffar



Georgi Krustev
Telerik team
 answered on 12 Dec 2012
2 answers
147 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
648 views
How do you use new readonly bindings?
Georgi Krustev
Telerik team
 answered on 12 Dec 2012
2 answers
316 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
82 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
Narrow your results
Selected tags
Tags
Grid
General Discussions
Charts
Data Source
Scheduler
DropDownList
TreeView
MVVM
Editor
Window
Date/Time Pickers
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)
SPA
Filter
Drawing API
Drawer (Mobile)
Globalization
Gauges
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
MultiColumnComboBox
Chat
DateRangePicker
Dialog
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
OrgChart
TextBox
Effects
Accessibility
ScrollView
PivotGridV2
BulletChart
Licensing
QRCode
ResponsivePanel
Switch
Wizard
CheckBoxGroup
TextArea
Barcode
Collapsible
Localization
MultiViewCalendar
Touch
Breadcrumb
RadioButton
Stepper
Card
ExpansionPanel
Rating
RadioGroup
Badge
Captcha
Heatmap
AppBar
Loader
Security
Popover
DockManager
FloatingActionButton
TaskBoard
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
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?