Telerik Forums
Kendo UI for jQuery Forum
2 answers
434 views
This may be something I have to go and figure out on my own with an external piece of code, but I'm wondering if there's anyone out there that's implemented functionality on the TreeView through when a user right clicks on a node? This has recently come up on a piece of project work and I'd like to know the best way of doing this with the Kendo UI TreeView.

Any help would be appreciated, thanks!
Miguel
Top achievements
Rank 1
 answered on 10 Apr 2012
1 answer
212 views
Hi,

I have been looking for some sort of help regarding filtering for cascading dropdown, below is my code:

var StatedataSource = new kendo.data.DataSource({
            transport: {
                read: {
                    type: "POST",
                    url: "GetDocumentType.asmx/GetStateList",
                    contentType: 'application/json; charset=utf-8',
                    datatype: "json",
                    json: false
                },
                parameterMap: function (options) {
                    return JSON.stringify(options);
                }
            },
            serverFiltering: true,
            schema: {
                data: "d",                
                total: function (result) {
                    result = result.d || result;
                    return result.length;
                }
            }
        });


        $("#states").kendoDropDownList({
            autoBind: false,
            dataTextField: "StateName",
            dataValueField: "StateID",
            dataSource: StatedataSource
        });

        $("#countries").kendoDropDownList({
            dataTextField: "CountryName",
            dataValueField: "CountryID",
            dataSource: {
                serverFiltering: true,
                transport: {
                    read: {
                        type: "POST",
                        url: "GetDocumentType.asmx/GetCountryList",
                        contentType: 'application/json; charset=utf-8',
                        datatype: "json"
                    },
                    parameterMap: function (options) {
                        return JSON.stringify(options);
                    }
                },
                schema: {
                    data: "d",
                    total: function (result) {
                        result = result.d || result;
                        return result.length;
                    }
                }
            },
            change: function () {
                StatedataSource.filter({
                    field: "CID",
                    operator: "eq",
                    value: parseInt(this.value())
                });
            }
        });


I want to know that how server filtering exactly works? Although I specified filter , all the data from the web service returns and shown in the dropdown. Did I miss something?

Thanks,
Mangesh
Nathan
Top achievements
Rank 1
 answered on 09 Apr 2012
0 answers
114 views
Hello. I would like to inquire whether it is possible to customize the various Kendo UI widgets without using themebuilder but custom css files linked to my html page. Are there any examples I could use as reference? Thank you.
Antonios
Top achievements
Rank 1
 asked on 09 Apr 2012
1 answer
71 views

I am trying to consume a json data source that returns @ and # characters in the fieldnames.   Apparently these characters are causing the kendoGrid template creation to fail.   Any workarounds (no, I can't change the data source)?

See below:

"Results": {
     "@ViewName": "WFP_MacroDemandForecast",
     "RowSet": {
         "@ColDims": "Workforce Planning Value",
         "Rows": [
             {
                 "WorkforcePlanningMeasure": {
                     "@Name": "HC Demand",
                     "@DimName": "Workforce Planning Measure",
                     "@ID": "Headcount Demand",
                     "#text": "HC Demand"
                 },
                 "Value": "0",
                 "ChangeRate": "0",
                 "BaseYear": "0",
                 "ForecastDriver": "0",
                 "_5YearGoal": "0",
                 "Year1": "0",
                 "Year2": "0",
                 "Year3": "0",
                 "Year4": "0",
                 "Year5": "0"
             },

Steven
Top achievements
Rank 1
 answered on 09 Apr 2012
1 answer
204 views
Hello, I want to display a area chart for a height profile. Then I want to be able to set some markers on the profile. I was trying to use a scatter chart for that. But if I add two series to a chart ( scatter and area type ) only one of the two series is displayed.

Is it possible to mix a area series with a scatter series?
Any other way to position markers on some positions in the chart area?

Thanks a lot
Hans
Iliana Dyankova
Telerik team
 answered on 09 Apr 2012
5 answers
140 views
When I try to set multiple group-by columns by dragging a column into a position that isn't at the end, I get a strange behavior where the column heading I'm dragging gets stuck when I release the mouse. 

See this JSFiddle, an example provided by from another thread in this forum.

Browser Detail: Google Chrome 18, Win7 64-bit.

This happens on every groupable:true grid I've used with a groupFooterTemplate, but I don't have the problem when using IE9, or FF10.0.2 on the same machine.




Nikolay Rusev
Telerik team
 answered on 09 Apr 2012
1 answer
912 views
Hi,

    I want to change the window title style property example I want to do bold the name of the kendo window.

Please guide me to this feature.

Thanks in advance.

Sourav


Richard
Top achievements
Rank 1
 answered on 09 Apr 2012
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
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?