Telerik Forums
Kendo UI for jQuery Forum
3 answers
128 views
Hi,

I have run into an issue where the grid is unable to group on complex data.  If you take a look at this sample (http://jsfiddle.net/CuinnWylie/c7hv4/ ) you'll see some test MSDS data.  Try to drag the Areas column into the grouping section and you should run into the problem.

What happens for me is that the grouping is applied, but the header is not dropped into the grouping area and stays attached to the mouse pointer.  Also, the grouping area becomes hidden/minimised.  The other column headers are able to be successfully dropped into the grouping area.  This only seems to be corrected once the page is refreshed.

I have not attempted to debug this myself yet, but might look into it this week if I get the time.  Would be good if I can get an indication of whether this is a bug, or if this is simply not intended usage for this control.

Regards,
Cuinn.
Rosen
Telerik team
 answered on 14 Feb 2012
3 answers
4.8K+ views
I just want one column in my grid to be sortable. I was thinking I could make the grid set to "sortable: false" and put "sortable: true" on my one column, but no dice.

Joe
Top achievements
Rank 1
 answered on 14 Feb 2012
5 answers
268 views
Hi,

I'm trying to use a Ribbon Bar inside of an iFrame. The iFrame is hosted in a kendoUI Window.
Everything is working fine in Firefox.
In IE9 however, I'm getting a whole bunch of errors saying that some objects are undefined.

For example:

SCRIPT5009: "Array" ist undefiniert
WebResource.axd?d=nETz4_IM_aEemtqRYSzycw8SrL3cgvmF54HoMX-OCJUGuepfKRveqXGF9MKJandwWOMMNGOBlBi1o7hdVanR8smNb1jevPMSxtaa578Zrf81&t=634618768644240867, Zeile 45 Zeichen 1
SCRIPT5009: "Array" ist undefiniert
WebResource.axd?d=nETz4_IM_aEemtqRYSzycw8SrL3cgvmF54HoMX-OCJUGuepfKRveqXGF9MKJandwWOMMNGOBlBi1o7hdVanR8smNb1jevPMSxtaa578Zrf81&t=634618768644240867, Zeile 45 Zeichen 1
SCRIPT5009: "Function" ist undefiniert
Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl02_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3ade-DE%3a89093640-ae6b-44c3-b8ea-010c934f8924%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2011.3.1324.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3ade-DE%3adabb5aeb-caf3-49fd-8d54-706f88de89f2%3a16e4e7cd%3af7645509%3a24ee1bba%3aa675b4ab, Zeile 6 Zeichen 1
SCRIPT5009: "Function" ist undefiniert
Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl02_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3ade-DE%3a89093640-ae6b-44c3-b8ea-010c934f8924%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2011.3.1324.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3ade-DE%3adabb5aeb-caf3-49fd-8d54-706f88de89f2%3a16e4e7cd%3af7645509%3a24ee1bba%3aa675b4ab, Zeile 6 Zeichen 1
SCRIPT5009: "Error" ist undefiniert
CreateUserAndBookServices.aspx, Zeile 41 Zeichen 34
SCRIPT5009: "Error" ist undefiniert
CreateUserAndBookServices.aspx, Zeile 41 Zeichen 34
SCRIPT5009: "Sys" ist undefiniert
CreateUserAndBookServices.aspx, Zeile 51 Zeichen 1
SCRIPT5009: "Sys" ist undefiniert
CreateUserAndBookServices.aspx, Zeile 51 Zeichen 1
SCRIPT5009: "Telerik" ist undefiniert
CreateUserAndBookServices.aspx, Zeile 260 Zeichen 1
SCRIPT5009: "Telerik" ist undefiniert
CreateUserAndBookServices.aspx, Zeile 260 Zeichen 1
SCRIPT5009: "$telerik" ist undefiniert
CreateUserAndBookServices.aspx, Zeile 147 Zeichen 5

Any ideas?

Thanks,
Lars
Atanas Korchev
Telerik team
 answered on 14 Feb 2012
4 answers
195 views
Hi,

The code below works perfectly in Chrome and FF, however in IE8-9-10 it does not display good and does not open the popup as expected...

<html>
<head>
    <title></title>
    <link href="css/kendo.common.css" rel="stylesheet" type="text/css" />
    <link href="css/kendo.default.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" action="Default.aspx">
    <div>
        <input id="timepicker" />
    </div>
    </form>
 
    <script src="js/jquery.js" type="text/javascript"></script>
    <script src="js/kendo.core.js" type="text/javascript"></script>
    <script src="js/kendo.fx.js" type="text/javascript"></script>
    <script src="js/kendo.popup.js" type="text/javascript"></script>
    <script src="js/kendo.timepicker.js" type="text/javascript"></script>
 
    <script type="text/javascript">
        $(document).ready(function () {
            $("#timepicker").kendoTimePicker();
        });
    </script>
</body>
</html>

The attached file show how it looks in IE...

Did I missed something?

Regards,
Peter
Peter
Top achievements
Rank 1
 answered on 14 Feb 2012
3 answers
322 views
I have code which creates a grid.

When the user pressed the "Refresh" button, my code then destroys this grid and recreates it again.

For some reason, when you recreate the grid, the grouping doesn't work. You drag a column into the grouping banner, but then it just doesn't stick there.

I have created a simple working example here: http://jsfiddle.net/xmpzk/1/ 

Press the button "Create", and you see the grid appear. You can happily drag column headers into the grouping banner.

Then press the button "Refresh". This time, you will find that you cannot drag columns.

Just in case jsFiddle is down:

The HTML:
<button type="button" id="refreshButton">Create Grid</button>  

<div id="demoGrid">
    
</div>


The Javascript:

function createGrid({

    var dataSource {
        data[
            {
            FirstName"Harold",
            LastName"Kumar",
            City"London",
            Title"Mr",
            Age63}
              ]
    };
    $("#demoGrid").empty().kendoGrid({
        height250,
        scrollabletrue,
        sortabletrue,
        filterabletrue,
        pageabletrue,
        groupabletrue,
        dataSourcedataSource,
        columns[
            {
            field"FirstName",
            title"First Name"},
        {
            field"LastName",
            title"Last Name"},
        {
            field"City"},
        {
            field"Title"},
        {
            field"Age"}
        ]
    });
    $("#refreshButton").text("Refresh Grid");
};

// createGrid();

$("#refreshButton").click(function({
    createGrid();
});​ 










Andrew
Top achievements
Rank 1
Iron
Iron
 answered on 14 Feb 2012
2 answers
283 views
I'm evaluating Kendo mobile for an upcoming project and am not having much luck getting a select handler on the tab strip to work as it should. I have this very simple page set up (using PhoneGap) and whenever I try to add a select handler, the UI completely fails to render and all I see is a white page with the text from all the views (no tab strip, no header, etc). If I remove the select handler, things render fine. 

<!DOCTYPE html>
<html>
  <head>
  <title></title>
   
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no;" />
    <meta charset="utf-8">
 
 
    <!-- iPad/iPhone specific css below, add after your main css >
    <link rel="stylesheet" media="only screen and (max-device-width: 1024px)" href="ipad.css" type="text/css" />       
    <link rel="stylesheet" media="only screen and (max-device-width: 480px)" href="iphone.css" type="text/css" />      
    -->
    <!-- If your application is targeting iOS BEFORE 4.0 you MUST put json2.js from http://www.JSON.org/json2.js into your www directory and include it here -->
    <script type="text/javascript" charset="utf-8" src="js/phonegap-1.4.1.js"></script>
  <script>
    if (typeof window._nativeReady === "undefined")
        window._nativeReady = true;
  </script
    <script type="text/javascript" charset="utf-8" src="js/jquery.min.js"></script>
    <script type="text/javascript" charset="utf-8" src="js/app.js"></script
  <script src="js/kendo.mobile.min.js"></script>
  <link href="styles/kendo.common.min.css" rel="stylesheet" />
  <link href="styles/kendo.mobile.all.min.css" rel="stylesheet" />
  <script type="text/javascript">
 
 
    // If you want to prevent dragging, uncomment this section
    /*
    function preventBehavior(e)
    {
      e.preventDefault();
    };
    document.addEventListener("touchmove", preventBehavior, false);
    */
     
    /* If you are supporting your own protocol, the var invokeString will contain any arguments to the app launch.
    for more details -jm */
    /*
    function handleOpenURL(url)
    {
        // TODO: do something with the url passed in.
    }
    */
     
    function onBodyLoad()
    {      
        document.addEventListener("deviceready", onDeviceReady, false);
    }
     
    /* When this function is called, PhoneGap has been initialized and is ready to roll */
    /* If you are supporting your own protocol, the var invokeString will contain any arguments to the app launch.
    for more details -jm */
    function onDeviceReady()
    {
        // do your thing!
               App.requireSession();
 
    }
     
    </script>
  </head>
  <body onload="onBodyLoad()">
  <div data-role="view" id="tabstrip-card" data-init="cardViewInit" data-title="My card" data-layout="mobile-tabstrip">
    card
  </div>
   
  <div data-role="view" id="tabstrip-providers" data-title="Providers" data-layout="mobile-tabstrip">
    providers!
  </div>
 
  <div data-role="view" id="tabstrip-savings" data-title="My savings" data-layout="mobile-tabstrip">
    savings!
  </div>
 
  <div data-role="view" id="tabstrip-logout" data-title="Log out" data-layout="mobile-tabstrip">
    log out!
  </div>     
 
  <div data-role="layout" data-id="mobile-tabstrip">
    <header data-role="header">
        <div data-role="navbar">
            <!--<a class="nav-button" data-align="left" data-role="backbutton">Back</a>-->
            <span data-role="view-title"></span>
            <a data-align="right" data-role="button" class="nav-button" href="#index">Index</a>
        </div>
    </header>
 
    <footer data-role="footer">
        <div data-role="tabstrip" id="footer-tabs">
            <a href="#tabstrip-card" data-icon="contacts">My card</a>
            <a href="#tabstrip-providers" data-icon="history">Providers</a>
            <a href="#tabstrip-savings" data-icon="favorites">My savings</a>
            <a id="logout" href="#tabstrip-logout" data-icon="settings">Log out</a>
        </div>
    </footer>
  </div>
 
  <script>
  
    $(document).ready(function() {
        var tabStrip = $("#footer-tabs").data("kendoMobileTabstrip");
        tabStrip.bind("select", function(e) { alert(1); })
    });
  </script>
 
  <script>
     window.kendoMobileApplication = new kendo.mobile.Application(document.body);
  </script>
  </body>
</html>
Chad
Top achievements
Rank 1
 answered on 14 Feb 2012
2 answers
98 views
Hello,

I have been playing with this for a few days now.  I have a window with a tab strip in it.  There are 2 buttons to open the window, each button corresponds to a tab in my tab strip.  When I click the buttons, I am able to open the window and display the appropriate tab as selected, but for some reason, the information being shown does not track along.

For example.  I open the window to tab 2, but the data for tab 1 is being displayed.  
Here's a very simplistic reproduction of the issue: http://jsfiddle.net/jkappel/6UXZs/

As always, any help will be greatly appreciated!
Jay
Top achievements
Rank 2
 answered on 13 Feb 2012
1 answer
130 views
Hi,

When you remove the last item in a panel bar it seems to remove the container as well (if it is a UL).  Additionally I notice that you only seem to be able to add an item if you provide an existing item to a insert before/insert after/append to.

The only way around this seems to be to provide a datasource to construct the panel bar from (essentially allowing initialisation of an empty DOM node).  However, how do I then change the items completely (eg. remove all of the items and add others?  Do I need to destroy and replace the container to do this?

Also, if the container is a DIV and not a UL, you get a DIV with LI subitems in it, which seems to display fine, but which is probably not correct.  Perhaps this should be checked on initialisation of the control and a wrapper constructed/initialisation aborted??

These issues also seem to affect the Menu control as well.

Regards,
Cuinn.
Kamen Bundev
Telerik team
 answered on 13 Feb 2012
6 answers
292 views
I have a DropDownList in a Window, It has 2 elements.  When clicked on, it is not expanding downwards (well, it does a tiny bit).   I can use the arrow keys to select the 2nd element.  Any idea why it is not expanding downwards?  A tab panel is located just under it (with a couple of<br's in between).
Georgi Krustev
Telerik team
 answered on 13 Feb 2012
1 answer
255 views
How can I style a list-item without using the custom-template option?

I'm think of something like the tabstrip:

#custom-tabstrip .km-state-active .km-icon
    {
      background:-moz-linear-gradient(top, #ffffff, #2468A5); /* Firefox */
    background : -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(#2468A5)); /* Safari, Chrome */
 
    }

Kamen Bundev
Telerik team
 answered on 13 Feb 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
Drag and Drop
Application
Map
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
Chat
MultiColumnComboBox
Dialog
DateRangePicker
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Accessibility
Effects
PivotGridV2
Licensing
ScrollView
Switch
TextArea
BulletChart
QRCode
ResponsivePanel
Wizard
CheckBoxGroup
Localization
Barcode
Breadcrumb
Collapsible
MultiViewCalendar
Touch
RadioButton
Stepper
Card
ExpansionPanel
Rating
RadioGroup
Badge
Captcha
Heatmap
AppBar
Loader
Security
TaskBoard
Popover
DockManager
TimePicker
FloatingActionButton
CircularGauge
ColorGradient
ColorPalette
DropDownButton
TimeDurationPicker
ToggleButton
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
SmartPasteButton
PromptBox
SegmentedControl
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?