Telerik Forums
Kendo UI for jQuery Forum
0 answers
94 views
I'm trying to implement a grid customization that combines inline editing with popup editing. I've created a sample jsFiddle to demonstrate what I'm trying to accomplish.

I *almost* have it working, but the issue that I'm seeing is that the address values in the popup editor always get saved when you change them, even when I cancel out of the edit.  I want to be able to have those values roll back to the original, similar to how the standard editing works.  I'd be open to flattening out the model if it makes things easier, but I would still need to support the dual editing functionality.

(Also, in Firefox for some reason it only updates the first address field and not the second.  But this is less of an issue, at least for right now).

I know I'm doing something a little incorrectly, I just need help seeing what it is.  Much appreciated.

AT
Andre
Top achievements
Rank 1
 asked on 18 Jul 2012
8 answers
335 views
We have a 20 Million record table in PostGIS (spatial version of PostGRESQL). There are 18 columns (mostly text, some integer) and one spatial geometry (a bounding box).

The records describe the metadata for geospatial images (GeoTiffs, etc.)

We are looking for a means for a user to browse and search this database.

While I am very familiar with your silverlight offering Which does a have a map (and that is the overview we might like).

I am not familar with  your back-end database, nor your new KENDO HTML5 product.

Our target client platform is Android, IOS, Web Browsers, and plugins to existing tools (GoogleEarth GoogleMaps, WorldWind). So Silverlight is not a good choice.

Can you help me determine which of your products I should be looking at for the back end?
(ORM? I already have a PostGIS .NET API, but if yours works faster that would be fine).

As well as what I should have on the client? (Kendo? But it does not have a map. Do I use OpenLayers?) We also want grid and chart displays of the results.

As well as the protocol that would be connecting the two: (JSON? But what if I have 4,000 records returned? Can I GZIP the response). I assume I want to virtualize the replies.

Thank you
Dr.YSG
Top achievements
Rank 2
 answered on 18 Jul 2012
0 answers
102 views
Maybe somebody here can help me out. 

Currently I am using the kendoui editor to build a fairly simple cms. And sofar it's great! 

However is het possible to modify the  image dialog so that I can add upload form so the user an upload a file instead of having to type a link?

 A similair task I want to accomplish with the link dialog.

Is this possible? How do acomplish it if it's posble?
Martijn
Top achievements
Rank 1
 asked on 18 Jul 2012
0 answers
87 views
I'm implementing twitter bootstrap on my website, and kendo seems to work with it entirely fine except for the 'filter' part of my grid columns.  The text boxes inside the filter are way to small, their height is clipped and the text in it looks very bad.  Any suggestions on how i can fix this, or is anyone else seeing this issue?
Phil
Top achievements
Rank 1
 asked on 18 Jul 2012
2 answers
224 views
I am trying to set up a datasource with the code at the end of the post but the data isn't sent to the server (xmlstring is a string of the xml to be included as the body)  I always get content length zero.
Is it possible to send an xml string as the body of a POST?  I do this from desktop applications and Flash (actionscript) in a similar way but can't seem to get any results with Kendo.  Any help would be appreciated.  

As am FYI this works but I'm guessing I can't do this with the Kendo datasource (  $.ajax({
				    type: 'POST',
				    url: "http://rest.site.comm/rest/isc/packagecontents",
				    data: xmlstring,
				    dataType: "xml")

Thanks,
Jeff

  var dataSource = new kendo.data.DataSource({
                        transport: {
                        read: {
                        type: "POST",
                            // specify the XML file to read. The same as read: { url: "books.xml" }
                          url: "http:/rest.site.com/rest/isc/packagecontents/" ,   
                            dataType: "xml", 
                           data: xmlstring
                        } 
Jonathan
Top achievements
Rank 1
 answered on 18 Jul 2012
0 answers
145 views
I was having trouble finding a dataSource example for CRUD against a REST based xml service.  I found pieces of the following solution in various posts. Some of this is obvious, but some is not, especially to someone new to kendo and/or jquery.  In case anyone else is looking for something similar, I thought I would post the following example.  This configures a datasource to create/read from an xml REST service using GET for read and PUT for create with an xml document as the payload.  If anyone else has a better solution than the parameterMap to send an xml doc in the payload, please let me know.  Hope this saves someone a headache :)

ds = new kendo.data.dataSource({
transport:{
read: {
url: "/apis/items"
},
create: {
url: "/apis/items/create",
// in another thread, a kendo admin posted that these transport
// apis map to $.ajax, so we can directly add most jquery.ajax options here
type: "PUT",
dataType: "xml",
contentType: "text/xml",
// Must set processData to false if you want to send
// raw data in the request body, see the jquery documentation for more info
processData: false,
},
parameterMap: function (data, type){
// You can pre-process data by mapping a function
// with these parameters to this property.  The first param is in
// the kendo online documentation, the second is not.

if(type === "create"){
return '<item><name>' + data.name + '</name></item>';
}
}
},
schema: {
type: "xml",
data: "/items/item",
model: {
id: "id",
fields: {
id: "@id",
name: "name/text()"
}
}
},
pageSize:10
});

// Now you can add by passing a model w/o the id property to dataSource.add()
ds.add({name: "test"});

// Calling ds.sync() will issue the server request we defined in transport.create to the server.
// the payload will contain <item><name>test</name></item>
ds.sync();

// Hope this helps.  
Jonathan
Top achievements
Rank 1
 asked on 18 Jul 2012
1 answer
105 views
I found the awesome chart like 'Performance Benchmark' : url(http://demos.kendoui.com/dataviz/dashboards/high-performance.html).
but i can't find how to bind a data and to make an active chart. i want to know both logic (data binding, active real time chart).
Hristo Germanov
Telerik team
 answered on 18 Jul 2012
3 answers
127 views
I have a very peculiar problem. One of my client requests goes to the HomeController and successfully gets the data. The second never gets reached

$("#ResidualRec") 

What could be wrong? 


$("#Accounts").kendoComboBox({
               dataTextField: "AcctName",
               dataValueField: "AcctCd",
               dataSource: {
                   transport: {
                       read: "/Home/GetAccounts"
                   }
               },
               template: $("#scriptTemplate").html(),
               filter: "startswith"
           });
 
           var combobox = $("#Accounts").data("kendoComboBox");
           // set width of the drop-down list
           combobox.list.width(400);
 
           var sharableDataSource = new kendo.data.DataSource({
               transport: {
                   read: {
                       url: "@Url.Action("GetSecurities","Home")",
                       dataType: "json"   
                   },
                   type:"POST"
               }
           });
 
           $("#ResidualRec").kendoComboBox({
               datasource:sharableDataSource,
               filter: "startswith"
           });
This is the webpage value.
<select id="ResidualSec"  data-value-field="Cusip" data-text-field="SecName" data-role="combobox" placeholder="Enter Residual" data-bind="value: Residual"></select>                   
            <select id="UnderlyingSec" data-role="combobox" data-value-field="SecName" data-text-field="Cusip" placeholder="Enter Underlying" data-bind="value: Underlying"></select>
            <select id="FloaterSec" data-role="combobox" data-text-field="SecName" data-value-field="CUSIP" placeholder="Enter Floater" data-bind="value: Floater"></select>

The one that works is as follows: 
<div id="allocation">
    <div class="selector">         
   <select id="Accounts" style="width: 225px" data-role="combobox" data-value-field="AcctCd" data-text-field="AcctName"
                data-bind="value: AcctCd" placeholder="Select Funds..."></select>

Iliana Dyankova
Telerik team
 answered on 18 Jul 2012
1 answer
77 views
Hello,

i have a little problem here.

I have a column with this time format: 27.12.2012 14:49

When somebody wants to group it it should only grouped by date but without time.

How can I implement this?

Thanks.

Greetings
Stefan
Atanas Korchev
Telerik team
 answered on 18 Jul 2012
6 answers
416 views
I've created a multi select template that allows for selection of values in a combobox. How can you prevent the combobox from closing when you select? Is there a close override event?
Georgi Krustev
Telerik team
 answered on 18 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?