Telerik Forums
Kendo UI for jQuery Forum
0 answers
66 views
Can I use Kendo UI Web Grid for mobile application
sushil
Top achievements
Rank 1
 asked on 11 Jun 2012
1 answer
84 views
I have a XML data source that I would like to issue an error event when the response header has a certain key and value.

The headers are:

Key               Value
Response          HTTP/1.1 200 OK
Server            Apache-Coyote/1.1
X-Powered-By      Servlet 2.4; JBoss-4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181417)/JBossWeb-2.0
X-UA-Compatible   IE=EmulateIE7
X-ABC-XYZ-ERROR   -34
Cache-Control     no-cache, no-store
Content-Type      text/html;charset=UTF-8
Transfer-Encoding chunked
Date              Sun, 10 Jun 2012 22:34:54 GMT

When X-ABC-XYZ-ERROR is < 0 I want error evented.
Iliana Dyankova
Telerik team
 answered on 11 Jun 2012
2 answers
499 views
Hello,
I'd like to print on the screen absolute values by a template.
I've tried things like that :
valueAxis: {
     labels: {
          template: "#Math.abs(value)#"
}}

or equivalent by using javascript and jquery but I couldn't find this out.
Anyone can help ? Thanks !
Frederic
Top achievements
Rank 1
 answered on 11 Jun 2012
1 answer
139 views
I have a server delivering a data query in XML format. When the query fails or is ill-formed the server returns a 200 OK response that is a error message in the guise of an HTML page.  

In IE the parse of the response fails, and in Chrome it does not.

The data.xml.js parse: method uses jQuery (I am using 1.7.1) $.parseXML which in turn uses
  • window.DOMParser, or 
  • ActiveXObject( "Microsoft.XMLDOM" )
The HTML is parsed fine by window.DOMParser because the HTML is valid and valid HTML parses as XML.
The Microsoft.XMLDOM parser does not like the HTML and its .LoadXML() returns a null.

So the question is should data.xml.js handle the HTML ? I would suggest no, or at least make it controllable through an option since some future task may require using data found in some xpath of an HTML response.

To fail the HTML response I made this adjustment in kendo.data.xml.js parse: 
    documentElement = xml.documentElement || $.parseXML(xml).documentElement;

changed to 
  documentElement
    =   xml.documentElement
    || ( xml.substr(0,5)==
'<?xml' 
       ? $.parseXML(xml).documentElement
       : jQuery.error(
"Invalid XML: " + xml )
       )
    ;

A schema: property could be used to control the strictness of parsing.

schema: { type: 'xml', strict: true, ... }  // strict (default) requires <?xml lead-in, false allows for any lead-in
schema: { type: 'xml', leadin: '<?DOCTYPE HTML', ... }  // string (or array of string) for specifying allowed lead-ins

Happy coding,
Richard
Atanas Korchev
Telerik team
 answered on 11 Jun 2012
1 answer
88 views

I think I have found a typo in your code, which leads to the problems with animation.

extend(kendo.fx, {

...

animate: function(elements, properties, options) {

element.animate(multiple, extend({ queue: false, show: false, hide: false, duration: options.duration, complete: options.complete })); 

...

The extend(...) call works as if it's called with window.extend(...), which extend window object with some properties.

I'm not sure that it's what you have expected to do.

Please confirm.

Kamen Bundev
Telerik team
 answered on 11 Jun 2012
0 answers
61 views
Hi,
Is it possible to show "series" values after the bar graphs, or on top of the bar graphs? So not only on the valueAxis.

Thanks 

callaway golf 


Rose
Top achievements
Rank 1
 asked on 11 Jun 2012
0 answers
97 views
Hello,

I did remove all the content this thread.
I did read the posting HTML Content instead of images Started by Josh Lipford

But at first I was not aware that a second problem was discussed there of having 1 more page than defined.

So it works now for my solution.

Greetings Johan Borchers
Johan
Top achievements
Rank 1
 asked on 10 Jun 2012
0 answers
45 views
Dear All,
If I have implement getting data from database and bind that into grid in web application using kendo ui..same procedure and same code can use to mobile application to bind a grid?

thanks, 
Susi
Top achievements
Rank 1
 asked on 10 Jun 2012
0 answers
67 views
Dear All,
If I have implement getting data from database and bind that into grid in web application using kendo ui..same procedure and same code can use to mobile application to bind a grid?

thanks,
Susi
Top achievements
Rank 1
 asked on 10 Jun 2012
1 answer
81 views
Hello,

i'd like using data-binding attribute into a template but the data object that's bound to an html tag is not correctly associated.

for exemple:
Simple binding: http://jsfiddle.net/rKQDM/7/
More complex (expressions & events): http://jsfiddle.net/rKQDM/5/

What's wrong?

Thanks in advance.

Vladimir
Top achievements
Rank 1
 answered on 10 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?