Telerik Forums
Kendo UI for jQuery Forum
5 answers
614 views
Does the ListView support reordering items using Drag & Drop? I'm considering using the control for a photo gallery like page, but one of the main things is the ability for the user to reorder the items.

I've got a jsFiddle project started (based on the ListView example). If you could show how it's done, I would appreciate it. http://jsfiddle.net/jWRVA/
charan
Top achievements
Rank 1
 answered on 26 Nov 2012
1 answer
129 views
Is there any way to disable moving a kendo Window around using the alt and direction keys? Alt+left and Alt+right are standard keys for navigating backward and forward in a browser's history! Why would they be overwritten? Personally, I think this a very poor idea, and it should be possible at least to disable overwriting these standard functions. How can it be done?
Stephen
Top achievements
Rank 1
 answered on 26 Nov 2012
1 answer
396 views
I'm new to kendoUI.
I found the odata definition in kendo.data.odata.js, here's the code snippet:
........
$.extend(true, kendo.data, {
        schemas: {
            odata: {
                type: "json",
                data: "d.results",
                total: "d.__count"
            }
        },
        transports: {
            odata: {
                read: {
                    cache: true, // to prevent jQuery from adding cache buster
                    dataType: "jsonp",
                    jsonpCallback: "callback", //required by OData
                    jsonp: false // to prevent jQuery from adding the jsonpCallback in the query string - we will add it ourselves
                },
.......
The common way to use odata I see in this forum is like this:
var data = new kendo.data.DataSource({
    type: "odata",
    transport: {
    }
});
The pre-defined callback funtion will be invoked by kendo framework automatically, but I want to do some extra things in this pre-defined callback. When I try to use it another way(as follows), it seems it does NOT work, perhaps kendo framework don't allow user to use $.ajax() manually.
......
type:
"odata",
serverFiltering: true,
transport:{
            read: function(options){
                $.ajax({  //!!won't work when type is odata
                    url:"http://my_test_url",
                    dataType:"json",
                    data:options.data,
                    success:function (result) {
                        options.success(result);
                        doUserDefinedCallback(); //do my callback
                    }
                });
            }
        }
......
But I use a tricky way, it will take another server call and looks ugly somehow, here's the code snippet:
.......    
type: "odata",  //using odata
serverFiltering: true,
transport: {
    read: {   //can NOT using $.ajax() manually here
url:"http://my_test_url"
    }
},
schema:{
    data: function(response){
        doServerCallFirst_Then_DoUserDefinedCallback(); //actually I do another server call here, then do my callback when the call returns.
        return response.d.results;
    }
}
.......
I need to use odata type, is there some better solution? Any help will be with great appreciation.
Daniel
Telerik team
 answered on 26 Nov 2012
0 answers
102 views
Hi,

Is there a built in progress indicator when I apply dataSource on the ListView from a remote data source?

//Initialize the result ListView with the selected template part
        $("#searchResults").kendoMobileListView({
            dataSource: this.getSearchData(),
            template: templatePart,
            endlessScroll: true,
            scrollTreshold: 30 //treshold in pixels
        });
Anton Swanevelder
Top achievements
Rank 2
 asked on 26 Nov 2012
1 answer
124 views
let's say my dataSource returns an id such as {id: 1}

and i'm using a template

columns: [ {field: "id", template: "<a href='javascript:;' id='#= id #' />#= id #</a>"} ...


how would I get it to show up as <a href="javascript:;" id="1">#1</a> as ##=id # won't work

Nikolay Rusev
Telerik team
 answered on 26 Nov 2012
1 answer
299 views
var products = [{"id": "12345"}]

is there anyway to attach some logic to that and replace that with a product name in the template?

eg. (if id = 12345) { template: <span>Some Product Name</span>} else { template: <span>#= id #</span>}


Nikolay Rusev
Telerik team
 answered on 26 Nov 2012
1 answer
143 views
How can we attach a Controller Action of Select in Kendo ListView?

Thanks

Anil Lakhani
Nikolay Rusev
Telerik team
 answered on 26 Nov 2012
0 answers
280 views
I need Jalali calendar, in my php web site, but I don't know how can I have it with kendo UI.
Maryam
Top achievements
Rank 1
 asked on 26 Nov 2012
4 answers
256 views
Hello, seems silly, but I can't figure it out.

I have a Grouped Listview being filled by an external datasource. I want the listview to appear exactly as your demo on the site where it's embedded in the "iphone simulator" with the lines/border between the same list items in each grouping. No matter how I try this on my phone or my desktop to test I cannot reproduce that same appearance and for all intents when I examine the code and styles in use on each element it appears the same. What am I missing here? How do I get that thin border on the elements between the groups as in the demo on the site?

Thanks!
Firas
Top achievements
Rank 1
 answered on 26 Nov 2012
0 answers
119 views
-How to put pre filter on grid table for date-time column, On table load itself. So I can get filters data on first look.  

Thanks 
Piyush
Piyush
Top achievements
Rank 1
 asked on 26 Nov 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
DropDownTree
ListBox
PDFViewer
Sparkline
ActionSheet
TileLayout
PopOver (Mobile)
TreeMap
ButtonGroup
Styling
ColorPicker
Pager
Chat
MultiColumnComboBox
Dialog
DateRangePicker
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Accessibility
Effects
Licensing
PivotGridV2
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
LLM Kit
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?