Telerik Forums
Kendo UI for jQuery Forum
5 answers
139 views
Hey,

I have this use case:

On the server I have a JSON file that changes (for example) every 15 minutes.
The client typically leaves his browser open and wants to see the changes as fast as possible.

On the server I solved it this way:
When getting the json file, the server uses a http 304 to indicate that the file hasn't changed since the last request.


Client side I solved it this way:
 I have a kendo datasource, and an interval that is doing  datasource.read   (polling mechanism):

Problem:
The data isn't changed, but still the "change" event of the datasource is triggered.

Is there any way of achieving this with kendo datasource, without reprogramming the entire datasource with $.ajax?

Or is this maybe a good feature request :-) ?
As an extra: I don't want to use polling, but look at the Expires http header, to know when to do the next request.

My code:
01.var datasource = new k.data.DataSource({
02.    transport: {
03.        read: {
05.                url: 'test.txt',
06.                dataType: 'json'
07.            }
08.        },
09.    schema: {
10.        data: function (data) {
11.            return data.Layers || [];
12.        }
13.    }
14.});
15. 
16.//polling..
17.var _interval = window.setInterval(function () {
18.        datasource.read();
19.}, 5000);
20. 
21.datasource.bind('change', function (e) {
22.    //This shouldn't be triggered every 5 seconds
23.    console.log(this.data().length);
24.});
The response received from the server looks like this:

HTTP/1.1 304 Not Modified
Last-Modified: Mon, 02 Sep 2013 08:02:11 GMT
Expires: Mon, 02 Sep 2013 08:15:00 GMT
Accept-Ranges: bytes
ETag: "383bbbab2a7ce1:0"
Server: Microsoft-IIS/7.5
X-Powered-By: ASP.NET
Date: Mon, 02 Sep 2013 09:23:10 GMT
Kind regards,
Dierik Vermeir
Top achievements
Rank 1
 answered on 04 Sep 2013
5 answers
378 views
Hi Kendo Team,

We are using Kendo UI (Free download version) for our ASP.NET + CRM support application
development.
Kendo Grid and Datepicker are the controls we are facing issues with.

 1) Grid cell edit does not work in IE8 browser but in Chrome browser
If you are editing Grid cell and hit TAB key or ENTER key, cell wont persist the newly added values while in IE8 but it will persist the newly added values if you are using Chrome.
If cell is of numeric type then while editing Increment and Decrements option within cell are not coming in IE8 but in chrome.

2) Date picker is not working in Kendo window We are placing Date picker control along with some other html controls in a div and assigning that div to Kendo window. On click of Date picker icon it is failing to open Date popup in any browser. Whereas we have Date picker in parent window and which is working absolutely fine there but not in kendo window (child modal window)

Please suggest us 
some solution on this to make it working.

--Thanks,
RP
Kiril Nikolov
Telerik team
 answered on 04 Sep 2013
1 answer
164 views
is there a way to tie autocomplete to listview results? What I'm trying to do it to use autocomplete search box, and as results come in, populat listview.

thanks
Alexander Popov
Telerik team
 answered on 04 Sep 2013
1 answer
85 views
First, let me say that I have a background in ASP.Net  web development and have quite a bit of experience writing iOS client side apps in objective c and c# (via xamarin).

I have a client who wants us to start a mobile web site for them but doesn't quite feel comfortable going client side at the moment.  If this project is successful, they may decide to go to a full blown client side iOS app.  If I write the app using Kendo UI Web (HTML5), is there a clear migration path to Kendo UI mobile?
Dimo
Telerik team
 answered on 04 Sep 2013
3 answers
257 views
Hello,
I've got a problem with a page inside a Kendo ui page...
consider this code please

That's my main page calling a window
@{
    ViewBag.Title = "Index";
}
 
<h2>
    <button id="button" class="k-button">openWindow</button></h2>
 
 
 
@Html.Kendo().Window().Name("winTest").LoadContentFrom("Index", "TestWindow").Modal(true).Visible(false).Title("Prova");
<script>
    $(function () {
 
        $("#button").click(function () {
 
 
            $("#winTest").data("kendoWindow").open();
        }
        );
    });
</script>
Here's the content of the window I load
@{
    ViewBag.Title = "Index";
    Layout ="";
     
}
 
@using (Html.BeginForm("Inserisci"))
{
    <h1>Some text</h1>
    <input type="submit" value="Click me" class="k-button" />
}
And the test controller

public class TestWindowController : Controller
   {
       //
       // GET: /TestWindow/
 
       public ActionResult Index()
       {
           return View();
       }
       public EmptyResult Inserisci()
       {
           return null;
           //return EmptyResult
       }
 
   }

When I click on the button the main page is redirected to Index of TestWindow..... how can I fix this?

Another question how do I tell to the view inside the window to close itself after having done some update on the repository?

Thanks
Daniel
Telerik team
 answered on 04 Sep 2013
2 answers
121 views
Dear Kendo Team,
I've grid with sortable,filterable, groupable and resizeable behaviors.
All works fine, excepted it is a bit hard to get the resizeable behavior due to the fact the cursor seems to get the css cursor style of the sortable behavior...
Could you provide me a solution in order to set the sortable behavior only on the title of a header column?
Thanks in advance
HUA
Top achievements
Rank 1
 answered on 04 Sep 2013
2 answers
475 views
Hi,

I have a kendo grid that will be initialized and loaded with data on page load. In many instances, due to slow network, the grid takes time to load. How do I get to find out when the grid has been initialized and loaded completely, so that I can take the data from the grid using dataSource.data() api ?

Thanks,
V N
Vishnu
Top achievements
Rank 1
 answered on 04 Sep 2013
1 answer
169 views
When I try out the order in which the events of a view are fired, like this:

    <div data-role="view" data-layout="phoneLayout"
        id="settingsView"
        data-model="app.viewBehind.settings.viewModel"
        data-before-show="app.viewBehind.settings.beforeShow"
        data-init="app.viewBehind.settings.init"
        data-show="app.viewBehind.settings.show"
        data-before-hide="app.viewBehind.settings.beforeHide"
        data-hide="app.viewBehind.settings.hide">
[...]
    </div>

the beforeHide event (described here:  http://docs.kendoui.com/api/mobile/view#events-beforeHide) does not fire at all. Curiously enough, i cannot find any reference to "beforeHide" in the kendo.all.min.js sources. Is this a version related issue? I'm using kendoui.complete.2013.2.716.trial .

TIA Peter


Kiril Nikolov
Telerik team
 answered on 04 Sep 2013
1 answer
82 views
Hi,

Kendo UI 2013.2.716
PhoneGap 3.0.0

I have a slider in a view. On an iPhone it is very hard to capture the handle and slide it with a finger. 
Most of the time the finger simply slides over it, without making it move; so the user has to try again and again until it captures the touch for the handle and starts moving. 

Is there any way to improve this? It is really unusable the way it stands now.

Thanks
Hristo Germanov
Telerik team
 answered on 04 Sep 2013
1 answer
103 views
Hello,
We've being  analysing kendo-ui before we buy it and we face what appears to be a performance issue(or not). As we are not costumers yet, we don't know if this is the right place to post this question, but here we go.

Attached to this thread there's a small html file that takes a quite long time to run despite its simplicity.
The questions are very simple:

1 - Are we using kendoComboBox in the wrong way?
2- There is a faster way to achieve the same result?
3- Is this performance considered normal?
4- If the answer for question 3 is `yes', do you have any guidelines to help us out to bypass these performance issues(number of elements per page, number of bindings per page etc)?

Ah, of course, it may be not a `performance issue' in other person point of view, so, when you read `performance issue' here, its our point of view :)
Despite that, neat library and great components.

Alexander Popov
Telerik team
 answered on 04 Sep 2013
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
Drag and Drop
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
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?