Telerik Forums
Kendo UI for jQuery Forum
0 answers
114 views
Hi,

We are looking to use the json method to retrieve data from a web/cloud database.  But also to allow access from mobile devices.

Is there a proven method to send a secure token in the json header etc. or an alternative method.  I have browsed for a solution but i found nothing.  We are using the default .net membership/roles and authorize at the moment.

Any help or an example would be great.
chris
Top achievements
Rank 1
 asked on 02 Sep 2012
1 answer
244 views
I am using MVC4 and displaying mobile views to mobile clients. Each page makes use of the master page (_Layout.Mobile.cshtml) which has the layout definition, references to the mobile CSS, JS and initializes the kendo application.

From the examples I have seen, it appears you are suppose to have the layout definition only once, then, every other page should just have a <div> with a data-role="view". This way, when clicking links the ajax call simply gets the contents of the view and replaces the current view.

Currently, when I try to link between pages, the "loading" flickers non-stop. I believe that problem is that the ajax call to get the page is expecting only the <div data-role="view">, but I'm providing a page with everything on it.

Is there a way to just get the contents of the <div data-role="view">, similar to how jquery's load() takes the URL and an optional selector?


Petyo
Telerik team
 answered on 02 Sep 2012
1 answer
116 views
Check out my jsfiddle example. I don't know what I'm doing wrong but after you click an item in the grid an edit box will apear below. If you change the dropdown value from female to male it works, but after that try switching back to female and it just bugges out and stays on male. I use dropdown lists in this way in a lot of places and i get that issue all the time, it always wont change anymore if you set it to the first value from the datasource.

http://jsfiddle.net/UtQuG/37/ 
Dennis
Top achievements
Rank 1
 answered on 01 Sep 2012
0 answers
342 views
hi,
is it good practice to use k-block as layout base? I can not find any documentation of it - just an example here:

http://demos.kendoui.com/web/styling/panels.html

Or is it better to use my own containers?

Thanks,
Matthias




Matthias
Top achievements
Rank 1
 asked on 01 Sep 2012
1 answer
458 views
HI,
I have used switch in listview. i want to change label of switch. i am able to made switches in listview using template. How can i change the label for the switches. My code:

<script id="StudentAttendenceTemplate" type="text/x-kendo-template">
        ${studentName} <input id="switchAttendence" data-role="switch" data-change="CraeteAttendence" type="checkbox" data-align="right" value="${studentID}"  />
 </script>

$("#listOfStudents").kendoMobileListView({
   dsData:[{studentID: "101", studentName: "Saurav" },{studentID: "102", studentName: "Sujan" }] 
                    dataSource: kendo.data.DataSource.create({ data: dsData }),
                    style: "inset",
                    template: $("#StudentAttendenceTemplate").html()
                });

Can any one suggest me the solution as soon as possible.

Thanking you,
Shree
Ron
Top achievements
Rank 1
 answered on 31 Aug 2012
3 answers
372 views
The issue happens when I try to set the next available value in combobox, here is what my scenario is.

I have a list of available items which I display in a combobox, user can select one item & assign at which point I add it to a list/table, user can remove an item from selected at which point it goes back into available list.

Now the issue occurs when the following is done
 1) Select & assign couple of items (notice next available item is selected in combobox)
 2) Remove an item from the selected list/table (item should now be available to select in combobox)
 3) Now try to select the same item & Assign again & notice the next available value in combobox.

Here is a jsFiddle where issue can be reproduced (works only on chrome) http://jsfiddle.net/navnitmehta/fHXBx/7/

I am not sure if this is an issue with kendo or kendo-knockout binding.

Thanks!
Navnit
Top achievements
Rank 1
 answered on 31 Aug 2012
0 answers
113 views
The issue is that the value() property still contains the previously selected value when the user deletes the text from the Combo input, this is causing issues when we are using it with knockout-kendo binding, basically once a value is selected; there is no way for user to un-select the value.

Here is the jsFIddle to reproduce the issue: http://jsfiddle.net/navnitmehta/vaLyw/

Further analysis specific to knockout-kendo binding can be found here: https://github.com/rniemeyer/knockout-kendo/issues/26
Navnit
Top achievements
Rank 1
 asked on 31 Aug 2012
5 answers
1.1K+ views
Hi,

I'm using MVC 4, Knockout, and the KendoUI Upload widget.

I have a simple form with several fields plus a single file upload to allow the user to upload one file.

I want it all to go back to the controller in a submit method something like "public ActionResult Submit( Model model, IEnumerable<HttpPostedFileBase> file ).  I don't want to use async uploading.

As it turns out, the model is properly populated, but both the "file" parameter and Request.Files are empty.

Could someone provide a full *working* example?  I've spent hours scouring this site, StackOverflow, and more without finding such an example.

Thanks!
Boris
Top achievements
Rank 1
 answered on 31 Aug 2012
0 answers
93 views
I am new to the Kendo UI and trying use it in the new VS2012 with JQuery 1.8.0. I used it on new MVC 4 project. I have use the sample from the Grid Basic Usage HTML page and copy it on to one of the project page, added all scripts & CSS files including the people.js data file.
First I use the NuGet to gets the Kendo UI in to the solutions, that seems does not work at all error seems to be Object does not support property or method 'kendoGrid'. Then I delete this project and create a new MVC4 solution, added Kendo UI from downloaded from Telerik Website, note that it is Open Source version. After attached to the solution, linked scripts & CSS files on to the page.
This seems to work but sometimes it pop up the same error as before.
Can someone help me, thanks in advance.
Punprom
Top achievements
Rank 1
 asked on 31 Aug 2012
0 answers
72 views
I know I'm missing something here, I have to be, although I've had the issue before and never got around it. What I'm doing is:

var ds = new kendo.data.DataSource({
     transport: {
            read: "http://localhost/HOLService/HOLService.svc/GetFiles",
            dataType: "jsonp",
            data: {
                    roleId: function() { return 1; }
               }
            },
           parameterMap: function (data, operation) {
           if (operation != "read") {
                  return { jsonData: kendo.stringify(data.models) };
            }
        }
});

ds.read();

What this does is send a call to "http://localhost/HOLService/HOLService.svc/GetFiles", but there's no roleId parameter, or callback required from JSONP.

Can anyone see what I'm missing here?


Update:
Sorry, ignore this, I didn't have my parameters in the read: {} array.
Chris
Top achievements
Rank 1
 asked on 31 Aug 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
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
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?