Telerik Forums
Kendo UI for jQuery Forum
0 answers
77 views
I have a simple grid with hierarchy data. The thing is, not all records have a data subset, so I don't want to show the hierarchy image for those rows (since there isn't anything to expand). Can anyone think of a way to handle this? Any thoughts on having a custom image for the "expand" link based on a value in the row?

Thanks!
Mr. Gravity
Top achievements
Rank 1
 asked on 20 Sep 2012
0 answers
103 views
This jsFiddle example is a slimmed down copy/paste from the MVVM RemoteBinding demo :

http://jsfiddle.net/rally25rs/WuQwn/

When I run this code, I receive the error "k.push is not a function", and the binding fails.  If I remove the DataSource, and instead make viewModel.productsSource = [ ... ] (so it is just an array, not a data source) then the binding works. It only seems to fail when I use a dataSource, but that is what the demo does.

Can someone point out what I am doing wrong?
Thanks for any help.
Jeff
Top achievements
Rank 1
 asked on 20 Sep 2012
8 answers
319 views
Hi! 
In the another forum thread you post me a fiddle with a switch example, this one:
http://jsfiddle.net/7WVqL/138/ 

It looks great and native on my iPad (with rounded corners), exactly as iPad native switch.

But in my project and actually also in your examples here http://demos.kendoui.com/mobile/switch/index.html  on iPad the switch looks not native (square corners), actually like in Chrome on Windows PC.

I can not figure out, how to make iPad native like in fiddle I posted here.

PS: please to see difference, open links I posted here on ipad or simulator.

Kamen Bundev
Telerik team
 answered on 20 Sep 2012
0 answers
132 views
I can't seem to get any data from the server in the request.parts after specifying method="Post"  and
contenttype="multipart/form-data"

<html>
    <head>
        <title></title>
        <script src="js/lib/jquery/jquery-1.8.1.min.js"></script>
        <script src="js/lib/kendoui/kendo.web.min.js"></script>
        <link href="css/KendoUI/kendo.common.css" rel="stylesheet" />
        <link href="css/KendoUI/kendo.blueopal.css" rel="stylesheet" />
    </head>
    <body>
        <div id="example" class="k-content">
            <div id="grid"></div>
 
            <script>
                $(document).ready(function() {
                    var crudServiceBaseUrl = "http://127.0.0.1:8081/cors", dataSource = new kendo.data.DataSource({
                        transport : {
                            read : {
                                url : crudServiceBaseUrl + "/People",
                                dataType : "json"
                            },
                            update : {
                                contentType: "multipart/form-data",
                                type: "POST",
                                url : crudServiceBaseUrl + "/People/?$method=update",
                                dataType : "json",
                                 data: {
                                        __KEY: 26,
                                        __STAMP: 23,
                                        ID: 26,
                                        firstName: "fgsdf44",
                                        lastName: "dsdfgdfg"
                                        }
                            },
                            destroy : {
                                url : crudServiceBaseUrl + "/People(28)/?$method=delete",
                                dataType : "json"
                            },
                            create : {
                                url : crudServiceBaseUrl + "/People/Create",
                                dataType : "json"
                            },
                            parameterMap : function(options, operation) {
                                if (operation !== "read" && options.models) {
                                    return {
                                        models : kendo.stringify(options.models)
                                    };
                                }
                            }
                        },
                        schema : {
                            data : "__ENTITIES",
                            model : {
                                id : "ID",
                                fields : {
                                    __KEY : {
                                        editable : false,
                                        nullable : true
                                    },
                                    __STAMP : {
                                        editable : false,
                                        nullable : true
                                    },
                                    ID : {
                                        editable : false,
                                        nullable : true
                                    },
                                    firstName : {
                                        validation : {
                                            required : true
                                        }
                                    },
                                    lastName : {
                                        validation : {
                                            required : true
                                        }
                                    }
                                }
                            }
                        }
                    });
 
                    $("#grid").kendoGrid({
                        dataSource : dataSource,
                        pageable : true,
                        height : 400,
                        toolbar : ["create"],
                        columns : ["__KEY", "__STAMP", "ID", "firstName", "lastName", {
                            command : ["edit", "destroy"],
                            title : " ",
                            width : "210px"
                        }],
                        editable : "inline"
                    });
                });
            </script>
        </div>
 
    </body>
</html>

Daniel
Top achievements
Rank 2
 asked on 20 Sep 2012
0 answers
69 views
columns.Bound(p => p.StartDate).Format("{0: yyyy-MM-dd}").Title("Datum");
columns.Bound(p => p.StartDate).Format("{0:hh:mm}").Title("Tid");

Is there some way that i can name 2 colums that are the same? Like this

columns.Bound(p => p.StartDate).Format("{0: yyyy-MM-dd}").Title("Datum").ID("Date");
columns.Bound(p => p.StartDate).Format("{0:hh:mm}").Title("Tid").ID("Time");

and then use them in a template file like:

#= Time #
#= Date #
Stefan
Top achievements
Rank 2
 asked on 20 Sep 2012
0 answers
147 views
Here is my dropdown:

@(Html.Kendo().DropDownList()
        .Name(ViewData.TemplateInfo.GetFullHtmlFieldName(string.Empty))
        .DataValueField("TaxImpsnId")
        .DataTextField("TaxImpsnName")
        .DataSource(source =>
        {
            source.Read(read =>
            {
                read.Action("_AjaxMethod", "MyController", new { lookupId= 1 });
            }).ServerFiltering(true);
        })
)

My dropdown is actually a column in a Kendo grid.  Instead of hard coding the lookupId =1 that is passed into the Ajax method in the controller, I want to take it from another field on the grid of the currently selected row.

So when the user changes the row of the grid, the drop down should reload passing in the lookupId of the currently selected grid row to the controller.

Thanks for the help.

carlg
Top achievements
Rank 1
 asked on 20 Sep 2012
2 answers
235 views
I've attached a test project and the grid/dataSource is hitting my MVC controller but not data is returned or showing in the grid.  Can someone please help me understand the problem?  See attached.
Amol G
Top achievements
Rank 2
 answered on 20 Sep 2012
5 answers
79 views
Hi 
I have a project that could use your Kendo UI.
Your examples, on Crome everything work as it should.
On IE - nothing work at all. If I purchase this UI - the IE issues are expected or what?

I want my page to work on mobile and web as well.

Is something wrong with My IE or Kendo not fully support IE?

Best,
Kamen Bundev
Telerik team
 answered on 20 Sep 2012
4 answers
473 views
Hello, 

I'm working with an autocomplete control with a datasource colection of objects with a "name" and "code" propertie. I'm displaying the name in the autocomplete.

I'm wondering how to get the Index of the item that i'm showing in the input in the change event to get the dataitem of that element without accessing to the datasource. Must be the change event, beacuse the select event is not what i need... because is fiered only when you select the element in the list and not when you type in the input.

Thanks a lot.
Guillermo Polit
Georgi Krustev
Telerik team
 answered on 20 Sep 2012
1 answer
91 views

Hi,
trying to port an Telerik MVC Grid.
But there is no option to change the button type.

.Columns(cols =>
{
    ....
    cols.Command(commands =>
    {
     commands.Edit().ButtonType(GridButtonType.Image);
     commands.Delete().ButtonType(GridButtonType.Image);                                   
    })
})
.ToolBar(tb =>
{
    tb.Insert().ButtonType(GridButtonType.Image);
})

Please tell me how to do this...
Mario
Top achievements
Rank 1
 answered on 20 Sep 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
Breadcrumb
Collapsible
Localization
MultiViewCalendar
Touch
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
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?