Telerik Forums
Kendo UI for jQuery Forum
0 answers
117 views
Try to determine target cell editable or not based on its value

try to do it at edit event but do not know how to get target cell's original value

please help

code:


edit: function(e) {
var val = ;   // target cell's value
if (val = "-"){
         this.closeCell();
}
}


how to get val's value?
Alan
Top achievements
Rank 1
 asked on 03 Sep 2012
0 answers
137 views
Fixed.
Michael
Top achievements
Rank 1
 asked on 03 Sep 2012
4 answers
291 views
Hi!

It seems like the resize event for Splitter does not supply the pane that got resized, as documentation says.

E.g. a collapse event gives this to work with:
Object { pane=div#leftPane.k-pane, preventDefault=function(), isDefaultPrevented=function()}

While resize only this (note the absence of "pane"):
Object { preventDefault=function(), isDefaultPrevented=function()}


How can I get the size of pane and which pane got resized without this? Am I missing something?

Thanks!
/Jacob
Joe
Top achievements
Rank 1
 answered on 02 Sep 2012
0 answers
130 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
265 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
131 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
365 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
479 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
392 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
123 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
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
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
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?