Telerik Forums
Kendo UI for jQuery Forum
1 answer
500 views
Hi there this is my first post in here, let me talk about my problem, I have a Grid with Hierarchy and I added a custom button to the child grid to show something else in a kendo window but I need and the id from the datasource of the child id.

This is my code:

$("#grid").delegate(".details-button", "click", function(e) {
           e.preventDefault();
           console.log($(this).closest("tr")); // this return the correct TR
           var dataItem = grid.data('kendoGrid').select($(this).closest("tr")); // this return null
           console.log(dataItem);
     });
});

This is based on the example of custom command.

Greetings
Alexander Valchev
Telerik team
 answered on 13 Jun 2012
0 answers
192 views
I want to have two list (left , right ) and need to drag and drop li elements between them. The problem is how can I make this list observable. Now even though I have created the drag and drop functionality when I try to get the view model It hasn't changed.
Here is my view model,

     
   var model = kendo.observable({
    User: kendo.observable(data),
    displayGreeting: function () {
        var name = this.get("name");
        alert("Hello, " + name + "!!!");
    },
    save: function () {
        var user = JSON.stringify(this.get("User"));
        DataService.SaveUser(user, function (data) {
            alert(data);
        });
    }
});
kendo.bind($("#mainDiv"), model);


And here is my ul 

 <ul id="resourceGroupUl" class="resourceGroupUl  SelectedLis" data-role="listview" data-template="ul-template" data-bind="source:User.ResourceGroups">
</ul>
Jayantha
Top achievements
Rank 1
 asked on 13 Jun 2012
2 answers
147 views
Hi..

I am using a grid which is loaded from database and also toolbar for creating a new record.
But instead of using the tool bar i want a new record to be opened by default at the time of loading the grid.(i.e addrow() method without clicking any button)
how is it possible? pls suggest....

Sameer.
Sameer
Top achievements
Rank 1
 answered on 13 Jun 2012
0 answers
102 views
Hi,
I have a Grid binding from Json data. Adding new records and editing records using Popup editing works great. I am required to add certain type of validators on the Pop up windows on Update and Create. For example, the user must enter his email and he is required to confirm his email address (both fields must be the same).

Can I do this out of the box using the Custom Editor? An example would be appreciated.

Thanks!
Tonny
Top achievements
Rank 1
 asked on 12 Jun 2012
2 answers
121 views
Is there a way to do something like: http://jsfiddle.net/sK6Wy/15/ 

I want to do this because I define all my functions in modules in RequireJS. If I cannot do this, then I will I have to expose them to the window (which can cause pollution).
Jonathan
Top achievements
Rank 1
 answered on 12 Jun 2012
0 answers
96 views
Hi,

There is a filter display issue in the grid filtering control. It is reproducable in Kendo UI web grid demo page. There are two filters slot shown when one clicked on filter icon. When an user places a filter to the second slot and leaving the first slot to be blank, the first and the second slots will both be loaded as the second filter after the filter is applied and open the filter box again. The attached screenshot shows before and after clicking the applied button.

Please let me know if this will be fixed for the next release, otherwise we will need to modify Kendo UI library which is not what we desired. 

Amos
Top achievements
Rank 1
 asked on 12 Jun 2012
1 answer
139 views
Hello,

I am using a Grid to populate an employee directory.  A user can then search by typing into a text box.  The search criteria is being handled by a service call.  The problem is updating the grid with the new data set.  I have found how to put the current grid into a variable, but I have not been able to reset the data source and refresh the grid

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

Thanks



Nohinn
Top achievements
Rank 1
 answered on 12 Jun 2012
0 answers
103 views
Hello;

Is it possible to get extra attribute from JSON on databound?
I want to get the SQL attribute in JSON in databound and show it to the user if the user wants to save it or not.. Also I will use that sql to download filtered records as an Excel File..
How can I get sql attribute??
Here is my JSON:

{
    "total": 1,
    "sql": " ciTypeID \u003d \u002716\u0027 and description like \u0027%3G%\u0027 and ciTypeId\u003d16",
    "rows": [{
        "it_contact": "BELİRLENEMEDİ",
        "business_priority": "3",
        "code": "IU0103",
        "customer": "BELİRLENEMEDİ",
        "type": "Product, Business Service",
        "service_owner": "-",
        "id": "20111",
        "bcrs": "-",
        "environment": "Production",
        "ciName": "3G_GPRS_UzaktanErisim",
        "description": "3G/GPRS Uzaktan EriÅŸim",
        "name": "3G_GPRS_UzaktanErisim",
        "domain": "BELİRLENEMEDİ",
        "typeId": "16"
    }]
}

Thanks...
Burak
Top achievements
Rank 1
 asked on 12 Jun 2012
5 answers
177 views
Hello,

So I have a json file that looks something like this:
[{
    "Id": "1",
    "People": [{
        "Person": {
            "Name": "Jon"
        },
        "Job": "IT Guy"
    }]
},
{
    "Id": "2",
    "People": [{
        "Person": {
            "Name": "Kate"
        },
        "Job": "Web Developer"
    }]
}]

And data source created form this file
var dataSource = new kendo.data.DataSource({
    transport: {
        read: {
            url: url,
            type: "GET",
            dataType: "jsonp",
            contentType: "application/json; charset=utf-8"
        }
    }
});

 I'm displaying the Id of the arrays on listview A in my application. What I want to do is display a person's name in listview B depending on what Id was selected on listview A.

I've tried several different approaches including trying to create a datasource from the nested "people" array in the json file but have not been successful so far. Can anyone suggest a good method for accomplishing this?

**Edit: I apologize for posting this under the Datasource section instead of the Listview one. If a admin would like to move this post I'd be grateful.
RodEsp
Top achievements
Rank 2
 answered on 12 Jun 2012
3 answers
239 views
Hello Friends,
I have single kendoGrid on my webpage(HTML)  where i have assign remote datasource.It is working fine. Now i want to change that datasource on every onkeydown event of input tag... But the problem is.. when i assign different datasource to same kendoGrid.. it show me old datasource data with new one..... 

Thank You in advance... please help me out
Iliana Dyankova
Telerik team
 answered on 12 Jun 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?