Telerik Forums
Kendo UI for jQuery Forum
3 answers
107 views
Hi, I have a grid with edition inline, with a problem.
When I edit a row, later save changes, it's working fine, but when I try edit the same row again, it gets an error, without none error message.
What can be happening?

Igor
Top achievements
Rank 2
 answered on 16 May 2012
0 answers
82 views
if i want to use my remote data for binding the grid, what is the schema format to be followed for getting the data.

1. Why remote-data sample is not  working with our remote data  binding?
2. type: "odata"  is it compulsary?
3. Odata services and kendo services only will work ?

Srinivasulu
Top achievements
Rank 1
 asked on 16 May 2012
0 answers
62 views
Hi there,

please clarify with me,

I need to show Chart value with category name in a same line.

Is there possible to do this.

Thanks,
Rajesh.C
Rajesh
Top achievements
Rank 1
 asked on 16 May 2012
0 answers
38 views
Hello,

when we open the window page scrolling position was in middle but after maximize and minimize the window page is scroll up, is there any solution in window ui like after minimize the window page set scrolling position as before maximize the window.

thanks
Wajahat
wajimam
Top achievements
Rank 1
 asked on 16 May 2012
0 answers
75 views
Hi,

If in grid I have editable and not editable fields, how to display which fields are editable and which are not? 
Sergey
Top achievements
Rank 1
 asked on 16 May 2012
0 answers
48 views
Hi,
We are using filter in data grid.I want to know where exactly the filter data will be stored.because when i tried dataSource._data it is giving me the whole data not the filtered one.

Thanks in advance
Regards
Deep
Deep
Top achievements
Rank 1
 asked on 16 May 2012
8 answers
683 views
Hi there,

I was using the Scroll View which was working perfectly on the released version kendo ui, but after changing my project to use the latest build ( 2012.1.503) it now seems like the Scroll View is not initialized properly when it is created in javascript. 

So when I call:
$("#MenuScrollView").kendoMobileScrollView();

It seems to be initialized partially however it cannot be scrolled horizontally. The page indicators at the bottom are not visible either.

When I resize the page in a normal browser the scroll view starts working perfectly though (Unfortunately on mobile devices I can't do this obviously).

I tried calling $("#MenuScrollView") .resize() and refreshing the scroll view but that doesn't seem to help.

Out of interest I also can't seem to use the content() method from documentation as I get a script error saying it doesn't exist.

Thanks in advance!

Petyo
Telerik team
 answered on 16 May 2012
2 answers
125 views
I have, what I think is a simple MVVM example, where I can't get the displayed value to update. I think there's something very simple I must be missing here.

There's a demo at: http://jsfiddle.net/BrianVallelunga/UzLED/

Basically, I have a view model with a date. I have buttons that change the date. Finally, I have a span bound to a function that formats the date. For some reason the formatted value never changes, despite the date itself changing. Any thoughts?
Atanas Korchev
Telerik team
 answered on 16 May 2012
5 answers
363 views
So here is the problem.

I have a grid which need to make an update through POST and not GET. SO I am doing this on Save event. Everything works fine with inline editing. But with PopUp editing I do not get referance to model. So in function " save: function (e)" below e.model is undefined. However it comes up fine in case of inline.

If there is better way to update the drid through POST then I am open to it.

here is the code:

 dataSource = new kendo.data.DataSource({
                transport: {
                    read: {
                        url: URL,
                        dataType: "jsonp"
                    },
                    update: {
                        url: "",
                        dataType: "jsonp"
                    },
                    destroy: {
                        url: "",
                        dataType: "jsonp"
                    },
                    create: {
                        url: "",
                        dataType: "jsonp"
                    },
                    parameterMap: function (options, operation) {
                        if (operation !== "read" && options.models) {
                            return { models: kendo.stringify(options.models) };
                        }
                    }
                },
                batch: true,
                pageSize: 10,
                schema: {
                    model: {
                        id: "PROJECT_ID",
                        fields: {
                            "PROJECT_ID": { editable: false, nullable: true },
                            "PROJECT_NM": { validation: { required: true} },
                            "PROJECT_DESC": { validation: { required: true} },
                            "ACTIVE_IND": { type: "boolean" }
                        }
                    }
                }

            });

 

//GRID
$("#grid").kendoGrid({
                dataSource: dataSource,
                pageable: true,
                height: 400,
                toolbar: ["create"],
                columns: [
                            { field: "PROJECT_ID", title: "ID" },
                            { field: "PROJECT_NM", title: "Name" },
                            { field: "PROJECT_DESC", title: "Description" },
                            { field: "ACTIVE_IND", title: "Active" },
                            { command: ["edit"], title: " "}],
                editable: "popup",
                save: function (e) {

                    var g = $("#grid").data("kendoGrid");
                    var ds = g.dataSource;

                    var refresh = false;
                    //alert(kendo.stringify(e.model));
                    var url = "";
                    e.model.ACTIVE_IND = e.model.ACTIVE_IND ? 1 : 0
                         $.ajax({
                        url: url,
                        data: kendo.stringify(e.model),
                        type: 'POST',
                        processData: true,
                        async: false,
                        contentType: "application/json",
                        success: function (data, textStatus, jqXHR) {
                                    alert("Updated")  

                        },
                        error: function (xhr, status, error) {
                            alert("Failed to Update");
                        }
                    });

                }
            });

 

Alexander Valchev
Telerik team
 answered on 16 May 2012
1 answer
167 views
It seems that in the current implementation of MVVM:

  • A dependent property (calculated field) can easily use the value of another property of the view Model through the this.get(propertyName) syntax.
  • However, a new calculated field can't seem to utilize another property of the view Model IF THAT PROPERTY is ITSELF a Calculated Field.
Can someone confirm this for me or can someone tell me the way around.

See this JSFiddle for a demonstration

In the addNew() method.  I'm just trying to display the value of this.get("displayDropDownValue") which is, a calculated field.  It seems the only way to get this to work properly is to REPLICATE all of the code inside the displayDropDownValue field and put it in the new addNew() method as well.

Any suggestions?  Help?

Atanas Korchev
Telerik team
 answered on 16 May 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?