Telerik Forums
Kendo UI for jQuery Forum
1 answer
192 views
I've tried both adding the menu items as a json object and directly as li/ul elements in the html code.

I just can't seem to get the menu to expand....

<div id="example" class="k-content">
   <div id="megaStore">
     <ul id="kendoMenu">
       <li>Products
         <ul>
           <li>Furniture
             <ul>
               <!-- moving the UL to the next line will cause an IE7 problem -->
               <li>Tables & Chairs</li>
               <li>Sofas</li>
               <li>Occasional Furniture</li>
               <li>Childerns Furniture</li>
               <li>Beds</li>
             </ul>
           </li>
           <li>Decor
             <ul>
               <!-- moving the UL to the next line will cause an IE7 problem -->
               <li>Bed Linen</li>
               <li>Throws</li>
               <li>Curtains & Blinds</li>
               <li>Rugs</li>
               <li>Carpets</li>
             </ul>
           </li>
           <li>Storage
             <ul>
               <!-- moving the UL to the next line will cause an IE7 problem -->
               <li>Wall Shelving</li>
               <li>Kids Storage</li>
               <li>Baskets</li>
               <li>Multimedia Storage</li>
               <li>Floor Shelving</li>
               <li>Toilet Roll Holders</li>
               <li>Storage Jars</li>
               <li>Drawers</li>
               <li>Boxes</li>
             </ul>
           </li>
           <li>Lights
             <ul>
               <!-- moving the UL to the next line will cause an IE7 problem -->
               <li>Ceiling</li>
               <li>Table</li>
               <li>Floor</li>
               <li>Shades</li>
               <li>Wall Lights</li>
               <li>Spotlights</li>
               <li>Push Light</li>
               <li>String Lights</li>
             </ul>
           </li>
         </ul>
       </li>
       <li>Stores
         <ul>
           <li>
             <div id="template" class="k-content" style="padding: 10px;">
               <h2>
                 Around the Globe</h2>
               <ol>
                 <li>United States</li>
                 <li>Europe</li>
                 <li>Canada</li>
                 <li>Australia</li>
               </ol>
               <img src="../../content/web/menu/map.png" alt="Stores Around the Globe" />
               <button class="k-button">
                 See full list</button>
             </div>
           </li>
         </ul>
       </li>
       <li>Blog </li>
       <li>Company </li>
       <li>Events </li>
       <li disabled="disabled">News </li>
     </ul>
   </div>
 </div>
 <script type="text/javascript">
 
   $(document).ready(function () {
 
     $("#kendoMenu").kendoMenu();
   });


Captain Awesome
Top achievements
Rank 2
 answered on 02 Mar 2012
2 answers
163 views
Hello Everyone,

I'm having some issues binding my calendar to local data.

Basically, what I'm hoping to do is have someone enter in data on each day. Then the calendar would spit out the code they entered for that day. They'd be able to view the data in the month calendar view.

So I have this local data I need to bind. As far as I can tell this part is set up correctly. My issue is that I'm getting an error of "action" is not defined, and the script kills and doesn't load the calendar.

Is there something I'm not doing right here?

Here is my code: 

$(document).ready(function() {
      
    var Priority = [
        {   PriorityId: "1",
            Action: "Lorem Ipsum Dolor Sit",
            Completed: true,
            PersonID: "2",
            PriorityDate: "02/22/12"},
        {   PriorityId: "2",
            Action: "Lorem Ipsum Dolor Sit",
            Completed: false,
            PersonID: "2",
            PriorityDate: "02/23/12"},
        {   PriorityId: "3",
            Action: "Lorem Ipsum Dolor Sit",
            Completed: true,
            PersonID: "2",
            PriorityDate: "02/24/12"},
        {   PriorityId: "4",
            Action: "Lorem Ipsum Dolor Sit",
            Completed: false,
            PersonID: "2",
            PriorityDate: "02/25/12"},
        {   PriorityId: "5",
            Action: "Lorem Ipsum Dolor Sit",
            Completed: true,
            PersonID: "2",
            PriorityDate: "02/26/12"},
        {   PriorityId: "6",
            Action: "Lorem Ipsum Dolor Sit",
            Completed: false,
            PersonID: "2",
            PriorityDate: "02/27/12"},
    ];
      
     var today = new Date();
    $("#kendoCalendar").kendoCalendar({
        value: today,
        depth: "month",
        format: "dd/MM/yyy",
        dataSource: Priority,
        month: {
            content: '<div class="custom"><#= Action #></div>'
         },
        change: function(e) {
            var title = "Today's Top Priority";
            var url = "top-tasks-add.aspx"
            var win = $(".modal-window");
            if (!win.data("kendoWindow")) {
                // window not yet initialized
                win.kendoWindow({
                    content: url,
                    title: title,
                    draggable: true,
                    modal: true,
                    resizable: false,
                }).data("kendoWindow").open().center();
            }
            else {
                // reopening window
                win.data("kendoWindow")
                .refresh(url) // request the URL via AJAX
                .title(title)
                .open() // open the window
                .center();
            }
        }
    });
});


Just to explain a little more, the "change" function opens a kendo window that will allow the user to input their "action" for that particular day.

Thanks for any help, guys and gals!
Jeremy
Top achievements
Rank 1
 answered on 02 Mar 2012
5 answers
738 views
Hi,
We have a requirement of sharing a content [ basically a div and some controls inside it] with multiple tabs.
Now while doing that, we have to generate these tabs dynamically and assign it to the common control we already have in the mark up.

Let me give an example:
<div id="lefttabstrip">
 
                <ul class="Home">
                    <li class="TabAct k-state-active">All Rules</li>
               </ul>
 
               <div id="homediv>
                     Home text
               </div>
 
              <div id="mycommondiv>
                     some controls here
              </div>
 
<div>

Now we already have Home tab which will show content of "homediv" .
What we want to do now is to append tabs to the home tab which all will be showing the content of "mycommondiv".
Any work around for this?

Any help is much appreciated.

Thanks,
Sourish

 

Alexander Valchev
Telerik team
 answered on 02 Mar 2012
1 answer
101 views
Is there a way to load more data if requested by the user?

For example a guestbook, I want to show the first 10 entries, when the user hits the "show more" button, the next 10 will be loaded and added bellow the first 10. Again, you can push "show more", loading the next 10, append them to the bottom of the list... till no more entries will be received by the server.

Can Kendo UI handle this already?

Regards -

Tom
Iliana Dyankova
Telerik team
 answered on 02 Mar 2012
1 answer
2.0K+ views
My comboboxes are populated dynamically and I want them to be required, but only if there is more than one option.  I think I know how to do the validation, but how can I get the item count for combobox?
Georgi Krustev
Telerik team
 answered on 02 Mar 2012
2 answers
170 views
Hi all,

any idea why this wouldnt work (all include and link paths checked)
I'm a newby and so lost! i'm getting the data (one record) into the array in the function createRandomData.
But i cant generate the gridview after that.
Can anyone see where i'm going wrong?

V


<!doctype html>
<html>
    <head>
        <title>Admin: Users</title>
        <link href="styles/kendo.black.min.css" rel="stylesheet"/>
        <link href="styles/kendo.default.min.css" rel="stylesheet"/>
        <script src="js/jquery.min.js"></script>
        <script src="js/kendo.core.js"></script>
        <script src="js/kendo.validator.js"></script>
        <script src="js/kendo.model.js"></script>
        <script src="js/kendo.data.js"></script>
        <script src="js/kendo.pager.js"></script>
        <script src="js/kendo.sortable.js"></script>
        <script src="js/kendo.draganddrop.js"></script>
        <script src="js/kendo.groupable.js"></script>
        <script src="js/kendo.grid.js"></script>
        <script src="js/kendo.binder.js"></script>
        <script src="js/kendo.editable.js"></script>
        <script src="js/kendo.popup.js"></script>
        <script src="js/kendo.calendar.js"></script>
        <script src="js/kendo.datepicker.js"></script>
        <script src="js/kendo.numerictextbox.js"></script>
		<script>
function createRandomData(count) {
		var data = [];
		data = {"account_recs":[{"FirstName":"Graham","SecondName":"Fourie"}],"totals":1};
		return data;
}
</script>
    </head>
    <body>
        <a href="../index.html">Back</a>
        <div class="description">Basic usage</div>
        <div id="example" class="k-content">
            <div id="grid"></div>

            <script>
                $(document).ready(function () {
                    $("#grid").kendoGrid({
                        dataSource: {
                            data: createRandomData(1)
						}
                        navigatable: true,
                        pageable: true,
                        height: 400,
                        toolbar: ["create", "save", "cancel"],
                        columns: [
                            "SecondName",
                            { field: "FirstName", width: "100px" },
                            { command: "destroy", title: "&nbsp;", width: "110px" }],
                        editable: true
                    });
                });
            </script>
        </div>
    </body>
</html>


Vauneen
Top achievements
Rank 1
 answered on 02 Mar 2012
1 answer
382 views
Is there a method or property that returns what url the read method will query ?

Suppose I have
  transport: {
   read: {
    url: window.dataEmitterURL + "/GetStoresTable",
    dataType: "xml",
    data: {
     mainid: getParameter('mainid') ,
     idset: function() { return window.selectedIdset; }
    },
    cache: false
   }
  },
Dimo
Telerik team
 answered on 02 Mar 2012
2 answers
55 views
Hi,

I have been working on migrating my Silverlight application to HTML5 using Kendo  UI. It is working very good.
But have a problem with the charts when hosted in aspx pages. The page throws javascript error when viewed in Internet Explorer.
Where as the same thing works in Firefox or Chrome. Please can anybody help ??
I need to get this working in IE as well.

Thanks,
Nikhil
Nikhil
Top achievements
Rank 1
 answered on 02 Mar 2012
0 answers
128 views
Hi ,
How can I use and image in grid column ?
Is there any way to set custom css class in grid column ?
Thanks.
Shaahin
Top achievements
Rank 1
 asked on 02 Mar 2012
3 answers
145 views
Hi,

Im using this expander panel and the problem is if i have a dynamic fields  and if i want to collapse the panel and then expand it back  it will always stay to that height and never change so now if i want to pick something else from the Dropdown and if it has more fields depending on my selection it will be hidden or overlapping.

Thanks
Kamen Bundev
Telerik team
 answered on 02 Mar 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
Dialog
Chat
DateRangePicker
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
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?