Telerik Forums
Kendo UI for jQuery Forum
0 answers
82 views
Kendo web grids have the great format feature for dates that can be used like this:

columns: format: "{0: MM/dd/yyyy"}

Maybe there is an easy way to get this formated into the regional settings that are local to the browser - maybe something involving the dateTime.toLocalString.

My questions:

1. Is there a built in telerik solution to this?
2. Has anybody solved this another way with some basic client-side only solution?

thanks.
Chris
Top achievements
Rank 1
 asked on 08 Nov 2012
0 answers
95 views
Hello,

is there a way to use the "url" property of a menu item to load an html fragment or a page or a partial page inside a specific div through ajax?

Thank you!
Matteo
Top achievements
Rank 1
 asked on 08 Nov 2012
0 answers
88 views
Basically, I have a kendo Grid (created via .kendoGrid({ .. }) and wondering if there is a way to use data-bind attribute within the template.  Or am I limited to using # and $?

Ex:
$('#grid').kendoGrid({
dataSource:myDataSource, // array of observables
rowTemplate: '<tr><td>Test</td><td><span data-bind="visible: isFooVisible, html: foo"></span></td></tr>'
...etc, etc
}

I know that I can equally create the grid via MVVM bind, but there seem to be a lot of unknown 'data-' attributes I'd have to add to the view to configure it properly.  
Adam
Top achievements
Rank 1
 asked on 08 Nov 2012
1 answer
48 views
When a grid is a content of window in Kendo, Read(read=>read.Data("data").Action("method","controller")
makes two requests. How can I fix this?
Eduardo
Top achievements
Rank 1
 answered on 08 Nov 2012
1 answer
212 views
I added Kendo grid with toolbar inside kendo panelbar.I am getting white background color inside dropdown items after changed the background color to black.I changed panel bar backgroundcolor and grid background colors.
Even though I am getting white background color.

Could you please give suggestion on this.
Bernard
Top achievements
Rank 1
 answered on 08 Nov 2012
2 answers
109 views
Trying to figure out a good strategy for building similar GUI to this.
https://www.mint.com/how-it-works/anywhere/ipad/

The main target in this case is actually Android Tablets but both would work.

My main headache is how to layout items within one view so they stack as nicely as in this example. I would like to mix Charts with lists etc.

I suspect it would be easier with Web but then I can't really make native app out of it, can I?

All ideas are welcome.
Marcus
Top achievements
Rank 1
 answered on 08 Nov 2012
2 answers
529 views
Hello,

I am currently migrating from Telerik MVC, and I haven't found the answer for my problem in the migration documents. 

I have a treeview which originally used the OnDataBinding event, which I have now mapped to the RequestStart event of the datasource. Now, in my javascript handler, i originally had something simliar:

onDataBinding: function(e) {
e.preventDefault();
var div = $(e.target).closest(MyDivSelector); ... } Since originally it was a jquery event object, i was able to check the e.target for the html element of the sender. However, with Kendo events, I don't find anything similar (inside e.sender). What can I use to get the html element of the sender?
Dino
Top achievements
Rank 1
 answered on 08 Nov 2012
0 answers
93 views
Hello,
is there a way to programmatically select a menu item on menu load?
I mean something like that: after the kendoMenu has been initialized I would like to invoke the "select" event on an item.
Is it possible?

I am using a custom function:

navigationMenu_selectItem("myPage");

function navigationMenu_selectItem(id) {
$("#navigationMenu").find("#" + id).addClass("k-state-selected");
$("#contentPane").load("pages/" + id);
}

Is there a better/simpler way?
Thank you!
Matteo
Top achievements
Rank 1
 asked on 08 Nov 2012
1 answer
317 views
$("#selectCategory").kendoDropDownList({
dataTextField: 'Name',
dataValueField: 'Id',
dataSource: data
});
var selectCategory = $("#selectCategory").data("kendoDropDownList");
s
electCategory.dataSource.read();
selectCategory.refresh();
Jayesh Goyani
Top achievements
Rank 2
 answered on 08 Nov 2012
1 answer
107 views
Hello.
Ive got two comboboxes:
-first one:
@(Html.Kendo().ComboBox()
    .Name("Dim1")
    .DataTextField("Barcode")
    .DataValueField("Barcode")
    .Filter(FilterType.StartsWith)
    .DataSource(action => action.Read(read => read.Action("GetStockLocationsForComboBoxAjax","StockLocation")).ServerFiltering(true))
    .MinLength(3)
    )
-second one:
<script type="text/javascript">
    function onAdditionalData() {
        return { Barcode: $("#Dim1").val() };
    }
</script>
 
@(Html.Kendo().ComboBox()
    .Name("Dim2")
    .DataTextField("Barcode")
    .DataValueField("Barcode")
    .Filter(FilterType.StartsWith)
    .DataSource(action => action.Read(read => read.Action("GetStockLocationsForComboBoxAjax","StockLocation").Data("onAdditionalData")).ServerFiltering(true))
    .MinLength(3)
    .CascadeFrom("Dim1")
    )
Here is my read action signature:
[HttpGet]
public JsonResult GetStockLocationsForComboBoxAjax([DataSourceRequest] DataSourceRequest request, string text, string Barcode)

When im putting some data in Dim1 ComboBox its sending it to controller with no problem, the child combobox (Dim2) becoming enable and everythings ok. But when Im starting to putting data in second combobox (Dim2) its sending only the parent data (Barcode from Dim1) and no Dim2 data:/ 
When im putting data in Dim2 I want to have Dim1 data under "Barcode" parameter and Dim2 data under "text" parameter.
What am I doing wrong?
Please help me!
I hope ive described it  enough clearly.

Thanks!
Radosław
Top achievements
Rank 1
 answered on 08 Nov 2012
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?