Telerik Forums
Kendo UI for jQuery Forum
2 answers
171 views
I am getting an error after updating to the Q2 2013 SP. I was previously on Q2 2013.

Am I missing something? When I try to use kendo.core.js I get a syntax error.
Uncaught TypeError: Cannot set property 'en-US' of undefined kendo.core.js:472
Where line 472 is the following. kendo.cultures hasn't been initialized anywhere.
kendo.cultures["en-US"] = {
Prior to this release that line read:
kendo.cultures = {"en-US" : {

Am I mistaken or missing a dependency?
Ryan
Top achievements
Rank 1
 answered on 24 Sep 2013
1 answer
174 views
Hello,

Is there i way to get the numerictextbox so it starts with 01-02-03 etc?

Thanks
Georgi Krustev
Telerik team
 answered on 24 Sep 2013
5 answers
701 views
Please don't think I am a jaded customer because I love how using Kendo UI has made me look much better than I am by using your awesome controls.  However, I am using the new scheduler and I am a little frustrated with the (beta) documentation.  So I am finding myself relying on this forum.  Please help.

I need to repopulate the scheduler when a new user has been selected in a companion grid on the page.  I get the selection event with no problem.  Now I just need to know the best way to tell the scheduler to retrieve fresh data from the server based upon the value in the selection event.  After reading through much of the documentation and many of these threads I have come to the conclusion I need to set the dataSource to "serverFiltering: true" and then simply set a new filter.  That didn't call my "Get" function so I tried to force a read call directly.  Still nothing.  Am I approaching this correctly?  What is the best way to handle this?
function onSelectProvider(arg) {
 
     $("#scheduler").filter = { field: "Idd", operator: "eq", value: arg.Text };
     $("#scheduler").dataSource.read();
 }
Entilzha
Top achievements
Rank 2
 answered on 24 Sep 2013
1 answer
126 views
Hello,
I am trying to familiarise myself with the kendo ui dataSource, I have never before used JSON and have constructed the following using your documentation:

Html:
<!doctype html>
<html>
    <head>
        <title>Kendo UI Web</title>
        <link href="styles/kendo.common.min.css" rel="stylesheet" />
        <link href="styles/kendo.default.min.css" rel="stylesheet" />
        <script src="js/jquery.min.js"></script>
        <script src="js/kendo.web.min.js"></script>
    </head>
    <body>
        <div id="grid"></div>
        <script>
        $(document).ready(function () {
            var myDataSource = new kendo.data.DataSource({
                transport: {
                    read: {
                        url: "people.json",
                        dataType: "json"
                    }
                }
            });
 
            $("#grid").kendoGrid({
                dataSource: myDataSource,
                    columns: [
                    {
                        field: "firstName",
                        title: "First Name"
                    },
                    {
                        field: "lastName",
                        title: "Last Name"
                }]
            });
 
        });
 
    </script>
    </body>
</html>
Json File:
{
    "people": [
        { "firstName":"John" , "lastName":"Doe" },
        { "firstName":"Anna" , "lastName":"Smith" },
        { "firstName":"Peter" , "lastName":"Jones" }
    ]
}
The grid doesn't load any data, all I see are the headers.

I have tried this using simply HTML and a JSON file, I have also tried this in Visual Studio.

Any help would be appreciated,
Andrew.
Andrew
Top achievements
Rank 1
 answered on 24 Sep 2013
1 answer
208 views
Hello.

We need an option to make the datasource immediately drop the current in-flight data fetch request if another one comes in.

Currently, if the user clicks around several times in a row changing grid datasource parameters too quickly, several requests get fired off, but the grid waits for the very first request to complete before issuing the next one. This makes the user's wait time twice as long and also makes the grid content appear to switch back and forth as requests complete one after another. Very unpleasant effect.

Thank you.
Petur Subev
Telerik team
 answered on 24 Sep 2013
7 answers
487 views
When using the toJSON function on ObservableObject, there is a distinct issue with the way it deserializes. 

The way toJSON outputs will yield to this kind of behavior in HTTP Posts.
Name                 | Value
items[0][Name]       | Name 1
items[0][Id]         | a
items[1][Name]       | Name 2
items[1][Id]         | b
This is incorrect, though. It should be coming in like this ...
items[0].Name       | Name 1
items[0].Id         | a
items[1].Name       | Name 2
items[1].Id         | b
The way Kendo's toJSON function works will essentially make it completely impossible to send data over the wire, because the values of properties will get stripped away. This is pretty easy to fix, as even the most basic behavior in Knockout does not do this. 

This is a pretty egregious problem, as it makes it very difficult and confusing to rely on the tools, because now I know that anything that Kendo's internals use that implements toJSON is completely unsuitable for any kind of method calls.

Is there any chance this can get fixed soon?
Atanas Korchev
Telerik team
 answered on 24 Sep 2013
1 answer
191 views
Is the following supported and if so, how?

If have an in memory object array:

[{
    id: 1,
    name: "item 1",
    parentid: null
},
{
   id: 2,
    name: "item 2",
    parentid: null
},
{
   id: 3,
    name: "subitem for 1",
    parentid: 1
}]

I want the treeview to initially load and display the root items (with parentid null). When a user expands a root node, I want it to display all nodes with that node's id as parentid . I want to be able to build the hierarchy with no limit using this way.
Dimiter Madjarov
Telerik team
 answered on 24 Sep 2013
4 answers
478 views
Hi

I have a Kendo grid, where one of the columns is a text field, which represents an IP address. I have used a client template to create a hyperlink

c.Bound(o => o.AddrIP).Width(120)
    .ClientTemplate("<a href='http://#= AddrIP #' target='_blank'>#= AddrIP #</a> ")


This seems to work in principle.

But when a row has no IP address specified, I get a "null" as a string with a hyperlink to 'null'
Strangely, if I use the ClientTemplate format specified by the old MVC extenssions

c.Bound(o => o.AddrIP).Width(120)
    .ClientTemplate("<a href='http://#= AddrIP #' target='_blank'><#= AddrIP #></a> ")


I get a set of "<>" around the text (which is probably expected !!), but the "null" hyperlink problem disappears.

Any help to get the proper format would be appreciated

Regards

Achilles

Achilles
Top achievements
Rank 1
 answered on 24 Sep 2013
4 answers
1.9K+ views
I would like to have my command button display different text based on the values in the row.  I have tried

command: [{
    name: "return",
    click: myHandler,
    template: '#= getCommandText(col1, col2) #'
}]
 
function getCommandText(c1, c2) {
      //return text based on values in this row
}
 
function myHandler(e) {
    //perform actions based on value in row
}

But the command's template call doesn't seem to be aware of values in the row like field columns do. 

I suppose another alternative would be to have multiple commands in a column, and hide certain ones based on the values in the row, but I am not sure how to do this either.

Thanks,
~S
Henrik
Top achievements
Rank 1
 answered on 24 Sep 2013
1 answer
130 views
Hi,

Does anybody know how can I add a confirmation pop-up on re-size event, and cancel changes when the user click cancel button?.
The sample scenario is like this:
  • when the user resize an event/schedule, a pop-up window will display with a message saying.. "Re-sizing this event will update the time range." with a two button which is "Ok" and "Cancel".
  • So, when the user click "Ok" re-size will do his function as default which update the event/schedule
  • else, if the user click the "Cancel", re-sizing of event/schedule will be cancelled.. means cancel any changes to the schedule.
I know how to pop-up the window.. but I can't figure it out how to cancel changes when user click the "Cancel button".
Thanks.

Regards,
Jesson
Rosen
Telerik team
 answered on 24 Sep 2013
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
Drag and Drop
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?