Telerik Forums
Kendo UI for jQuery Forum
0 answers
95 views
Hi,

I have a kendo Window, where the close, maximize , minimize icons are not getting displayed properly.
This occured when I made a change in the css(common.min.js and black.min.js), where I changed the k- components to a- components. I made the change in kendo.web.js and kendo.min.js. But everything works fine except for the icons for close, minimize, maximize and their respective functionality. Can anyone tell me where else would i need to make the respective changes.
Pooja
Top achievements
Rank 1
 asked on 13 Jul 2012
0 answers
88 views
I'm implementing the kendo.drag component on the endless scroll. The idea is to auto-hide the nav bar and tab strip on scroll up and re-show on scroll down (Like some native apps are doing.)

This code seems to work pretty well on the phone but when I test in a browser the page won't scroll. I know the events are being fired when I add alerts but the page stays unscrollable. Any ideas?

Thanks.

function hideNavBarsOnScroll() {
 
    var ggPosn = '0';
    var log = '';
    var drag = new kendo.Drag($('#endless-scrolling'), {
        start: function (e) {
            if (e.y) {
                ggPosn = $('#endless-scrolling').offset().top;
            }
        },
        move: function (e) {
            if (e.y) {
                if ($('#endless-scrolling').offset().top < ggPosn) {
                    if ($('#homeview header').is(':visible')) {
                        $('#homeview header').slideUp('slow');
                        $('#homeview .km-footer').attr('style', 'position:absolute;').animate({ 'bottom': '-' + $('#homeview .km-footer').height() + 'px' }, 'slow', function () { });
                    }
                } else {
                    if ($('#endless-scrolling').offset().top > ggPosn) {
                        if ($('#homeview header').is(':visible') == false) {
                            $('#homeview header').slideDown('slow');
                            $('#homeview .km-footer').attr('style', 'position:absolute;').animate({ 'bottom': '0px' }, 'slow', function () { });
                        }
                    }
                }
            }
        },
        end: function (e) {
            if (e.y) {
                ggPosn = $('#endless-scrolling').offset().top;
            }
        }
    });
 
}
Ben
Top achievements
Rank 1
 asked on 13 Jul 2012
2 answers
221 views
it seems like there might be some issues with the kendo.common.min.css stylesheet, where it affects objects that are not just kendo related?  Implementing this stylesheet has changed the ordering of several of my tables and divs that are NOT involved with kendo in any way.  I'm using 2012.2.710.  I'm by no means a CSS expert, but i was able to narrow down what was causing the issue by removing each of my stylesheets one by one. 

Shouldn't this stylesheet only affect kendo controls?
Sean
Top achievements
Rank 1
 answered on 12 Jul 2012
0 answers
132 views
I have tried the following:

var tourt = kendo.template('<tr><td>${TotalRegistration=MemberRegistrationCount+GuestRegistrationCount}</td></tr>');
var tourh = '<table id="tourg"><thead><tr><th># Registered</th></tr></thead></table>';

tourngrid = $('#tourg').kendoGrid({ rowTemplate: tourt }).data('kendoGrid');

$('#minUsers').kendoNumericTextBox();
$('#goFilter').click(function() {
            tourngrid.dataSource.filter({filter: { field:"TotalRegistration", operator:"ge", value:$('#minUsers').data('kendoNumericTextBox').value()}});
});

Amazingly the assignment in the row template still reports the correct number in the grid column.  But it does not execute the filter using that assigned variable defined in the template.

Is there a way to sum two columns and use the result in the grids filter?




Guy
Top achievements
Rank 1
 asked on 12 Jul 2012
0 answers
51 views
Can someone send me an example of Master Detail for mobile list view.
I am trying to work with xml datasource and on list view selection on master , need to filter the xml to display the detail.
Preeti
Top achievements
Rank 1
 asked on 12 Jul 2012
0 answers
126 views
Can someone send me an example of Master Detail for mobile list view.
I am trying to work with xml datasource and on list view selection on master , need to filter the xml to display the detail.
Preeti
Top achievements
Rank 1
 asked on 12 Jul 2012
2 answers
310 views

I have an issue with binding the click event to a label in a template.

I’ve posted issue on JSFiddle: http://jsfiddle.net/scornell10/JFTbk/

When you select an item in the DataGrid, it is moved to the ListView.

The ListView uses a template that has a label (with the value of X) that I bind the click event too.

The bind works for 1st or the last selection.

If I select multiple, only the last item in the listView has the click event bind to it. All the others go away.

I’ve used Chrome dev tools and I can see the click event disappear when I add another item.

I can get a workaround by changing the template to:

<label>${Name}</label><label id="${ID}" onClick="onDelete(this);">X</label>

I’d rather bind dynamically as each item is selected.

Any thoughts on why it seems to remove the click handler?

Thanks

Scott
Top achievements
Rank 1
 answered on 12 Jul 2012
1 answer
254 views
This is from your "Getting started" page:
<!-- View -->
<div id="view">
<!-- The value of the INPUT element is bound to the "firstName" field of the View-Model.
When the value changes so will the "firstName" field and vice versa. -->
<label>First Name:<input data-bind="value: firstName" /></label>
<!-- The value of the INPUT element is bound to the "lastName" field of the View-Model.
When the value changes so will the "lastName" field and vice versa. -->
<label>Last Name:<input data-bind="value: lastName" /></label>
<!-- The click event of the BUTTON element is bound to the "displayGreeting" method of the View-Model.
When the user clicks the button the "displayGreeting" method will be invoked. -->
<button data-bind="click: displayGreeting">Display Greeting</button>
</div>
<script>
// View-Model
var viewModel = {
firstName: "John",
lastName: "Doe",
displayGreeting: function() {
// Get the current values of "firstName" and "lastName"
var firstName = this.get("firstName");
var lastName = this.get("lastName");
 
alert("Hello, " + firstName + " " + lastName + "!!!");
}
};
// Bind the View to the View-Model
kendo.bind($("#view"), viewModel);
</script>

You can actually condense these lines:
// Get the current values of "firstName" and "lastName"
          var firstName = this.get("firstName");
          var lastName = this.get("lastName");
 
          alert("Hello, " + firstName + " " + lastName + "!!!");

into a single line which uses the properties directly instead of calling "get()" and assigning it to a local variable, first.  In other words, this works:
alert("Hello, " + this.firstName + " " + this.lastName + "!!!");

That makes a lot of sense because we should be able to directly use the local properties.  However, this does not work if you wanted to clear the input:
this.firstName = '';

You have to use this, instead:
this.set("firstName", '');

which seems strange.  So, my questions are:

1)  Is there a reason why you didn't directly use the properties (e.g. "this.firstName" instead of "var firstName = this.get('firstName');") in the demo?  Is there a downside to doing it that way?
2)  Is the fact that we can't "set" local properties directly (as we can "get" them) a bug/oversight?

Thanks.
Michael
Top achievements
Rank 1
 answered on 12 Jul 2012
7 answers
614 views
I have a kendo grid that is attached to a datasource. Users are able to apply filters on the grid and I'm wondering if there is a way to extract the data after the filters are applied?

The reason for this is that I can then send the filtered data to the server and export to csv/excel. Currently my export works, but doesn't take into account any filters. It exports all the data from the grid.

Thanks!
Hattan Shobokshi
Top achievements
Rank 1
 answered on 12 Jul 2012
0 answers
86 views
HI,
    When I bind gird to a remote datasource,should I return all the data at server? actually,I just want to show one page,how should I do that,and,where can I define the total record count or total page? Waiting for your answer,3Q :)
Tian
Top achievements
Rank 1
 asked on 12 Jul 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
MultiColumnComboBox
Chat
DateRangePicker
Dialog
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Effects
Accessibility
PivotGridV2
ScrollView
BulletChart
Licensing
QRCode
ResponsivePanel
Switch
Wizard
CheckBoxGroup
TextArea
Barcode
Breadcrumb
Collapsible
Localization
MultiViewCalendar
Touch
RadioButton
Stepper
Card
ExpansionPanel
Rating
RadioGroup
Badge
Captcha
Heatmap
AppBar
Loader
Security
TaskBoard
Popover
DockManager
FloatingActionButton
CircularGauge
ColorGradient
ColorPalette
DropDownButton
TimeDurationPicker
ToggleButton
TimePicker
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
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?