Telerik Forums
Kendo UI for jQuery Forum
1 answer
112 views

hello,

I'm working with a kendo datepicker. I created the control with a change event option.

When i run the page, if i already have a date in the input and y modifie it by adding some text to the input the change event is not fiered.

EX:

1- run code
2- the input has "12/12/2010"
3- add some invalid text to the end ex: "12/12/2010asdasd"
4- the input text of the input now is "12/12/2010asdasd" 


the change event is not fiered.

When i do the same but instead of add text, select all the text with the mouse and then y wrote any thet to the input, the change event is fiered.

EX:

1- run code
2- the input has "12/12/2010" 
3- select the input text with the mouse and write "asdasd"
4- the input text of the control now is "asdasd" 

the change event is fiered. 

is this the proper behaviour??

Regards
Guillermo




Vladimir Iliev
Telerik team
 answered on 14 Sep 2012
1 answer
147 views
Kendo ver. 2012.2.710

I need to have multiple pickers (date and time) in a template that I call keno.init() on.  In the template I'm using data-attribute declaration for the pickers.  With data-attributes, can you set min/max for the pickers?  I've tried, but Kendo doesn't like it.

http://jsfiddle.net/q3FPV/3/

Thanks.
Iliana Dyankova
Telerik team
 answered on 14 Sep 2012
12 answers
332 views
Hi Kendos,

I'm playing with Kendo and ran in to a problem. When I try to force ios-look on Android mobile with this code

<script>
     new kendo.mobile.Application($(document.body), {
         platform: "ios"
     });
</script>

all the icons in the tabstrip disappear and leave only a blue square. Same with data-icon used in listview. Are there any solution to this problem???

Marjan
Top achievements
Rank 1
 answered on 14 Sep 2012
1 answer
306 views
Hi folks,

maybe my question is a bit un-kendoish but i am thinking about performance during the lifetime of an application. My users can open as many tabs as they wish and close them, too. When a tab is removed its elements are removed from the DOM. What happens to the event handlers attached to them? Are they automatically removed as well to allow garbage collection of the no-longer-pointed-to objects?

Every time a tab is opened its page is downloaded and its 'code-behind' script is loaded into memory. In the Visual Studio Cassini you can see that these scripts are never unloaded from memory. Probably the objects created in the scripts will stay in the interpreter's scope forever, as they are interrelated with each other. What would be the best strategy to keep those leaks small? Putting as few code into these scripts as possible is probably a good idea, but what else? Delete everything by hand? Or is there any way to unload a script?

All the best
Kai 
Kai Schiffer
Top achievements
Rank 1
 answered on 14 Sep 2012
18 answers
972 views
Is there a way to attach key value pair to node like you have in Treeview of ASP.NET MVC?
Something like this
new TreeViewItem
                                {
                                    Text = item.FirstName + " " + item.LastName,
                                    Value = item.EmployeeID.ToString(),
                                    LoadOnDemand = item.Employees.Count > 0,
                                    Enabled = true
                                };
Joe
Top achievements
Rank 1
 answered on 14 Sep 2012
1 answer
266 views
my treeview ::
    var opcPath = "";
    var dataSource = new kendo.data.HierarchicalDataSource({
        transport: {
            read: {
                url: "../fwp/getOPCTree.fwp?opcPath=" + opcPath,
                type: "GET",
                dataType: "json"
            }
        },
        schema: {
            model: {
                id: "opcPath",
                hasChildren: "hasChildren"
            }
        }
    });
    //初始化OPC树
    treeview = $("#opcTreeView").kendoTreeView({
        select: onOPCTreeSelect,
        dataSource: dataSource,
        dataTextField: "nodeName",
        dataSpriteCssClassField: "nodeCSS",
        dataImageUrlField: "imageUrl"
    });

the treeview is async!!!!
i can get the id "opcpath".
when the root is expand, 
but the child is not expand,
then i want to expand the child child child .....node through the id.
how  to do??
Nohinn
Top achievements
Rank 1
 answered on 14 Sep 2012
1 answer
2.0K+ views
Hello,
Anyone come across this issue where the combobox widget does not display the selected item when using JQuery.val to set selected value.
Steps to reproduce:
- Go to to the demo page: http://demos.kendoui.com/web/combobox/index.html
- Open the Firebug console or similar.
- Enter the following:
 $('#select').data('kendoComboBox').value() --> outputs the current value: 'X-Small'
 $('#select').val() --> Also outputs the same
 $('#select').val('Small')

- Notice that the widget still displays 'X-Small', but both  $('#select').data('kendoComboBox').value()  and $('#select').val()  return 'Small'

Thanks.




Nohinn
Top achievements
Rank 1
 answered on 14 Sep 2012
0 answers
119 views
Is there a way to bind TreeView's selected node to a MVVM view model?
If not, what are recommended or popular workarounds? Or should I give up MVVM and use TreeView without it?
Alexei Kondratov
Top achievements
Rank 1
 asked on 14 Sep 2012
5 answers
170 views
How would I go about creating this query with the datasource?

http://services.odata.org/V3/Northwind/Northwind.svc/Customers()?$filter=Orders/any(o:substringof('alf',o/ShipName))&$expand=Orders

I currently don't see how I could get this to work with what is available. Thanks for the help in advance.
-Jon Ross
Atanas Korchev
Telerik team
 answered on 14 Sep 2012
3 answers
267 views

I have written the following code using ASP.NET MVC3 and it's throwing me an error at the bold line(.Model(Function(model) model.id(Function(p) p.CostCentreID). It's saying that the expression does not produce a value? I thought it's asking for a primary key column only? Isn't that the case?

Please help

@ModelType IEnumerable(Of Mail.BAL.CostCentre)

@Code
    ViewData
("Title") = "Index"
End Code

@(Html.Kendo().Grid(Model) _
   
.Name("CostCentres") _
   
.Columns(Function(modelItem) modelItem.Bound(Function(p) p.CostCentreID).Hidden) _
   
.Columns(Function(modelItem) modelItem.Bound(Function(p) p.CostCentre)) _
   
.Columns(Function(modelItem) modelItem.Bound(Function(p) p.Active)) _
   
.ToolBar(Function(toolbar) toolbar.Create()) _
   
.Groupable() _
   
.Pageable() _
   
.Sortable() _
   
.Scrollable() _
   
.DataSource(Function(datasource) datasource _
                   
.Ajax() _
                   
**.Model(Function(model) model.Id(Function(p) p.CostCentreID)) _**
                   
.Create(Function(create) create.Action("Create", "Home")))
   
)
Vivek
Top achievements
Rank 1
 answered on 14 Sep 2012
Narrow your results
Selected tags
Tags
Grid
General Discussions
Charts
Data Source
Scheduler
DropDownList
TreeView
MVVM
Editor
Window
Date/Time Pickers
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)
SPA
Filter
Drawing API
Drawer (Mobile)
Globalization
Gauges
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
OrgChart
TextBox
Effects
Accessibility
ScrollView
PivotGridV2
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
Popover
DockManager
FloatingActionButton
TaskBoard
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
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?