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

I am trying to find out whether its possible to associate a knockout view-model to chart data. The sample shows how to create chart using local data and remote data. But I couldn't find a way to tie the data of the chart to a view model. Can anyone please help me with this.

Thanks
Guru
Guru
Top achievements
Rank 1
 asked on 21 Mar 2012
0 answers
59 views
Hi,

I've run into a bit of an issue with the Grid on a second refresh of data.

I'm trying to do something a bit different as per the examples, and displaying the Grid through a different dataSource after every search on my site as it matches my coding structure better.

so I have:

Search -> Display grid + assign data source -> search again -> empty grid div (using $('#grid').empty()) -> display grid + assign data source.

This all works completely fine, other than it losing the actual grouping feature, the groupable panel shows but the grouping function no longer works.

Are there any workarounds for this?
Chris
Top achievements
Rank 1
 asked on 21 Mar 2012
1 answer
242 views
Hi telerik team,

     Is it possible to display threshold value line in the bar charts. As my requirements is to show the threshold value as a vertical line on the bar chart, so that the user can easily able to find which are out of limits..?

 
Thanks,
Rajesh
Iliana Dyankova
Telerik team
 answered on 21 Mar 2012
1 answer
63 views
Hi telerik team,

How to show visualized lines  between the data points and the labels for bar graphs.


Thanks,
Rajesh
Iliana Dyankova
Telerik team
 answered on 21 Mar 2012
1 answer
322 views
I have a very odd problem, my editable grid has a date field (ExpiryDate), so there is one in every line (row).
If i edit a row and i change the contents of the datefield, i 'lose' the variable ExpiryDate from my POST vars completely. (if i dont edit the date field, but i edit other fields (text) my code works perfectly.)
According to Firebug, the parameter called ExpiryDate is not even in the Post values (unless of course i didnt trigger the date picker flyout.
Obviously there is something i'm doing wrong. Please could someone take a look.
This happens if i edit inline, popup or incell.
Maybe i should be initializing the datepicker evertime i use it? but where?
Please help?

(i have a php/mysql datasoure and CRUD setup)

      
            $("#grid").kendoGrid({
                dataSource: {
                    transport: {
                        read: "data/users.php",
                        update: {
                            url: "data/users.php",
                            type: "POST"
                        },
                        destroy: {
                            url: "data/users.php",
                            type: "DELETE"
                        },
                        create: {
                            url: "data/users.php",
                            type: "PUT"
                        }
                    },
                    error: function(e) {
                        alert(e.responseText);
                    },
                    schema: {
                        data: "data",
                        model: {
                            id: "ID",
                            fields: {
                                EmailAddress: { validation: { required: true}, type: "string" },
                                FirstName: { validation: { required: true}, type: "string"  },
                                SecondName: { validation: { required: true}, type: "string" },
                                AdvertType: { validation: { required: true}, type: "string"},
                                SubscriptionType: {  validation: { required: true}, type: "string" },
                                ActivationCode: { validation: { required: true}, type: "string" },
                                ExpiryDate: { editable: true, type: "date", parse: function(value) { return kendo.toString(value) } }
                            }
                        }
                    }
                },
                    
                pageable: true,
                height: 400,
                toolbar: ["create"],
                columns: [
                    { field: "EmailAddress", width: "250px" },
                    { field: "FirstName", width: "150px" },
                    { field: "SecondName", width: "150px" },
                    { field: "AdvertType", width: "100px" }, //, editor: advertTypeEditor },                    
                    { field: "SubscriptionType",  width: "100px" },
                    { field: "ActivationCode", width: "150px" },
                    { field: "ExpiryDate", width: "150px", format: "{0:dd-MM-yyyy}" },
                    { command: ["edit", "destroy"], title: " ", width: "200px" }
                ],
                //editable: "popup",
                editable: "incell",
                detailTemplate: kendo.template($("#template").html()),
                detailInit: detailInit,
                        toolbar: ["create", "save", "cancel"],

            });
Vauneen
Top achievements
Rank 1
 answered on 21 Mar 2012
1 answer
204 views
Hi,
I have a grid that uses in-line editing.
i need to add a dropdownlist (with datasource) to one of the columns when it's being edited.

Has anyone done this yet?
Please help me out.
I've tried a few ways.

I thought this would work:

in my column definitions:

                columns: [
                   ...
                    { field: "AdvertType", width: "100px", editor: advertTypeEditor },       

later:
                function advertTypeEditor(container, options) {
                                $('<input name="' + options.field + '" id="Adverttypes" >').appendTo(container);
                            }

and then this:
   
           $(".Adverttypes").kendoDropDownList({
                dataTextField: "Adverttype",
                dataValueField: "ID",
                dataSource: {
                    transport: {
                        read: "data/adverttypesfordropdowns.php"
                    },
                    schema: {
                        data: "data"
                    }
                }

            });

But it's not working.

Please advise me....

Thanks,
Vauneen
Vauneen
Top achievements
Rank 1
 answered on 21 Mar 2012
0 answers
137 views
Hi,

I have a filter in the grid. And that filter is on column of type : date. When i click on the calendar icon the datepicker is displayed. Now when i move to other month on clicking the next or previous arrow, it shows two months. I mean it shows the other month below the current month. but once it has moved to next month, it becomes alright. What is the issue here? Attaching the screen shot. Please help.
Khushali
Top achievements
Rank 1
 asked on 21 Mar 2012
0 answers
120 views
I have a grid inside a jquery UI tab, and I'd like to have a horizontal scrollbar in the Grid.
I don't understand how it should work, it seems nothing change when I set the grid columns width.

see the problem in the picture attached

Thanks in advance
jc mag
Top achievements
Rank 1
 asked on 21 Mar 2012
0 answers
130 views
Hi,
what are the validation properties on a model item in datasource. how can one enforce unique constraint on a model item in the datasource.
 Thanks,
Joshua O
Joshua Oguche
Top achievements
Rank 1
 asked on 21 Mar 2012
8 answers
182 views
Hello,

Is there any up to date tutorial that would explain, step by step, how to create an oData Service with Open Access, then how to consume that oData Service with the KendoUI grid?

Best Regards,

Simon
Iliana Dyankova
Telerik team
 answered on 21 Mar 2012
Narrow your results
Selected tags
Tags
+? 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?