Telerik Forums
Kendo UI for jQuery Forum
2 answers
90 views
I've noticed that while adding an item to the data source then calling sync() creates the item and read() successfully returns the expected rows in Chrome and Firefox, this doesn't appear to be the case in Internet Explorer. I can see the POST is successful and returns the new item via JSON. The item appears in the grid briefly, until read() is called. The GET caused by the read() method doesn't include the newly added item in the response. When I refresh the page, the new item is there.

I originally had the same problem as noted in this thread, but I've since set cache to false in the read function but still have the issue of new items not appearing in the results only when using IE.
Joel
Top achievements
Rank 1
 answered on 27 Dec 2011
1 answer
146 views
I created a remote data source with underscores in the fields and the underscore character seems to be breaking the data source. Copied the data as a static JSON file and removed the underscore and it proved the issue.

Tips anyone on how to get Kendo to play nice with my data?
John
Top achievements
Rank 1
 answered on 27 Dec 2011
2 answers
274 views
I'm trying to create an autocomplete box. My web service uses MS Web API and I'd prefer to pass the value of autocomplete input field to the URL like this:
.../getProducts/sku=VALUE FROM FIELD

How would I go about this? If not, is one able to form a proper query string that won't need additional parsing to get a the value out? I've noticed the query string does not contain traditonal key/values.

I've also noticed the query string is chock full of crap despite me not specify paging, filtering, etc. I will be handling all this on the server and don't need to specify these items. Is it possible to remove this too?
Gabriel
Top achievements
Rank 1
 answered on 26 Dec 2011
6 answers
522 views
Hello Guys,

Please help me on how to bind the data from Ruby on Rails  using the grid.

Appreciate any help.


Thank you.


wawhe
Leonardo
Top achievements
Rank 1
 answered on 26 Dec 2011
1 answer
174 views
Hi -
  I have my grid set up below when i try to filter a column i get to lowercase undefined error but without the row template the filtering works.  But i need to do row templating because i wanted some ajax buttons in my grid columns

   $(document).ready(function () {
        $("#grid").kendoGrid({
            dataSource: {
                dataType: "json",
                transport: {
                    read: "@HttpContext.Current.Request.Url/GetUsers"
                },
                schema: {
                    data: "Users",
                    total: "Count",
                    model:
                        {
                            fields:
                            {
                            UserLastName: {field: "UserLastName", type: "string" },
                            UserFirstName: { type: "string" },
                            UserInstitutionName: { type: "string" }
                            }
                       }
                    },
                serverPaging: false,
                serverSorting: false,
                serverFiltering: false,
                pageSize: 25
            },
            rowTemplate: kendo.template($("#rowTemplate").html()),
            sortable: true,
            pageable: true,
            filterable: true,
            scrollable: false
        });
Anis
Top achievements
Rank 1
 answered on 26 Dec 2011
3 answers
354 views
Hi,

I am trying to implement grid editing. Grid is using JSON web service as data source. Getting data works great, but when I try to save changes I get an error "The incoming message has an unexpected message format 'Raw'. The expected message formats for the operation are 'Xml'; 'Json'. "

var dataSource = new kendo.data.DataSource({
    severFiltering: false,
    serverPaging: true,
    pageSize: 15,
    batch: false,
    transport: {
        read: {
            url: crudServiceBaseUrl,
            dataType: "json"
        },
        update: {
            url: crudServiceBaseUrl,
            type: 'PUT',
            dataType: "json"
        }
    },
    schema: {
        data: "Data",
        total: "Count",
        model: {
            id: "ID",
            fields: {
                ID: { editable: false, nullable: false },
                Name: { type: "string" },
                Unit: { type: "string" }
            }
        }
    }
});
 
$("#grid").kendoGrid({
    theme: "metro",
    dataSource: dataSource,
    scrollable: false,
    pageable: true,
    height: 400,
    toolbar: ["save", "cancel"],
    columns: ["ID", "Name", "Unit"],
    editable: true
});

What should I do to enable updates using JSON web service?


Thanks,

Igor
Atanas Korchev
Telerik team
 answered on 26 Dec 2011
3 answers
73 views
Hi,

We have a server side filtering component to our data store. When we issue multiple requests before the server can respond:

dataStore.filter({ user_id: 1 });
dataStore.filter({ user_id: 2 });

The "user_id = 1" request may end up coming after the second request, which means the displayed data is not what the user requested.

Is there a way that this can be fixed? It seems like we can only listen to onChange events in the dataSource, which unfortunately don't tell us which request this response data is for. Thanks!
Atanas Korchev
Telerik team
 answered on 26 Dec 2011
2 answers
180 views
I have a very basic ASP.NET MVC app that has a kendoGrid and DataSource defined on a page. The read method works fine and populates the grid as expected, but I'm having issues with the create method. I've set the datasource's schema model to a model I defined and I've inspected and confirmed the model shows the new item after calling the add method on the datasource. Additionally, the new item also appears in the grid. For some reason, though, it seems when I call sync() the MVC controller method isn't called. Then when read() is called on the datasource the new item is cleared since it wasn't persisted.

Hopefully I've just missed something very simple, but I'm pretty confused why the create method doesn't seem to be called when the datasource is synced.

Any ideas?
Cory Deppen
Top achievements
Rank 1
 answered on 26 Dec 2011
0 answers
64 views
0 answers
79 views
It would be helpful to differentiate between one time (once only), one way (source to target) and two way (bi-directional) concepts when discussing observability.
Ben
Top achievements
Rank 1
 asked on 24 Dec 2011
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
MultiColumnComboBox
Chat
DateRangePicker
Dialog
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Effects
Accessibility
PivotGridV2
ScrollView
BulletChart
Licensing
QRCode
ResponsivePanel
Switch
Wizard
CheckBoxGroup
TextArea
Barcode
Breadcrumb
Collapsible
Localization
MultiViewCalendar
Touch
RadioButton
Stepper
Card
ExpansionPanel
Rating
RadioGroup
Badge
Captcha
Heatmap
AppBar
Loader
Security
TaskBoard
Popover
DockManager
FloatingActionButton
CircularGauge
ColorGradient
ColorPalette
DropDownButton
TimeDurationPicker
ToggleButton
TimePicker
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
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?