Telerik Forums
Kendo UI for jQuery Forum
4 answers
247 views
Hi all,
I'm trying out Kendo as an alternative to jQuery-UI and so far it is working nicely.
One thing I couldnt really figure out (I'm probably missing something....) - I created a grid from an array.
Now, I want to redraw the grid using the same element but with a different data set.
With jQuery-UI I simply could destroy the grid and the recreate it. How do I do it in Kendo?

Thanks
Rafi
Nick
Top achievements
Rank 1
 answered on 01 Feb 2012
1 answer
177 views
How do you set an initial value in a dropdownlist that is bound to remote data?

Currently I have to use setTimeout to make sure data is loaded before I can call dropdown.value('initalvalue').

I have been searching for an event or something but I cannot find it.
Georgi Krustev
Telerik team
 answered on 01 Feb 2012
0 answers
151 views
Hi there,

I'm having a problem setting an edited row to be called for updating back to the server. The default edit along with save using the toolbar works perfectly. However, i wish to make use of a form.  Somewhere somehow I have to either set an attribute or throw the item into a queue so that Kendo knows it needs to perform an update query.

<code>
    $("#form-edit").live("submit",function(e) {
    // Declaring grid
    var grid = $("#grid").data("kendoGrid");
   
    // Getting values of selected item
    var row = grid.dataItem(grid.select(grid.tbody.find()))
   
    // Declaring window
    var window = $("#window-edit").data("kendoWindow");
   
    // Setting variables for editable row       
    row.Name = $("#form-edit-name").val();
    row.GeoLocation = $("#form-edit-location").val();
    row.Active = $("#form-edit-activity").val();
    row.ContactNo = $("#form-edit-number").val();      

// Grid refreshing and database sync
// grid.refresh();
grid.saveChanges();

// Closing form window
window.close();
    });
</code>

The default kendo way (using inline as well as the toolbar save) works 100% thus proving that my datasource has been successfully set up.  

Regards,
Tom
Top achievements
Rank 1
 asked on 01 Feb 2012
3 answers
162 views
The display looks ok on the Macbook but weird on the iPad. Any ideas? 
Kamen Bundev
Telerik team
 answered on 01 Feb 2012
1 answer
279 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
131 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
78 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
164 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
75 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
138 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
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
Drag and Drop
Application
Map
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
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?