Telerik Forums
Kendo UI for jQuery Forum
4 answers
2.3K+ views
I have a grid bound to a remote data source which displays a summary of data. I also have a detail grid which is used for adding additional data.

As new detail rows are added, the summary becomes out of sync with the detail, as it is based on a different data source. I'm happy with this, but I'm trying to add a button that will refresh the master/summary grid.

It should be pretty simple. I'm using HTML:
<button  id="refresh">Refresh Totals</button>
And javascript (abbreviated):
var grid = $("#grid").kendoGrid({... });
 
$('#refresh').click(function(){
    grid.refresh();
});
Clicking the refresh button just gives me:
Uncaught TypeError: Object [object Object] has no method 'refresh'
in Chrome's console

Where am I going wrong?

Thanks
M
Top achievements
Rank 1
 answered on 15 Nov 2012
5 answers
405 views
Trying to get a drop down to display during the edit of a foreign key column. The examples all provided appear overly complex and I am unable to get my code functioning. Furthermore, the ASPX and Razor examples do not match their HTML counterparts. The examples also use ViewData and another uses a "Template". I am unable to unwind all the different parts of the examples since they are not self-contained.

http://demos.kendoui.com/web/grid/foreignkeycolumn.html

My Code Simplified:

@(Html.Kendo().Grid<Business.EquipmentModel>()
    .Name("Grid")
    .Columns(columns =>
    {
        columns.Bound(e => e.EquipmentId);
        columns.Bound(e => e.Make);
        columns.Bound(e => e.Model);
        columns.Bound(e => e.EquipmentTypeId);
        columns.ForeignKey(e => e.EquipmentTypeId, (System.Collections.IEnumerable)Business.EquipmentTypeModel.All(), "EquipmentTypeId", "EquipmentTypeName");
        columns.Bound(e => e.FacilityId);
        columns.Command(command => { command.Edit(); command.Destroy(); }).Width(200);
    })
    .ToolBar(toolbar => toolbar.Create())
    .Editable(editable => editable.Mode(GridEditMode.InLine))
    .Pageable()
    .Sortable()
    .Scrollable()
    .Filterable()
    .DataSource(dataSource => dataSource
        .Ajax()
        .Model(model => model.Id(e => e.EquipmentId))
        .Read(read => read.Action("Equipment_Read", "Facilities"))
        .Create(update => update.Action("Equipment_Create", "Facilities"))
        .Update(update => update.Action("Equipment_Update", "Facilities"))
        .Destroy(update => update.Action("Equipment_Destroy", "Facilities"))
    )
)
In non-edit mode, the EquipmentTypeName resolves correctly, but upon edit, the EquipmentTypeId is displayed (as an int). I need to bind a dropdown in edit mode to a model action.

Brendon
Top achievements
Rank 1
 answered on 15 Nov 2012
9 answers
156 views
Is localization supported in Q3? What about the various strings that are output by the widgets or the framework? Can they be translated to other languages easily?

Maybe localization is already prepared by language-specific Javascript files, which contain nothing but text in one specific language? 

Michael G. Schneider
mgs
Top achievements
Rank 1
 answered on 15 Nov 2012
0 answers
95 views
Hi,

I have a solution to perform crud operation.
I have some problem with update operation.
The scenario is, I have a sharepoint2010 list. this list is binded with grid.
for update operation I am specifying the event provided by Kendo UI Framework that is "k-grid-update".
please just suggest me how can I access the newly edited values in my event handler". Following is my handler.
 $("#grid").on("click", "k-grid-update", function(e){
                         // How can I retrieve newest edited or added values.
                          });

.
So that I can update the sharepoint list as well with grid it is update itself.
Please suggest me soon.

Thanks,
Kalpesh
Kalpesh
Top achievements
Rank 1
 asked on 15 Nov 2012
2 answers
57 views
Is there a fix for this issue? Here is the scenario:

Choose some date in the control, i.e.: November 14, 2012
Choose a time other than midnight, i.e.: 2:30 PM
Select another date in November. Notice that "2:30 PM" is retained.
Without changing months, select one of the grayed-out dates for October.
Notice that "2:30 PM" is replaced by "12:00 AM".

Expected user result is that when the date outside of the November dates are selected, the time is retained.
Sarah
Top achievements
Rank 1
 answered on 15 Nov 2012
1 answer
60 views

Requirements

Kendo UI Mobile


jquery-1.8.2


IOS


group button & popover



PROJECT DESCRIPTION 

Here is a sample of a group-button opening a popover.  The folks at the help desk got me started with a solution.
Used the select index, selectTimeout  function, and openFor method. The document is attached  below.  
setTimeout(function() {
                       $("#foo").data("kendoMobilePopOver").openFor($("#fooBtn"));
                       }, 0);


Alexander Valchev
Telerik team
 answered on 15 Nov 2012
2 answers
158 views
As far as I understood, HierarchicalDataSource does not have get method, meaning recursively traverse the structure for a node by its attribute. Am I correct?
Vladimir Iliev
Telerik team
 answered on 15 Nov 2012
2 answers
93 views
While working with the Treeview, I noticed that checkboxes would only work if I switched from 2012.2.xxxx to 2012.3.xxxx.  Fine. After switching to the 3Q release, I get bad behavior with the Grid.  Without changing the code, only switching the reference from 2Q to 3Q CSS & JS, the checked-treeview now works but the Grid does not.  Am I missing something?  See the JSFiddle here: http://jsfiddle.net/TJxFZ/ 
Paul Seabury
Top achievements
Rank 1
 answered on 15 Nov 2012
1 answer
779 views
When I have a date time with milliseconds, the milliseconds will always be set to 0 if you change the date with the calandar while the hours, minutes and seconds remains the same.

Am I the only one dealing with this issue?
Georgi Krustev
Telerik team
 answered on 15 Nov 2012
1 answer
568 views
I have a pageable list-view (mobile) bound to a remote data set.

So far, so good. I can connect, get the data, scroll on demand.

Sometimes, however, I need to "reset" the data-source because some parameters that are used for the read are changed and I need to restart reading from scratch.

I am not sure how to do that.

an alternative for me would be to 'unbind' the list-view element, and assign a new data source that I create to it - but I am not sure how to access the data of a list-view item I already created with kendoMobileListView already.
Alexander Valchev
Telerik team
 answered on 15 Nov 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
Collapsible
Localization
MultiViewCalendar
Touch
Breadcrumb
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
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?