Telerik Forums
Kendo UI for jQuery Forum
3 answers
843 views
I'm trying to access a REST service that expects raw XML to be POSTed in the body of the request. I read in the forums here that the transport property of the Data Source works via the jQuery.ajax() function, so I should be able to do something like this:
var ds = new kendo.data.DataSource({
transport: {
read: {
url: "...",
dataType: "xml",
cache: false,
contentType: "application/xml",
type: "POST",
data: "<Test></Test>"
}
}
});

In Fiddler, I can see that the Content-Type of the request is indeed getting set to "application/xml". However, the body is totally empty. If I change the data parameter to use a key-value structure, then it does pass the key-value in the body of the request. I can't figure out why sending raw content in the body isn't working - does Kendo pre-process the data property in some way to disallow this kind of use?
Tony
Top achievements
Rank 2
 answered on 26 Jun 2012
2 answers
399 views
With Version 515 I am noticing a minor issue with column resizing. Even though the browser has focus I have to sometimes click on the column heading in order to get the column resize cursor to appear.

i.e. it is a normal cursor even on mouse hover over a gutter between columns in the grid header. But a one time click on any of the headers will restore the mouse hover action.

True, I have a very busy display with tabs, panels, a Google map, etc. and I do have a lot of features enabled in the Grid: (8 columns):

$("#gridWidget").kendoGrid({
    selectable:"multiple, row",
    groupable:true,
    autoBind:false,
    scrollable:true,
    reorderable:true,
    virtual: true,
    resizable:true,
    sortable:true,
    pageable:true,
    dataSource:searchData,
    columns:[


Dr.YSG
Top achievements
Rank 2
 answered on 26 Jun 2012
0 answers
135 views
After submitting form We are getting dropdown is undefined with an error datasource object is “null” or “not an object”

We are using dropdown component as below code

Examples:

var dropdown = $("#cboxLoadedContent #connection_mode").data("kendoDropDownList");

dropdown.dataSource.data([{text:'Connection Mode',value:'0'},{text:'Local Files',value:'localfiles'}]);

This is happened only on internet explorer 8 with compatibility view mode on/lower version of internet explorer browser.
It working properly with mozila 9 and Internet explorer 8.

Thanks in advaced.
Please reply me as soon as possible.
Prashant
Top achievements
Rank 1
 asked on 26 Jun 2012
4 answers
378 views
When you have an editable grid, something in the most recent version is requiring the parameterMap function to be present, even if it does nothing. My code is copied below, and if I comment out parameterMap and try to submit batch changes, I get the following error:

Uncaught TypeError: Cannot read property 'field' of undefined

var contactData = new kendo.data.DataSource({
        transport: {
            read: {
                url: baseUrl + "/contact",
                dataType: 'json'
            },
            update: {
                url: baseUrl + "/contact/update",
                type: "POST"
            },
            destroy: {
                url: baseUrl + "/contact/delete",
                type: "POST"
            },
            create: {
                url: baseUrl + "/contact/create",
                type: "POST"
            },
            parameterMap: function(options, operation) {}
        },
        batch: true,
        schema: {
            model: contactModel
        },
        requestStart: function(e) {
            //console.log(e);
        },
        error: function(e) {
            alert("Error: " + e.errorThrown);
        }
    });
Timothy
Top achievements
Rank 1
 answered on 26 Jun 2012
0 answers
134 views
i am not able to add data to innergrid data source  of hierarchy grid ,
im not able to access datasource of inner grid
Is der any method or way to access datasource of innerGrid

$("#indentGrid").kendoGrid({
        dataSource: storeRestrictionsDS,
        pageable: false,
        editable: true,
        selectable: true,
        detailInit: detailInit,
        autoBind: true,
        
        
        columns: [
            {field: "product",editor:nameEditor,title:'<g:message code="grid.pricing.fromDate.label" default="Product Name" />'},
            {field: "numberOfDays",title:'<g:message code="grid.pricing.fromDate.label" default="Number Of Days" />'},
            {command: { text: "ReIssue Product", className: "details-button" }, title: " ", width: "190px" }
            ]
        });


    
    function detailInit(e) {
        $("<div/>").appendTo(e.detailCell).kendoGrid({
            dataSource : {
            data:data
            },
            scrollable : false,
            sortable : true,
            cancel : true,
                 columns: [
                    {field: "name",title:'<g:message code="grid.pricing.fromDate.label" default="*Product Name" />'},
                    {field: "issueValue",title:'<g:message code="grid.pricing.fromDate.label" default="*Issue quantity" />'},
                ],
            });
        data=[];
       }
    
    });


productGridId another grid from where i get data

var productGridId=$("#productGrid").data("kendoGrid");
                    var productData = productGridId.dataSource.view()
                    var tmp = "", tmpId = "";
                for ( var i = 0; i < productData.length; i++) {
                            if   (productData[i].isChecked) {
                                 tmp = tmp + ","   + productData[i].name
                                 tmpId = tmpId + "," + productData[i].issueValue
                            }
                }
                     tmp = tmp.substring(1,tmp.length);
                     tmpId = tmpId.substring(1,tmpId.length);

    
                     var   yo = tmp.split(",");
                     var yo1 = tmpId.split(",");
           
    HERE I ADDED DATA TO DATA VARIABLE

                for ( var i = 0; i < yo.length; i++) {
                        data.push({
                                    name : yo[i],
                                    issueValue:yo1[i]
                                 });
                }

indentGrid in my parent grid and i create inner grid by using <div/>  it dosen't  have any id ,to make it indivisual for each masrer row,
Here i dont want to get data from  from read operation  
i tried it by using a globle variable Data that i added value to thid data variable than i added thid data variable to my inner grid datasource but its not working
so please solve my problem
HOW TO add data to dataSource of inner grid of heirarchy grid .................
Manish
Top achievements
Rank 1
 asked on 26 Jun 2012
0 answers
214 views
Is this possible now with data source and is there sample how to do it:

schema: {
                        data: "data",
                        total: "count",
                        model: {
                            id: "Id",
                            fields: {
                                Id: { editable: false, nullable: true },
                                Naziv: { validation: { required: true} },
                                Child: [ 
                                                { Id: { editable: false, defaultValue: e.data.Id}}
                                         ]
                            }
                        }
                    },

Thanks.
Bojan
Top achievements
Rank 1
 asked on 26 Jun 2012
4 answers
204 views
I have a treeview and a grid working very nicely - one issue I have though is when the grid has a page size of 11 items and paging set to 10.
If I go to page 2 and see the one item on it and drag this item from the grid dropping into onto the treeview the grid pager at the bottom reflects this and only shows one which is good, but i need the grid to display page 1. At the moment the pager says 1 at the bottom but you have to click on that to see the items on page 1 of the grid - what event can i fire so that when i drag the last row on page 2 over to the treeview the grid will show page 1

Thanks
Gregor

Gregor
Top achievements
Rank 1
 answered on 26 Jun 2012
3 answers
157 views
I'm planning on using kendo ui with server-side javascript for rendering the page content such as NodeJS w/ JSDom.  I've attached an example of a dropdownlist control that I'd be using on all/most pages.  I need the ability to render the content into the DOM and conditionally displaying the dropdownlist rather than only rendering the dropdown onclick.  We need the information written into the DOM so that portion of the DOM can be exposed to search engines crawling when the control is databound (not clicked).  I've attached pictures of the IE and FF DOM after the control has been rendered as well.

Also, do you have an anchor-based example of the dropdownlist control rather than an event-driven example?

Thanks,
Jeff
Alexander Valchev
Telerik team
 answered on 26 Jun 2012
3 answers
297 views
Hi,
We are currntly evaluating KendoUI for our BI solutions.
I do have a question regurding the Grid control.
How can I implement a KPI grid ?
Cant see any cellrenderer event I could attach to in order to have full control on a spesific cell.
We have our on KPI engine which decides on the style of each on of the cells in the grid.
Do you have such a capability ?

Thx
Sagi Karni
Intel Corp.
Iliana Dyankova
Telerik team
 answered on 26 Jun 2012
1 answer
76 views
Today I noticed that there is an extra tick mark on my gauge. I've attached a picture. Right now the end property is set for 12 with as majorUnit: 5. If I set the end to 15 the mark goes away. This doesn't work for me as my end property is dynamic. Has anyone else experienced this and if so is there a way to get rid of it?
Hristo Germanov
Telerik team
 answered on 26 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
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
Chat
MultiColumnComboBox
Dialog
DateRangePicker
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Accessibility
Effects
PivotGridV2
ScrollView
Switch
TextArea
BulletChart
Licensing
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
FloatingActionButton
CircularGauge
ColorGradient
ColorPalette
DropDownButton
TimeDurationPicker
ToggleButton
ContextMenu
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
DateTimePicker
RadialGauge
ArcGauge
AICodingAssistant
SegmentedControl
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?