Telerik Forums
Kendo UI for jQuery Forum
0 answers
125 views
How to show numeric column data in hundred-comma(eg:- 5,31,745) separator in kendoGrid?
I am using this in columns defination of kendoGrid:-
 {  
field: "Total", 
title: "Total Amount", 
template: '#= kendo.tostring(Total,"##,#") #'  
}

But it throw "Microsoft JScript runtime error: Invalid template:"
Navin
Top achievements
Rank 1
 asked on 09 Aug 2012
0 answers
107 views
How to show numeric column data in hundred-comma(eg:- 5,31,745) separator in kendoGrid?
Navin
Top achievements
Rank 1
 asked on 09 Aug 2012
0 answers
93 views
Hi everyone,

I am attempting to use the Editor control as an EditorTemplate for HTML as a test for a possible application where one important requirement is the possibillity to copy&paste elements from MS Word (most of the end users have this need).
As a huge fan of all the Telerik products, I downloaded the Kendo UI to try your amazing HTML Editor because I saw that all the requirements I needed related to copy&paste elements from MS Word were accomplished in your online demo page (http://demos.kendoui.com/web/editor/all-tools.html).
However, when I downloaded the Open SourceGPL v3 Web version of the page "all-tools.html" there are some elements that doesn't work when copied from MS Word (when they work in the online demo page).
The most important for me at this point to show to the possible client are the Ordered/Unordered list that worked online but not in the demo version.
This is a very important and urgent issue.Can anyone help me on this? Hope so!

Best Regards,
Gonçalo N.


Note: I also tested it on other browsers - Chrome 21.0.1180.60 m and I.E. 7,8 and 9
Nuno
Top achievements
Rank 1
 asked on 09 Aug 2012
1 answer
138 views
I am trying to create Kendo Menu like "Stores" menu in "Basic Usage" example (http://demos.kendoui.com/web/menu/index.html).

A little modification I have inside my "Stores" menu is a Kendo TabStrip.
Kendo TabStrip works great if it stands alone. But when put inside of a Kendo Menu, the styling mess up and the tab is not aligned horizontally anymore.

Is there an easy way to get around this?

Thanks! 
Kamen Bundev
Telerik team
 answered on 09 Aug 2012
2 answers
277 views

i want to use dataviz and web controls in the same page,so i add
<script src="kendo.web.min.js"></script>
<script src="kendo.dataviz.min.js"></script>

in my html page.

 when i creating kendogrid with datasource such as

var dataSource = new kendo.data.DataSource({
             transport: {
                 read:  {
                     url: "getOperatorsByOrg.do?format=json&orgid=2",
                     dataType: "json"
                 }
             },
             batch: true,
             pageSize: 30,
             schema: {
              model: {
                   fields: {
                    userid: { editable: false, nullable: true },
                    operatorname: { editable: false },
                    password: { editable: false }
                   }
                 }
             }
         });

      $("#"+divname).kendoGrid({
          dataSource: dataSource,
          pageable: true,
          height: 300,
          toolbar: ["create"],
          columns: [
                 { field:"userid",title:"userid" },
                 { field: "operatorname",title:"operatorname", width: "150px" },
                 { field: "password", title:"password", width: "150px" }]
      });

a javascript error is showed:

message: 'undefined' is null or is not an object
row: 8
char: 45249
code: 0
URI: http://localhost:8080/reportproject/views/js/kendo/kendo.web.min.js

and the data in grid can't be showed

 when i delete the "<script src="kendo.dataviz.min.js"></script>"
the data can be showed very good

how i can do?

Zhipan
Top achievements
Rank 1
 answered on 09 Aug 2012
3 answers
204 views
Hi,

I'm reopening a window with new content, but I can't figure out how to change the dimensions of it.

How do I accomplish this?
David
Top achievements
Rank 1
 answered on 09 Aug 2012
1 answer
553 views
Hey,

Is there an easy way to change the direction of the k-callout-n arrow on the validation message, or to remove it entirely?

Any help would be greatly appreciated!
Alexander Valchev
Telerik team
 answered on 09 Aug 2012
1 answer
92 views
I have a basic example like the tap strip demo [ http://demos.kendoui.com/mobile/tabstrip/index.html ]

When I run it in eclipse with the simulator, it moves the tap strips to the top and content does not fit within the phone display.
There is about a 3-4 pixel white area around the application and has both a horizontal and vertical scrolling.

Thanks for any advice...
Petyo
Telerik team
 answered on 09 Aug 2012
1 answer
172 views
Hi,

I'm facing a problem with the render of my internal views background, in a PhoneGap iOS application using Kendo. Here is a code demo of my problem:

<!DOCTYPE html>
<html>
    <head>
        <title>Test</title>
        <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
        <meta charset="utf-8" />
        <!-- ********** JS ********** -->
        <script src="js/cordova-2.0.0.js" type="text/javascript" charset="utf-8"></script>
        <script src="js/jquery.min.js"></script>
        <script src="js/kendo.all.min.js"></script>
        <!-- ********** CSS ********** -->
        <link rel="stylesheet" href="styles/kendo.mobile.all.min.css" type="text/css" />
    </head>
    <body>
        <!-- ********** Login View ********** -->
        <div data-role="view" id="loginView" data-title="Login">
            <div id="form" >
                <header data-role="header">
                    <div data-role="navbar">
                        <span data-role="view-title"></span>
                    </div>
                </header>
                <ul data-role="listview" data-style="inset" data-type="group">
                    <li>
                        <label for="txtLogin">Login</label><br/>
                        <input id="txtLogin" name="txtLogin" maxlength="20" type="text"/>
                    </li>
                    <li>
                        <a data-role="button" id="btnSubmit" data-icon="globe">Connect</a>
                    </li>
                </ul>
            </div>
        </div>
         
        <!-- ********** Another View ********** -->
        <div data-role="view" id="otherView">
            <header data-role="header">
                <div data-role="navbar">
                    <span data-role="view-title" data-bind="text: userName"></span>
                </div>
            </header>
            <ul data-role="listview" data-style="inset" data-type="group">
                <li>
                    <span data-bind="text: userName"></span>
                </li>
                <li>
                    <span>Displayed?</span>
                </li>
            </ul>
        </div>
         
        <script>
            var app = new kendo.mobile.Application($(document).body, {
                                                   transition: 'slide'
                                                   });
             
            var viewModel = kendo.observable({
                                             userName: null
                                             });
             
            $("#btnSubmit").click(function() {
                                  viewModel.userName = $("#txtLogin").val();
                                  app.navigate("#otherView");
                                  kendo.bind($("#otherView"), viewModel);
                                  });
       </script>
    </body>
</html>


In the "loginView", the view's background & control are correctly displayed.
But when you navigate to the view "otherView" (by entering a text in the textbox and clicking on the Submit button), the controls aren't visible...
And when I remove the <ul> & <li> tags from this second view, I lose the "iOS-like" background of the view naturally but the controls are visible, like in this second test:

<!DOCTYPE html>
<html>
    <head>
        <title>Test2</title>
        <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
        <meta charset="utf-8" />
        <!-- ********** JS ********** -->
        <script src="js/cordova-2.0.0.js" type="text/javascript" charset="utf-8"></script>
        <script src="js/jquery.min.js"></script>
        <script src="js/kendo.all.min.js"></script>
        <!-- ********** CSS ********** -->
        <link rel="stylesheet" href="styles/kendo.mobile.all.min.css" type="text/css" />
    </head>
    <body>
        <!-- ********** Login View ********** -->
        <div data-role="view" id="loginView" data-title="Login">
            <div id="form" >
                <header data-role="header">
                    <div data-role="navbar">
                        <span data-role="view-title"></span>
                    </div>
                </header>
                <ul data-role="listview" data-style="inset" data-type="group">
                    <li>
                        <label for="txtLogin">Login</label><br/>
                        <input id="txtLogin" name="txtLogin" maxlength="20" type="text"/>
                    </li>
                    <li>
                        <a data-role="button" id="btnSubmit" data-icon="globe">Connect</a>
                    </li>
                </ul>
            </div>
        </div>
         
        <!-- ********** Another View ********** -->
        <div data-role="view" id="otherView">
            <header data-role="header">
                <div data-role="navbar">
                    <span data-role="view-title" data-bind="text: userName"></span>
                </div>
            </header>
            <span data-bind="text: userName"></span>
            <span>Displayed?</span>
        </div>
         
        <script>
            var app = new kendo.mobile.Application($(document).body, {
                                                   transition: 'slide'
                                                   });
             
            var viewModel = kendo.observable({
                                             userName: null
                                             });
             
            $("#btnSubmit").click(function() {
                                  viewModel.userName = $("#txtLogin").val();
                                  app.navigate("#otherView");
                                  kendo.bind($("#otherView"), viewModel);
                                  });
            </script>
    </body>
</html>

Does anyone know the reason of this problem please?

UPDATE: when I remove all things around the view-model binding in the code, there is no more problem, like with this test code:
<!DOCTYPE html>
<html>
    <head>
        <title>Test</title>
        <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
        <meta charset="utf-8" />
        <!-- ********** JS ********** -->
        <script src="js/cordova-2.0.0.js" type="text/javascript" charset="utf-8"></script>
        <script src="js/jquery.min.js"></script>
        <script src="js/kendo.all.min.js"></script>
        <!-- ********** CSS ********** -->
        <link rel="stylesheet" href="styles/kendo.mobile.all.min.css" type="text/css" />
    </head>
    <body>
        <!-- ********** Another View ********** -->
        <div data-role="view" id="otherView" data-title="other">
            <header data-role="header">
                <div data-role="navbar">
                    <span data-role="view-title"></span>
                </div>
            </header>
            <ul data-role="listview" data-style="inset" data-type="group">
                <li>
                    <span>Displayed?</span>
                </li>
                <li><a data-role="button" id="btnSubmit2" data-icon="globe">Connect</a></li>
            </ul>
        </div>
 
        <!-- ********** Login View ********** -->
        <div data-role="view" id="loginView" data-title="Login">
            <div id="form" >
                <header data-role="header">
                    <div data-role="navbar">
                        <span data-role="view-title"></span>
                    </div>
                </header>
                <ul data-role="listview" data-style="inset" data-type="group">
                    <li>
                        <label for="txtLogin">Login</label><br/>
                        <input id="txtLogin" name="txtLogin" maxlength="20" type="text"/>
                    </li>
                    <li>
                        <a data-role="button" id="btnSubmit" data-icon="globe">Connect</a>
                    </li>
                </ul>
            </div>
        </div>
         
        <script>
            var app = new kendo.mobile.Application($(document).body, {
                                                   transition: 'slide'
                                                   });
             
            $("#btnSubmit").click(function() {
                                  app.navigate("#otherView");
                                  });
 
            $("#btnSubmit2").click(function() {
                                  app.navigate("#loginView");
                                  });
            </script>
    </body>
</html>

It seems that view-model binding with content controls (the "kendo.bind(...)" instructions) breaks the content render of data-role="listview" data-style="inset" blocks :(
Eva
Top achievements
Rank 1
 answered on 09 Aug 2012
4 answers
267 views
Hi All,
I have a panel bar that's populated with cities as the headers and different locations as the child elements (from JSON).  What I want to do is expand the last selected header based off of the city name once the panel bar is repopulated with new data.  I'm able to capture the last selected header and parse the city name from it however I cannot figure out how to use it to find the header I need and re-expand it.  I hope this makes sense to someone.

Thanks,
Casey
John DeVight
Top achievements
Rank 1
 answered on 09 Aug 2012
Narrow your results
Selected tags
Tags
Grid
General Discussions
Charts
Data Source
Scheduler
DropDownList
TreeView
MVVM
Editor
Window
DatePicker
Spreadsheet
Upload
ListView (Mobile)
ComboBox
TabStrip
MultiSelect
AutoComplete
ListView
Menu
Templates
Gantt
Validation
TreeList
Diagram
NumericTextBox
Splitter
PanelBar
Application
Map
Drag and Drop
ToolTip
Calendar
PivotGrid
ScrollView (Mobile)
Toolbar
TabStrip (Mobile)
Slider
Button (Mobile)
Filter
SPA
Drawing API
Drawer (Mobile)
Globalization
LinearGauge
Sortable
ModalView
Hierarchical Data Source
Button
FileManager
MaskedTextBox
View
Form
NavBar
Notification
Switch (Mobile)
SplitView
ListBox
DropDownTree
PDFViewer
Sparkline
ActionSheet
TileLayout
PopOver (Mobile)
TreeMap
ButtonGroup
ColorPicker
Pager
Styling
MultiColumnComboBox
Chat
DateRangePicker
Dialog
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Effects
Accessibility
PivotGridV2
ScrollView
BulletChart
Licensing
QRCode
ResponsivePanel
Switch
Wizard
CheckBoxGroup
TextArea
Barcode
Breadcrumb
Collapsible
Localization
MultiViewCalendar
Touch
RadioButton
Stepper
Card
ExpansionPanel
Rating
RadioGroup
Badge
Captcha
Heatmap
AppBar
Loader
Security
TaskBoard
Popover
DockManager
FloatingActionButton
CircularGauge
ColorGradient
ColorPalette
DropDownButton
TimeDurationPicker
ToggleButton
TimePicker
BottomNavigation
Ripple
SkeletonContainer
Avatar
Circular ProgressBar
FlatColorPicker
SplitButton
Signature
Chip
ChipList
VS Code Extension
AIPrompt
PropertyGrid
Sankey
Chart Wizard
OTP Input
SpeechToTextButton
InlineAIPrompt
StockChart
ContextMenu
DateTimePicker
RadialGauge
ArcGauge
AICodingAssistant
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?