Telerik Forums
Kendo UI for jQuery Forum
2 answers
246 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
157 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
64 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
146 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
325 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
308 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
632 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
96 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
1 answer
154 views
Hi,

Is there a way to obtain the dataSource object that is bound to the details grid in a hierarchical grid. I have editable columns in the details grid and need to add rows to the details grid at runtime.

Regards,
Sarvesh
Petur Subev
Telerik team
 answered on 12 Jul 2012
1 answer
139 views
I made a few posts in these Kendo UI forums and I apperantly received some points from the admins. What do these points do, and how can I redeem them?
Dimo
Telerik team
 answered 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
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
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?