Telerik Forums
Kendo UI for jQuery Forum
1 answer
364 views

I wanted to find out what is the best practice for showing menu in the application if we are using KendoUI. Whether it should be rendered from the server side using <ul> <li> tags or whether we should add dynamically using a web-service.

I prepared a blog post with an example of how I did this but I am not too sure if this would be the recommended way going forward. -  http://piyushbhatt.blogspot.com/2011/12/kendoui-adding-menu-using-web-service.html 

Overall - I think we would need the functions in kendoUI objects' such a way that developer should not have to use selectors (like "li:last" or "li:first") etc and can work with the objects and methods only. 

Again this is not direct question per say - but to know your thoughts on best practices and how you think people will be using various widgets in large applications.
Kamen Bundev
Telerik team
 answered on 22 Dec 2011
8 answers
274 views
Hi
I can't get the NumericTextBox to work in my MVC project.
When I increase or decrease the number, the field loose its focus and show the formattet result.
It seams that the problem is the absolute reference with the css and js files. When I test the code in a local directory with relative references to css and js, everything works. But not from my MVC project.
I have tried the MVC extensions from codeplex.com, and it seams that they also have the same problem.
Any help?
Allan
TazDeveloper
Top achievements
Rank 1
 answered on 22 Dec 2011
1 answer
238 views

Could you please set me straight?  I am initializing and kendo combobox with a simple call to kendoComboBox() which is causing it to load it's list from the select list that is rendered in html output which is great.  I then come along later and trigger a refresh of that list via the following function based on the selection of another combobox...
IIHS.EditPlanningVehicle.RefreshSeries = function (planningYear, makeName) {
    //Load a new list of options for vehicle definitions
    $.getJSON($("#mainForm #LoadNewListFormat").val().replace("makeName", makeName).replace("planningYear", planningYear),
        function (data) {
            $("#SourceVehicleVariantsId").kendoComboBox(data);
        });
};

This works mostly, but ends up creating a second dropdown element when clicking on the dropdown button for the combobox.  Is there a better way I can assign a new list to the dropdown, or do I need to switch to using dataSources?

Thanks.






Petyo
Telerik team
 answered on 22 Dec 2011
4 answers
389 views
I have a modal window containing several anchors. After clicking one of the anchors I need the new content to display in the existing modal window. I have tried several known methods to make this work, but all result in the creation of a new window - as if the target had been set to _top rather than _self. Any guidance is appreciated.
Chris
Top achievements
Rank 1
 answered on 21 Dec 2011
0 answers
181 views
I modified the “Detail Grid” which can be found here:


To use this example with a couple of Java actions instead of the RSS feed. However, I'm having problems filtering the detail data because of the fact that I’m omitting the type: "odata" in my HTML.



So, the original Employees data source looked like this:

dataSource: {
    type: "odata",
    transport: {
    },
    pageSize: 5,
    serverPaging: true,
    serverSorting: true
},




The original Orders data source looked like this:

dataSource: {
    type: "odata",
    transport: {
    },
    serverPaging: true,
    serverSorting: true,
    serverFiltering: true,
    pageSize:6,
    filter: { field: "EmployeeID", operator: "eq", value: e.data.EmployeeID }
},




The modified Employees data source looks like this:

dataSource: {
    transport: {
        read:  {
            url: "/site/GetEmployee.action",
            dataType: "json",
        },
    },
    pageSize: 5,
    serverPaging: true,
    serverSorting: true
},




The modified Orders data source looks like this:

dataSource: {
    transport: {
        read:  {
            url: "/site/GetOrders.action",
            dataType: "json",
        },
    },
    serverPaging: true,
    serverSorting: true,
    serverFiltering: true,
    pageSize:6,
    filter: { field: "EmployeeID", operator: "eq", value: e.data.EmployeeID }
},


You’ll notice that I had to make the change to: dataType: "json", in order for this example to work.

Also, if you look inside “kendo.all.js”, you’ll notice that “filter: { }” will only work with “odata”.

Now, any ideas how I can get my sample to work with filtering?
Leo
Top achievements
Rank 1
 asked on 21 Dec 2011
1 answer
460 views

In the Web demos section, there is a grid which displays its data in a master/detail type format. The demo I’m referring to can be found here:

 

The grid pulls the data from the following services/feed:

 
http://demos.kendoui.com/service/Northwind.svc/Employees?$format=json&$inlinecount=allpages&$callback=callback&$top=5
  
http://demos.kendoui.com/service/Northwind.svc/Employees%281%29/Orders?$format=json&$inlinecount=allpages&$callback=callback&$top=5

Is there a sample of this same grid using JSON or XML which is either returned from an object or is store statically inside the page?

 
Thanks,

 

Leo
Top achievements
Rank 1
 answered on 21 Dec 2011
0 answers
167 views
Hi,

I have a pie chart and grid using a shared remote datasource and I'd like to have the corresponding pie slice explode when the user clicks (or hovers over) an item in the grid.  As it stands I'm using the change event in the grid and altering the underlying datasource's Explode field and refreshing the pie chart, but that clears my grid settings (current selection,sort,etc) and triggers each slice of the pie chart to re-animate.  Any thoughts on how to accomplish without refreshing the entire pie chart?

I'm loving the library so far, great work!  Thanks!

Lars
Top achievements
Rank 1
 asked on 21 Dec 2011
0 answers
60 views
when i wan't to see these demos:
http://demos.kendoui.com/web/overview/index.html
http://demos.kendoui.com/dataviz/overview/index.html
http://demos.kendoui.com/themebuilder/index.html

demos doesn't work.
 I'm using firefox 9.
I tried with Chrome 16.0.912.63 too but
i'm attaching images.
do i have to configure something on the explorer?.

Thank you.
José
Top achievements
Rank 1
 asked on 21 Dec 2011
1 answer
1.3K+ views
is there a way to change a css "corner-radius" to grid... the atributes "k-grid-header" or "k-grid" dont work?
Dimo
Telerik team
 answered on 21 Dec 2011
2 answers
129 views
Below code is working in ff and chrome but throwing error in ie

gridMain = $("#gridMain").kendoGrid({
    dataSource: dsMain,
    height: 500,
    filterable: true,
    scrollable: true,
    pageable: false,
    selectable: 'row',
    sortable: true,
    columns : [
                {
                    field: "dt",
                    title: "Tarih",
                    width: "120px"},
                {
                    field: "defi",
                    title: "Açıklama"},
                /*{
                    field: "amn_tot",
                    title: "Toplam Tutar",
                    width: "120px"},*/
                {
                    field: "id",
                    title: "İşlemler",
                    template: actionTemplate,
                    width:  "130px"}
                ],
 
    change : function(e) {
        selectedRows = [];
        for (var i = 0, l = this.select().length; i < l; i++) {
            var xid = this.select()[i].dataset.id;
            selectedRows.push(xid);
        };
         
        //console.log(selectedRows);
         
        /*
        console.log(this.dataSource.view()[this.select()
                                           .index()]["id"]);
        */                                
    }
});    

Am I missing sth ?
Cagatay
Top achievements
Rank 1
 answered on 21 Dec 2011
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
ScrollView
Switch
TextArea
BulletChart
Licensing
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
FloatingActionButton
CircularGauge
ColorGradient
ColorPalette
DropDownButton
TimeDurationPicker
ToggleButton
ContextMenu
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
DateTimePicker
RadialGauge
ArcGauge
AICodingAssistant
SegmentedControl
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?