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

I am using MVC4 single page application on VS 2010 together with upshot.js and knockout.js.
I am using the following MVVM javascript (as my view-model js):

var dsCharges = upshot.RemoteDataSource({
providerParameters: { url: constants.serviceUrlItem, operationName: "UpdateCharge" },
provider: constants.provider,
        entityType: "Charge:#My.Models"
       }).refresh();
ko.applyBindings(new ChargeViewModel(dsCharges));


As you can see above, I am using a datasource binding to populate my grid. Data is displayed on my grid.
I need help to format my data which are of type money and datetime.
How do I format it using knockout.js? Can you please show me an example code snippet on how to do this?

Many thanks,

#CaughtUp#
Top achievements
Rank 1
 asked on 22 Jul 2012
0 answers
85 views
Am I missing something?  If I pass in July 25th & 26th into the dates field, aside form a custom template is there no way to decorate those days??  Not even a class or anything added?
sitefinitysteve
Top achievements
Rank 2
Iron
Iron
Veteran
 asked on 22 Jul 2012
0 answers
103 views
Hi,
I want to display an area chart but i couldn't. The framework is rendering a column chart every time.
Here's my code :
$('#chart_div').kendoChart({
theme: $(document).data('kendoSkin') || 'default',
legend: {
position: 'top'
},
chartArea: {
background: 'transparent'
},
seriesDefault: {
type: 'area'
},
dataSource: {
transport: {
read: {
url: source,
dataType: 'json'
}
},
sort: {
field: 'year',
dir: 'asc'
}
},
valueAxis: {
labels: {
format: '{0}'
}
},
tooltip: {
visible: true,
format: '{0}'
},
series: [{
field: 'calls',
name: 'Calls',
},{
field: 'limit',
name: 'Limit' ,
}],
categoryAxis: {
field: 'day',
labels: {
rotation: -90
}
}
});

Thanks.
Haythem
Top achievements
Rank 1
 asked on 22 Jul 2012
2 answers
182 views
The default grid filters are OK, but we'd really like to be able to customize them. For example, I want to be able to set a simple filter for a column that consists of a drop down list of all items that exist in that column. Excel does this quite well. Is it possible to add out own filtering UI?
Darrick
Top achievements
Rank 1
 answered on 22 Jul 2012
0 answers
143 views
I am using an Autocomplete and a listview bound to the same datasource.  The autocomplete allows the user to filter the data in the listview, and things work just great.  But now I need to add an Active criteria to the filter, this is a boolean which additionally allows the user to view records which are marked InActive.  The problem I'm having is that it seems that it seems that if the autocomplete is bound to a datasource it thinks it owns the datasource where filtering is required in that the search function sets the datasource's filter.  I thought about using two datasources so that the autocomplete just has it's own datasource but I would like the autocomplete to also use the Active criteria but I don't see any available hooks. 

Is there a way to have the autocomplete use additional criteria when calling to the datasource?

Thanks,
Shane Holder


Shane
Top achievements
Rank 1
 asked on 21 Jul 2012
1 answer
228 views
I have a mobile listview bound to a model array.
I would like to bind the swipe events on the list view items to display a delete button (the iOS way).
I have implemented the swipe events as explained at http://demos.kendoui.com/mobile/swipe/index.html.
Unfortunately I cannot specify the function that binds the events in the data-init attribute of the view because my listview is dynamic.
1) Which event shall I use (change event on the model? how can I be sure that it is called after the listview is updated?)
2) How to unbind the handlers before binding them again?

Optionally:
3) Is there any way to make the items in the list view draggable to be reordered?
Jack
Top achievements
Rank 2
Iron
 answered on 21 Jul 2012
1 answer
119 views
Hi, I am making an app that I want to look very similar on both android and iphone and want to have TabStrip on the bottom and NavBar at the top for both. How would I go about doing this?
Bundyo
Top achievements
Rank 1
 answered on 21 Jul 2012
4 answers
164 views
Hi,

I understand that the default navigation is hash navigation in a single page, and that remote views are pulled in via Ajax.

In Razor WebPages, you can define any seo-friendly url structure just by making sure file exists, and all extra parts of the url are passed in as parameters (eg. mysite.com/products/1/detail -> products.cshtml will accept this and have UrlData[0]="1" & UrlData[1]="detail"). 

I want to keep using this very handy url system combined with the mobile output of Kendo. So, I'm wondering how you handle the common scenario that a visitor browses to a direct url. As you don't include the Kendo styles & scripts in remote views, the visitor will only see unstyled html.

Thanks for any help!
o.
oVan
Top achievements
Rank 2
 answered on 21 Jul 2012
3 answers
1.2K+ views
well I must confess that im a little newbie using kendoui grid, I was trying to get data from REST service and put them on a globally var on js, so when the datasource change, I was trying to execute refresh method of grid just after I change manually the datasource and nothing happens, what im doing wrong?

here is my code attached

Any help will be appreciatted.

Thank you in advance
Dennis
Top achievements
Rank 1
 answered on 20 Jul 2012
4 answers
462 views
Hello,

I'm trying to set up a custom toolbar command in an MVC grid.  Is there an example of how to do this?  I see the options in the type-ahead and set up my command like this:

commands.Custom().Text("Clear Filters").Name("clear-filters");

I'd like to be able to run some jquery logic when this button is clicked to clear out all the current filters for the grid.  I've got the function written to clear the filters, I just don't know how to hook that up to the button to kick it off.

Thanks for the help!

Regards,
Brian
Brian Roth
Top achievements
Rank 1
 answered on 20 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?