Telerik Forums
Kendo UI for jQuery Forum
4 answers
2.8K+ views
Hi!

I'm using this code to open a window:

var ssButton = $("#server-settings-button")
    .bind("click", function () {
          ssWindow.data("kendoWindow").open().center();
    });

Window is opened centered, but if I move it, pin it, close it and try to open it again it opens centered and doesn't maintain pinned position.

How can  open it centered but still maintain pinned position?
Dimo
Telerik team
 answered on 27 Jan 2015
1 answer
1.6K+ views
Hello -

This is an offshoot of: http://www.telerik.com/forums/problem-with-datasource-post-request-for-read-operation

Unfortunately, that thread is closed so I can't follow-up.

However, it seems to me that there's a potential bug with DataSource (used inside a Kendo Grid) when doing a READ using POST and contentType = "application/json".

Here is my javascript:
dataSource: {
   transport: {
      read: {
           url: "rest/books",
           type: "POST",
           contentType: "application/json; charset=utf-8"
      }
...

However, based on examining the network traffic, here's the POST request information:
Remote Address:[::1]:8082
Request URL:rest/books
Request Method:POST
Status Code:400 Bad Request
Request Headersview source
Accept:*/*
Accept-Encoding:gzip, deflate
Accept-Language:en-US,en;q=0.8
Cache-Control:no-cache
Connection:keep-alive
Content-Length:31
Content-Type:application/json; charset=UTF-8
Host:localhost:8082
Origin:http://localhost:8081
Pragma:no-cache
Referer:http://localhost:8081/
User-Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.91 Safari/537.36
Request Payload
take=5&skip=0&page=1&pageSize=5

You can see in that very last line, the paging parameters for the Grid are being sent as key/value pairs (URL param encoding) instead of JSON.

I would think that since I'm setting contentType to JSON, and using a POST, that internally the DataSource would JSON encode my paging parameters.

The workaround (based on info in the link above) is to override the parameterMap function:
parameterMap: function (options) {
    return JSON.stringify(options);
}

This creates JSON in the Request Payload:
{"take":5,"skip":0,"page":1,"pageSize":5}

But it seems to me I shouldn't need to override parameterMap if I'm telling the datasource to use application/json.

My only guess is that Kendo is just passing the contentType to the internal AJAX call to set the POST header and not actually doing anything with that information (like converting the URL/form encoded parameters to JSON).
Rosen
Telerik team
 answered on 27 Jan 2015
4 answers
144 views
We are evaluating kendo mobile for porting online app to tablets (android, ios and windows) using kendoui mobile.
Is it possible to start kendoui app offline (withour internet, as standalone application) and only occasionally sync it to server?

in other words,
http://stackoverflow.com/questions/25700472/offline-application-development-using-kendo-ui
Sebastian
Telerik team
 answered on 27 Jan 2015
1 answer
270 views
I want to show a Kendo Treelist on my page without any child elements.
But when I click on any row, an ajax call has to be made to fetch the data and the row should expand with the child elements under it.
How can it be achieved?
Alex Gyoshev
Telerik team
 answered on 27 Jan 2015
7 answers
173 views
Hello,

is it possible to align the detailbutton in the middle of the red table cell?

<script type="text/x-kendo-template" id="customListViewTemplate">
    <table style="width:100%">
        <tr style="background-color:blue">
            <td style="width:30%">
                <img  src="${url}" />
            </td>
            <td style="background-color:red">
                <h3 style="float-left">${name}</h3>
                <a data-role="detailbutton" data-icon="more"/>
            </td>
        </tr>
        <tr >
            <td colspan="2" style="background-color: gray">
                <div>${description}</div>
            </td>
        </tr>
    </table>
</script>


Kind regards
axel





Petyo
Telerik team
 answered on 27 Jan 2015
1 answer
226 views
Hi, I've been asked to put a tool tip on the clear filter icon in the grid's (the big "X").  Is there any cleaner and/or more efficient way than this?  Currently I'm having to call this every time in the databound event.

$(".k-grid").find(".k-filtercell").find(".k-i-close").attr("title", "Clear Filter");


​
Kiril Nikolov
Telerik team
 answered on 27 Jan 2015
2 answers
203 views
Hi

How can I call the "export to excel" by a function? - Since I want to trigger it using a button outside of the grid.

http://dojo.telerik.com/emIrA

Many thanks
Dimiter Madjarov
Telerik team
 answered on 27 Jan 2015
4 answers
366 views
Hi,

I am using JSP, I just want to know if I can create a line chart with different data on it. I am planning to put the script to createChart inside the loop along with the json for its data. :)


Is this possible, because I have read something on the internet that this is not supported.
leo
Top achievements
Rank 1
 answered on 27 Jan 2015
5 answers
1.0K+ views
Custom validation is called twice for a single input field. When navigatable/selectable configuration is set and enter is pressed the row is saved and validation is called three times for a single input field.

http://dojo.telerik.com/oxeKE
Alexander Popov
Telerik team
 answered on 27 Jan 2015
3 answers
612 views
Hi,

Is there a way of setting the .Selectable() value in the Kendo Listview MVC wrapper to allow user to select multiple list items?

Regards,

Shuja
Kiril Nikolov
Telerik team
 answered on 27 Jan 2015
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
Marco
Top achievements
Rank 4
Iron
Iron
Iron
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
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
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
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?