Telerik Forums
Kendo UI for jQuery Forum
0 answers
82 views
OK, I'm an idiot. The problem I had was entirely my own fault, and since I can't delete the post I'm just removing the content so it doesn't confuse anyone else.
Dave
Top achievements
Rank 1
 asked on 08 Jan 2013
1 answer
243 views
What is the proper way to cause a row to be moved into another group when the value in the relevant cell of its underlying dataItem is changed programmatically?  For example, assume that the grid is being grouped by [department] and then, with the rows grouped beneath the various departments, the following updateTest() method shown below is invoked. We want the updated row to be moved to into the FOO department grouping when the grid is refreshed; also, if the grid did not previously contain a group for FOO, we want a new group created. 

Why am I trying to do this? My application is polling the database server every 30 seconds, and I am trying to figure out how to update existing data as required,  and how to insert new rows into the dataItems array real-time while the users are looking at the grid on their screens, and to do this without causing the entire grid to be rebound [with dataSource.data(someNewFreshDataWithSameSchema) ] as the dataSource.data() method destroys any groupings the users may have established, expanding all groups by default.

EDIT: Updating the underlying dataitems seemed a promising alternative approach to the data() method, but we need the refresh() method to re-apply the sorting/grouping, if not by default, then as an option:   grid.refresh( {resort:true, regroup:true}).  BUT...the re-sort/re-group should not automatically expand collapsed groups.

EDIT: if the user clicks on the ascending/descending sort button on the grouping widget in the k-grouping-header, then the updated row is correctly moved to the proper group based on its new cell value. The grid.refresh() is apparently not calling whatever re-sort method is invoked by that user action.  If the grid.refresh() called that method as well, then the code below would work. Alternatively, the API could expose the appropriate sort method and I could call it myself.

     
function updateTest() {
         var grid = $("#grid").data("kendoGrid");
         var item = $(grid.tbody).find("> tr:not(.k-grouping-row, .k-detail-row, .k-group-footer):first")       
         var dataitem = grid.dataItem(item);       
         dataitem["department"] = "FOO";
        grid.refresh();
     }
Alexander Valchev
Telerik team
 answered on 08 Jan 2013
1 answer
237 views
I'm trying to get a couple of 'From', 'To' datepickers to open automatically on focus. I've got it working fine, apart from the fact that the calendar opens above the inputs - which looks weird. 

How do I get it to open below them, as per convention?

$(".dp").bind("focus", function() {
        $(this).data("kendoDatePicker").open();
});
<div id="datePickers" class="k-group">
    <label>Date Range</label>
    @(Html.Kendo().DatePicker()
        .Name("From")
        .Min(new DateTime(2012, 01, 01))
        .Max(new DateTime(2020, 12, 31))
        .Value(new DateTime(DateTime.Today.Year, DateTime.Today.Month, 1))
        .HtmlAttributes(new { @class = "dp" })
    )
    @(Html.Kendo().DatePicker()
        .Name("To")
        .Min(new DateTime(2012, 01, 01))
        .Max(new DateTime(2020, 12, 31))
        .Value(DateTime.Today)
        .HtmlAttributes(new { @class = "dp" })
    )
     
    <button class="k-button" id="search">Search</button>
</div>
  
Wael
Top achievements
Rank 1
 answered on 08 Jan 2013
10 answers
166 views
With external content loaded into a resizable pane, clicking on the resize handle/bar places an overlay on the page that is never removed, breaking the page.

http://jsfiddle.net/cyphiotic/rXef8/
Lee
Top achievements
Rank 1
 answered on 08 Jan 2013
1 answer
123 views
I'm walking through a basic Kendo UI Mobile setup since our existing app navigation buttons have seemed to have stopped working... and I am experiencing similar issues on a bare-bones html page which can be found here : http://mt.skyprofit.com

I am referencing the code sample walkthrough found here: http://docs.kendoui.com/howto/build-apps-with-kendo-ui-mobile

The problem currently is specifically dealing with the tabstrip... it navigates to the About (Page1.html) page without issue... but going back to Home doesn't work at all.... is the code sample incorrect?? Or is Kendo UI Mobile not working correctly? Thanks in advance!
Alexander Valchev
Telerik team
 answered on 08 Jan 2013
3 answers
832 views
I am following the examples from the wensite but the following configuration still displays the currency in US Dollars.  Is there something else I need to specify in addition to the culture?  Thanks!

$("#currency").kendoNumericTextBox({

format: "c",

culture: "de-DE",

decimals: 3

});

Alexander Valchev
Telerik team
 answered on 08 Jan 2013
1 answer
67 views
I have a Kendo UI Mobile app that uses an index.html file with a few layouts and one initial view, #navigation.
All other views are loaded from separate files in subdirectories like this:

chapter01/page01.html,
chapter01/page02.html
etc.

I intend to use the app in cordova project. Everything seems to be working nicely if i don't use a browser, but only xcode simulator.

One thing bothers me: if I exit from the app after navigating to some pageXX view, and then load the app again, the last viewed view appears briefly, but the application quickly goes to the starting index.html page.

How can I control this behaviour. I'd like to have my application either always go straight to the starting page or stay in the last showed page from the previous app start. Current flashing of previous content is rather annoying. Any idea what I could do to control this in either way I choose?
Alexander Valchev
Telerik team
 answered on 08 Jan 2013
3 answers
147 views
Hi i'd tryed to put splitview and tabstrip together but i faild . Is it possible? Thanks Elios
Kamen Bundev
Telerik team
 answered on 08 Jan 2013
1 answer
122 views
I have a treeview inside a parent div. The parent div has a fixed width and height, with overflow:scroll. So when the treeview contains many items, you can scroll the div down to see them. If you do this, then select a node, the div goes back to the top, so you then have to scroll down to find the node you clicked on.

I'm guessing clicking on the treeview is then propagating to the parent div. Is there a way to stop this?

Thanks
John
Top achievements
Rank 1
 answered on 08 Jan 2013
3 answers
155 views
I have recently adquired Kendo UI for developing html5 applications. I have created few examples with success but I'm stuck with few examples.

I would like to get the following structure for the website skelethon:

  • 3 NavBar
  • Kendo UI or Jquery Scrollview plugin inside the content(picture,text,etc) of each Navbar (2 or 3 left/right scrollable pages)
  • I would like to add inside the content of the scrollview page a pie chart, datapicker and few mote stuff.
Not sure how I should manage to create all of this or which libraries I should include in the project
I have tried several times without success.

I would really appreciate any help.

Best regards
Alexander Valchev
Telerik team
 answered on 08 Jan 2013
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?