Telerik Forums
Kendo UI for jQuery Forum
0 answers
309 views
Hello,

i have a question regarding passing arguments to a dialog.
I have a grid with userdata implemented and don't want to use the custom edit function.
The reason is that In my database there are additional infos that don't need to be shown in the datatable, but should be editable in the dialog.

Extract of UserManagement.aspx:
function showEdit (e) {
            var wnd = $("#userEdit-form");
            initializeWindow(wnd, "Benutzer editieren", "600px");               
            wnd.data("kendoWindow").open();
        }
Extract of EditUser.ascx:
<li>
                <label for="firstName"><%=Labels.FirstName %>*</label>
                <input type="text" class="k-textbox" id="firstName" name="firstName" value="" required />
            </li>
How can I pass the selected user information to the value field of the dialog "EditUser"(In this case the firstname input field)?

Thank u in advance.
Thomas
Top achievements
Rank 1
 asked on 26 Nov 2012
0 answers
69 views
 
Hi All,

Im using a direct url search to load the page accordingly. The string query in the url will be of the following format //atest.html#{value1}.{value2}.{value3}

When ever this eearch is done, we can see that the title bar of the page gets appended with the query values i.e. like #{value1}.{value2}.{value3}.  This remains the same even when I try to manually set the title bar value.

Can you tell me if any script from kendo.web.min.js page is getting overridden to set this value?
Shalini
Top achievements
Rank 1
 asked on 26 Nov 2012
5 answers
479 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
94 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
328 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
76 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
86 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
259 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
114 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
237 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
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?