Telerik Forums
Kendo UI for jQuery Forum
1 answer
264 views
Hello Telerix team,

I am in the process of evaluating Kendo UI for my apps and trying to understand the do's and dont's for our business case. One of the cases which is quite possible in my application is that the JSON can be of the following format.

I am not able to derive a equivalent data model to make the Kendo Grid consume the same. 

Here is the JSON response that is returned as part of my transport: url.

My requirement is to consume the data in the ItemList using the KendoGrid. How to derive a schema model for the same.

{
  "d" : [{
    "__metadata": {
      "uri": "http://localhost/TestService/TestService.svc/Order('4345')", 
      "type": "DataModels.OrderDetail"
    }, 
    "ItemList": [{
      "__metadata": {
        "uri": "http://localhost/TestService/TestService.svc/Item('1')", 
        "type": "DataModels.Item"
      }, 
      "ItemId": "1", 
      "Name": "TestItem", 
      "Rate": "19.00", 
      "Quantity": "3"
    }]
  }]
}

Thanks in advance!
Phil Boudreau
Top achievements
Rank 2
 answered on 20 Jul 2012
0 answers
151 views
Is there a method that allows for an MVC grid to export to word?
Sean
Top achievements
Rank 1
 asked on 19 Jul 2012
0 answers
53 views
hi
I want to:
grid some fields AND edit all fields
how to implement it?
thank u
z
Top achievements
Rank 1
 asked on 19 Jul 2012
2 answers
218 views
Currently treeview calls transport read method when we first time click on expand. After that the data is cached.
I want to call read method forcefully so that dynamically added nodes are refreshed in tree.
Is there a way to give a serverside read call on every expand button click?
Sushant
Top achievements
Rank 1
 answered on 19 Jul 2012
0 answers
67 views
I let chart auto-scale my Y axes and it seems to randomly choose to set a zero origin part of the time and a non-zero origin at other times. Can someone explain to me how it makes this choise?

Thanks/Anker
Anker Berg-Sonne
Top achievements
Rank 1
 asked on 19 Jul 2012
3 answers
860 views
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? 
I have attached the image which i needed on grid load.
pls suggest....  

sam.
Iliana Dyankova
Telerik team
 answered on 19 Jul 2012
1 answer
67 views
Hi,

I noticed that the graphs in demos do not resize when I resize the browser window. Is it possible to make graphs that resize on browser window resize. if yes, how ?

Thanks,
Akshey
Dimo
Telerik team
 answered on 19 Jul 2012
0 answers
106 views
I want to Time Picker in editable grid
Karan
Top achievements
Rank 1
 asked on 19 Jul 2012
1 answer
908 views
I am using a panel bar in a splitter and attempting to make the panel content take up the whole pane. I am able to change the panel content size successfully, however when a height change is applied to the first element, it expands it automatically. If I exclude the first panel from the height change, then there is no expansion of the panel.

The below panelContent class is the style applied to the panel content. The only thing it contains is overflow: auto. Now the below line is how I'm trying to change the height of the panels when the page loads to get a calculated height of the side pane. 
$(".panelContent").height(200);

Is there a better way to get the panel content to resize so it takes up the full height of the pane? Alternatively, is there a way to prevent the first panel from expanding when you change the height with jquery? Are there easier ways to access the height of the panel content?

Thanks for any help,
Alex
Dimo
Telerik team
 answered on 19 Jul 2012
1 answer
142 views
Hi I am using this piece of code to pull a data source from a webservice but it keeps coming up empty. Funny thing is that I actually just copy and pasted the exact code from elsewhere in my site where it was working perfectly and just changed the variables. Anyone know why this would be happening.

Code:
searchInit is being called from document.ready.
Here is the url for the webservice: http://itracdev.com/scripts/db/partners.php?task=select&subtask=getContacts&EEID=1&ClientID=1
The console.log(searchPartnerSource) and empty data object.

function searchInit(){
    console.log('ClientID = '+clientID);
    var searchPartnerSource = new kendo.data.DataSource({
        transport: {
            read:"/scripts/db/partners.php?task=select&subtask=getContacts&EEID="+eeMemberID+"&ClientID="+clientID
        },
        schema: {
            data: "data"
        },
        pageSize: 5
     });
     
    console.log(searchPartnerSource);
}
Phil
Top achievements
Rank 1
 answered on 19 Jul 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?