Telerik Forums
Kendo UI for jQuery Forum
2 answers
161 views
Hello guys,
I'm using the scroll view like in your example for displaying html pages. But could not able to display pages like images.
It is showing only contents and not scroll-view functionality. I just want to display 1 page at a time.
I am attaching my source code for scroll-view.
Any ideas? A simple sample would be much appreciated. 





Prashant
Top achievements
Rank 1
 answered on 09 Apr 2012
3 answers
468 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
216 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
151 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
99 views
help me for multiselect....
Bhushan
Top achievements
Rank 1
 asked on 09 Apr 2012
3 answers
87 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
377 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
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?