Telerik Forums
Kendo UI for jQuery Forum
3 answers
470 views
Hi, i just dl your framework to try if covers all my needings, i have 2 question (please dont call me stupid if i didnt understood it before :) )
 
1)
i'm wondering if its right to add onclick event to a <li> markup, something like:

  <ul id="menu">
                <li>
                    File
                    <ul>
                        <li onclick="alert('ciao');">sub1</li>
                        <li onclick="doSomething(....);">sub2</li> 
.....
i cant use the onSelect handler as shown in your demos becouse user can change it, and also may exists same text in different places of the menu
seems to work..

2) i see that exists insert/add and remove items, does exists also an hide/show methods?

thx
Kamen Bundev
Telerik team
 answered on 09 Apr 2012
6 answers
222 views
Hi all,
My json data format class is:

 public class RestaurantInfo
    {
        public string restaurant_name { get; set; }
        public string brief_description { get; set; }
        public string full_description { get; set; }
        public string location_id { get; set; }
        public object mobile { get; set; }
        public string address_1 { get; set; }
        public string address_2 { get; set; }
        public string city_town { get; set; }
        public string state_province { get; set; }
        public string postal_code { get; set; }
        public string country { get; set; }
        public string phone { get; set; }
        public string fax { get; set; }
        public string longitude { get; set; }
        public string latitude { get; set; }
        public string business_type { get; set; }
        public string utc_offset { get; set; }
        public string website_url { get; set; }
        public string omf_file_url { get; set; }
        public object omf_private { get; set; }
    }


    public class EnvironmentInfo
    {
        public string cuisine_type_primary { get; set; }
        public string cuisine_type_secondary { get; set; }
        public string smoking_allowed { get; set; }
        public string takeout_available { get; set; }
        public object seating_qty { get; set; }
        public string max_group_size { get; set; }
        public string pets_allowed { get; set; }
        public object wheelchair_accessible { get; set; }
        public string age_level_preference { get; set; }
        public string dress_code { get; set; }
        public object delivery_available { get; set; }
        public object delivery_radius { get; set; }
        public object delivery_fee { get; set; }
        public object catering_available { get; set; }
        public string reservations { get; set; }
        public string alcohol_type { get; set; }
        public string music_type { get; set; }
    }


    public class ParentCompany
    {
        public string parent_company_name { get; set; }
        public string parent_company_website { get; set; }
        public string address_1 { get; set; }
        public string address_2 { get; set; }
        public string city_town { get; set; }
        public string state_province { get; set; }
        public string postal_code { get; set; }
        public string country { get; set; }
        public string phone { get; set; }
        public string fax { get; set; }
    }


    public class OperatingDays
    {
        public string mon_open_time { get; set; }
        public string mon_close_time { get; set; }
        public string tue_open_time { get; set; }
        public string tue_close_time { get; set; }
        public string wed_open_time { get; set; }
        public string wed_close_time { get; set; }
        public string thu_open_time { get; set; }
        public string thu_close_time { get; set; }
        public string fri_open_time { get; set; }
        public string fri_close_time { get; set; }
        public string sat_open_time { get; set; }
        public string sat_close_time { get; set; }
        public string sun_open_time { get; set; }
        public string sun_close_time { get; set; }
    }


    public class SeatingLocation
    {
        public string seating_location { get; set; }
    }


    public class Contact
    {
        public string first_name { get; set; }
        public string last_name { get; set; }
        public string email { get; set; }
        public string contact_type { get; set; }
    }


    public class AcceptedCurrency
    {
        public string accepted_currency { get; set; }
    }


    public class LogoUrl
    {
        public string logo_url { get; set; }
        public object width { get; set; }
        public object height { get; set; }
        public string image_media_id { get; set; }
        public string image_type_id { get; set; }
        public string image_type { get; set; }
        public string image_media { get; set; }
    }


    public class MenuItem
    {
        public string menu_item_name { get; set; }
        public string menu_item_description { get; set; }
        public string menu_item_price { get; set; }
        public string menu_item_calories { get; set; }
        public string menu_item_heat_index { get; set; }
        public string menu_item_allergy_information { get; set; }
        public string menu_item_allergy_information_allergens { get; set; }
        public string item_uid { get; set; }
        public string disabled { get; set; }
        public string special { get; set; }
        public string vegetarian { get; set; }
        public object vegan { get; set; }
        public object kosher { get; set; }
        public object halal { get; set; }
        public object gluten_free { get; set; }
        public List<object> menu_item_options { get; set; }
        public List<object> menu_item_sizes { get; set; }
        public List<object> menu_item_tags { get; set; }
        public List<Menu_Images> menu_item_images { get; set; }
    }


    public class Menu_Images
    {
        public string image_url { get; set; }
        public string width { get; set; }
        public string height { get; set; }
        public string image_media_id { get; set; }
        public string image_type_id { get; set; }
        public string image_type { get; set; }
        public string image_media { get; set; }


    }


    public class MenuGroup
    {
        public string group_name { get; set; }
        public string group_note { get; set; }
        public string group_description { get; set; }
        public string group_uid { get; set; }
        public string disabled { get; set; }
        public List<object> menu_group_options { get; set; }
        public List<MenuItem> menu_items { get; set; }
    }


    public class Menu
    {
        public string menu_name { get; set; }
        public string menu_description { get; set; }
        public string menu_note { get; set; }
        public string currency_symbol { get; set; }
        public string language { get; set; }
        public string disabled { get; set; }
        public string menu_uid { get; set; }
        public string menu_duration_name { get; set; }
        public string menu_duration_time_start { get; set; }
        public string menu_duration_time_end { get; set; }
        public List<MenuGroup> menu_groups { get; set; }
    }


    public class RootObject
    {
        public string omf_uuid { get; set; }
        public string omf_accuracy { get; set; }
        public object omf_private { get; set; }
        public string omf_version { get; set; }
        public string omf_updated_timestamp { get; set; }
        public RestaurantInfo restaurant_info { get; set; }
        public EnvironmentInfo environment_info { get; set; }
        public ParentCompany parent_company { get; set; }
        public OperatingDays operating_days { get; set; }
        public List<SeatingLocation> seating_locations { get; set; }
        public List<Contact> contacts { get; set; }
        public List<AcceptedCurrency> accepted_currencies { get; set; }
        public List<object> online_reservations { get; set; }
        public List<object> online_ordering { get; set; }
        public bool parking { get; set; }
        public List<LogoUrl> logo_urls { get; set; }
        public List<object> crosswalks { get; set; }
        public List<Menu> menus { get; set; }
    }

Here i want to display menus in one div and when i click on that menu it takes me to menu_groups based on the menu_uid and so forth to menu category items. Here my problem is i can display the menus, but when i click on menu i cannot access the particular menu items based on the menu_uid and also i unable to get that id in data-init method of that div.



briankb
Top achievements
Rank 2
 answered on 09 Apr 2012
0 answers
155 views
  Hi Developeres,

   Currently I am working on Phone gap using Kendoui Mobile I want to open external link i.e (http://www.google.com) in  web view that is with in app Like android or I phone web with in app is there any way to open external links using web view 

Regards,
Venkat
Venkateswara
Top achievements
Rank 1
 asked on 09 Apr 2012
5 answers
130 views
I have some problem with tooltip at then end of chart or is it problem ?
Iliana Dyankova
Telerik team
 answered on 09 Apr 2012
0 answers
96 views
You don't want to get the count of rows from the database if you dont have to. My question is if it's possible to do the paging without this count in the Kendo grid?

I deviced a system for this in my own grid. It worked by the grid asking to fetch page 1 and 20 rows. You would then ask the database for 21 rows. If you got 21 rows you know you have at least another page. When the user clicks page 2 you ask the database for rows 20 to 41 and so on.
That way you don't have to potentially send a resource intensive count (In case of say, user find with a lot of users) to the database.
The downside is that users can't jump between pages further than they have already asked for but normaly people give up after going a few pages down and if they need to go further they should/could specifiy their search more.

Is this something that is possible to do in the current grid?
Joakim
Top achievements
Rank 1
 asked on 09 Apr 2012
0 answers
101 views
help me for multiselect....
Bhushan
Top achievements
Rank 1
 asked on 09 Apr 2012
3 answers
88 views
I have this:

        $("#priceRange").kendoRangeSlider({
            min: 0,
            max: 1000000,
            largeStep: 500000
        });

Ticks are not generated, they are if using default values, everything else constant.  The above example should generate the same number of ticks, just that their underlying value is different.

Thanks.
Hristo Germanov
Telerik team
 answered on 09 Apr 2012
1 answer
113 views
I have a grid that correctly displays my aggregate information in a groupFooterTemplate, but it only shows this information when the section of the group-by is visible (not collapsed).

Is there a way to display the aggregate information in a template that shows when that section is collapsed?
Alexander Valchev
Telerik team
 answered on 09 Apr 2012
2 answers
384 views
I am trying to load a page using AJAX, then display that page in a kendo window  when a button is clicked. However, the center() and open() functions do not work as the object is undefined. When omitting 'content' from the declaration the window shows ok. There is a div in the html with an id "window".

<script type="text/javascript">
      $(document).ready(function () {
          var window = $("#window");
 
          if (!window.data("kendoWindow")) {
                  window.kendoWindow({
                  actions: ["Refresh", "Maximize", "Minimize", "Close"],
                  content: "/ReportType/Create",
                  title: "Create a New ReportType",
                  modal: true,
                  visible: false
              });
          }
      });
  $("#createButton").click(function () {
      var window = $("#window").data("kendoWindow");
      window.center();
      window.open();
  });


Ahmed
Top achievements
Rank 1
 answered on 09 Apr 2012
1 answer
135 views
I'm attempting to get the data from a DataSource and loading that data into an array to send to a PHP page to export to XLSX.

I've pored over the documentation, and all I see are references to use view() as part of loading data into a Kendo widget.

How can I just read the contents of the data so I can pick out the fields I need?

A "Walkthrough" section for DataSource might help.
Atanas Korchev
Telerik team
 answered on 09 Apr 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)
SPA
Filter
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
OrgChart
TextBox
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
Popover
DockManager
FloatingActionButton
TaskBoard
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
TimePicker
DateTimePicker
RadialGauge
ArcGauge
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?