Telerik Forums
Kendo UI for jQuery Forum
1 answer
262 views
I know that, using the .value(); method I can retrieve the TEXT of the currently selected item ...but what if we want to get the entire object, with all of its existential data intact?

Currently, the only method I have found is the following ...

var combobox = $("#input").data("kendoComboBox");
console.log(combobox.dataSource.view()[combobox._current.index()]);


This seems hardly intuitive and excessively redundant. The code is relatively simple, can't we just get a simple .selected() or a .current() method attached to it that pulls this? 
Georgi Krustev
Telerik team
 answered on 01 Feb 2012
1 answer
123 views
"change" event is being generated when I click on already selected row.
Moreover the event is generated when I click in any place of detail row (in master-detail mode) if it contains a table with td's.

Also the event's handler arguments don't have any data about event context (i.e selected row), so I have to call "select()". That's not obvious. It's more naturally to get selected row in event handler. Also there's "current()" method which seems to be more suitable for getting currently selected row, but it returns undefined.

UPDATE:
When you're creating kendo.ui.Selectable inside Grid :

            that.selectable = new kendo.ui.Selectable(that.table, {
                filter: cell ? CELL_SELECTOR : ROW_SELECTOR,
                multiple: multi,
                change: function () {
                    that.trigger(CHANGE);
                }
            });

where ROW_SELECTOR = "tbody>tr:not(.k-grouping-row,.k-detail-row):visible"
you should specify "direct" selector:
ROW_SELECTOR = ">tbody>tr:not(.k-grouping-row,.k-detail-row):visible",

But unfortunetly it doesn't help when detail panel constains another grid.
Just take you sample http://demos.kendoui.com/web/grid/detailtemplate.html and add  "seletable: 'row'" into the first grid. And add handle for "change" event:
                    element.bind("change", function (e) {
                        var td = this.select();
                        console.log("selected: " + td);
                    });
then notice that it logs rows when you selected rows inside nested grid.
Nikolay Rusev
Telerik team
 answered on 01 Feb 2012
1 answer
75 views
Hi,

Is that possible to use scrollview or any other widget to implement the touch slide in panel like the one you have on the twitter ipad or facebook ipad? 

Thanks,
Kathy
Petyo
Telerik team
 answered on 01 Feb 2012
4 answers
155 views
I've made some complex editing to test my grid. But i found "__id" attribute in my JSON. I didn't know where was it come from. It makes my deserialization from json to my model failed (I used MVC).... When i test a simple editing like combination of two delete and two insert operation, there is no "__id"  attribute. It only happens when i test the grid with complex query like three insert and three delete alternately..


 Is it bug from Kendo UI Grid ? Did anyone find a solution ?

Thx.. Regards... ^_^
Rosen
Telerik team
 answered on 01 Feb 2012
0 answers
74 views
Conditional navigation.

I would like to have a view that requests one of two things, License plate number and/or a Last name.

With a Search button in the footer, on click I would like to determine whether a License plate was entered, if so retrieve data from the server, if found I would like to transition to the vehicle view, if not found display an error on my current view. I a Last name was entered I would like to do the same process but display the customer view on success.

How would I set up the buttons to call a common function, and programmatically switch views or re-display the current view if there is an error?
Ron Richins
Top achievements
Rank 1
 asked on 31 Jan 2012
0 answers
125 views
Hello,

I need to set the sizes of each of the columns when initializing a Grid from exiting table. However this does not seem to be working even on the example given (http://demos.kendoui.com/web/grid/from-table.html ). Try setting colspan/width. It set to the header row but not the data rows. 

Thanks in advance for the help.

Warm regards,
Krishna
Krishna
Top achievements
Rank 1
 asked on 31 Jan 2012
3 answers
114 views
Hi,

Just a quick question. I noticed a promotion recently stating that buyers of Kendo UI Commercial license will get a Mobil license free. Does that hold true for those of us that bought the commercial license during the initial release period? I bought the commercial license in December 2011. Will I alsdo get a Mobile license when it's released?

Thanks,

Tony
Atanas Korchev
Telerik team
 answered on 31 Jan 2012
2 answers
208 views
I signed up, authorized.  Go to the download page, screen says file should begin downloading.  Never does.  So I click the link and am taken to ANOTHER site to register for something.

How can I just download the bits so I can evaluate properly?

Thanks.
Steve
Top achievements
Rank 1
 answered on 31 Jan 2012
1 answer
119 views
Hi,

How easy is it to add a textbox to add additional description text about the downloaded file. Ideally I'd like the downloaded file to be added to a table structure  file name, remove button and a text box to add additional information.

Cheers!
T. Tsonev
Telerik team
 answered on 31 Jan 2012
3 answers
230 views
Hello,

first of all, i want to say, i already love the kendo ui. I think i'll be using it a lot.
But, i have a problem and i can't seem to find the solution in the documentation.

I use the "customizing templates" example from the demo-section, because it's very similar to what i want to use.

I use the following javascript:

$("#products").kendoAutoComplete({
                        minLength: 3,
                        dataTextField: "title",
                        template: '<img src="${ data.image }" alt="${ data.title }" />' +
                                  '<dl>' +
                                      '<dt>Title:</dt><dd>${ data.title }</dd>' +
                                      '<dt>Price:</dt><dd>${ data.price }</dd>' +
                                  '</dl>',
                        dataSource: {
                            type: "json",
                             
                            pageSize: 20,
                            transport: {
                                read: "/getProducts.php"
                            }
                        }
                    });
 
                    // set width of the drop-down list
                    $("#products").data("kendoAutoComplete").list.width(400);

The getProducts.php is correctly linked to the file and with the OSX tool Charles i can see the data is retreived when i'm typing in the textbox. 

getProduct.php echoes a valid JSON object like this
[{"id":"6","code":"bbyb05","title":"05 : name1","price":"5.00","image":"uploads\/items\/6\/bbyb2011_-4_05.jpg"},{"id":"4","code":"bbyb058","title":"58 : name 2","price":"5.00","image":"uploads\/items\/4\/nr58_big.jpg"}]

I also tried already to add "data:" to the json, like below, but it doesn't make any difference.
{"data":[{"id":"6","code":"bbyb05","title":"05 : name1","price":"5.00","image":"uploads\/items\/6\/bbyb2011_-4_05.jpg"},{"id":"4","code":"bbyb058","title":"58 : name 2","price":"5.00","image":"uploads\/items\/4\/nr58_big.jpg"}]}

Can somebody please tell me, what i'm doing wrong?
Thanks!
Best regards,
vince

Atanas Korchev
Telerik team
 answered on 31 Jan 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
Licensing
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
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?