Telerik Forums
Kendo UI for jQuery Forum
1 answer
1.5K+ views
Hi! First of all I want to thank you for creating KendoUI. 

I'm having problem with editable grid here with JSON response from servers... When I click Create it throws an error in Chrome saying  Uncaught ReferenceError: firstName is not defined
This only happens when I'm inserting an email column. But it becomes Okay when I change it back to string. here's the code:

        <script>
                 
var blankData;
                $(document).ready(function () {
                    var dataSource = new kendo.data.DataSource({
                transport: {
         read: {
dataType: "json",
 type: "POST",
data: {"SQLCMD":"SELECT * FROM gridTest","Table":["firstName","nickName","lastName"],"PrimaryKey":"PeopleID"} // this JSON data serves as parameters when returning data from the database
},
         update: {
            type: "POST"
         },
         destroy: {
             type: "POST"
          },
          create: {
              type: "POST"
           }
         },
         // determines if changes will be send to the server individually or as batch
         batch: true,
         //...
 
 
                       pageSize: 30,
                       data: blankData,
                       autoSync: true,
                       schema: {
                           model: {
                             id: "PeopleID",
                             fields:
                                {"PeopleID":{"editable":false,"nullable":true},"firstName":{"type":"email","validation":{"required":true},"nullable":false},"nickName":{"type":"string","validation":{"required":true},"nullable":false},"lastName":{"type":"string","validation":{"required":true},"nullable":false}}                             }
                            
                       }
                    });
 
                    $("#grid").kendoGrid({
                        dataSource: dataSource,
                        pageable: true,
                        height: 260,
                        toolbar: ["create"],
                        columns:
                            [{"field":"firstName","title":"First name"},{"field":"nickName","title":"Nick Name"},{"field":"lastName","title":"Last name"},{"command":"destroy","title":" ","width":"110px"}]                            ,
                        editable: true
                    });
                });
 
 
            </script>



I hope you can help me with this... Thanks!
Alexander Valchev
Telerik team
 answered on 08 Jun 2012
0 answers
121 views
how to Dynamically assign value to the legend label in kendo ui chart
Gowri
Top achievements
Rank 1
 asked on 08 Jun 2012
0 answers
98 views

         Hi to all ,

  I was wondering if TileView implementation is possible or not by using KENDO .If it is not  , can you please give me other ways to create a view similar to TilwView

TileView's link that I want to have :

http://demos.telerik.com/silverlight/#TileView/FirstLook 

Thanks...
Safak
Top achievements
Rank 1
 asked on 08 Jun 2012
1 answer
450 views
Does anyone have any ideas about how to use column reordering and row templates for a grid? The problem I'm running into is that after the columns have been reordered and the user goes to the next page of data in the grid, the columns headers don't match the data.

Is there some way to access the column order in the template to adjust the order of the columns in the template?
Alexander Valchev
Telerik team
 answered on 08 Jun 2012
0 answers
108 views
Hello,

Is it possible to call an SAP web service from a mobile app developed with Kendo? (not using NW Gateway 2.0)
If so, any examples to offer?

Thanks
Timothy
Top achievements
Rank 1
 asked on 08 Jun 2012
1 answer
77 views
I have a scenario where I want to be able to select a row thats not on the first page programitically. I know how to select a row using API, I know how to set the page, but when I use both together I dont get the desired result. Here is a jsFIddle that has a sample http://jsfiddle.net/navnitmehta/pafrT/5/

Thanks for looking...
Nikolay Rusev
Telerik team
 answered on 08 Jun 2012
1 answer
131 views
Hi,
This is MVC4, ASP.net, C#

I have data model such as following

ProductId
ProductName

I tried with many time but got the same result

the ProductId is "undefined"
Why?

(function (mstats, $) {

    var Product = kendo.data.Model.define({
        ProductId: "ProductId"
    })

    var dataSource = new kendo.data.DataSource({
        transport: {
            read: {
                url: "../api/Product/GetAllProduct",
                dataType: "json"
            }
        },
        schema: {
            model: Product
        }
    });

    $('#grid').kendoGrid({
        dataSource: dataSource,
        selectable: true,
        columns: [
        {
            Field: "ProductId",
            title: "Product-Id"
        },
        {
            field: "ProductName",
            title: "Product-Name"
        }]
    });
} (this.mstats = this.mstats || {}, jQuery))



Weera
Top achievements
Rank 1
 answered on 07 Jun 2012
0 answers
127 views
Hi

I am trying to bind a large local data set (56mb) onto kendogrid. I have verified data successfully reaches client from ajax call but the grid is not able to load the data. Empty grid shows up.

What is the best way to work with large data set if I want to use local data set and not bind directly to remote dataset ?

Thanks
Aparna

Update: grid did load when I set pagesize ... Is there a way to load the grid as the data is being streamed in ?
Aparna
Top achievements
Rank 1
 asked on 07 Jun 2012
6 answers
413 views
Posting this to ask if it is a bug or expected... and also maybe help others with this issue.
If you have collapsed panels and try to enable/disable/jQuery.show/jQuery.hide/etc... to elements in the collapsed panel you get no effect or very undesired/buggy effects.

Here is my solution:
//get panelbar objects and collapsed/enabled status
 var panelBar = $("#PanelBar").data("kendoPanelBar");
 var editorBar = $('[id^="PanelEditor"]');
 var editorBarIsDisabled = editorBar.hasClass("k-state-default");
 
 //expand panelbars so we can show/hide controls
 if (editorBarIsDisabled) panelBar.expand(editorBar);
 
 // do visual changes here etc...
 
 //collapse panelbars if they were already
 if (editorBarIsDisabled) panelBar.collapse(editorBar);
Guru
Top achievements
Rank 2
 answered on 07 Jun 2012
0 answers
192 views
I would like to understand the difference between calling kendo.bind() and $('#foo').kendo<Widget>().  I have a jsfiddle at  http://jsfiddle.net/sholder/yAujr/ which demonstrates what is confusing me.  The call below to $('#listview')... does not produce the result I expect in that the nested template is not rendered.  But if I call the kendo.bind() as below then I receive the expected result.

$('#listview').kendoListView(
    dataSource:{data:viewModel.categories},
    templatekendo.template($('#category-template').html())
});

kendo.bind($('#list')viewModel) 

So, what is kendo.bind doing that the call to kendoListView() does not?

Thanks,
Shane Holder
Shane
Top achievements
Rank 1
 asked on 07 Jun 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?