Telerik Forums
Kendo UI for jQuery Forum
4 answers
260 views
De we have a way to user Panel bar like a menu?
I try to pass some parameters in my PanelItem to ba able to react in the Select event.
I use MVC like this:
@(Html.Kendo().PanelBar()
    .Name("Navigation")
    .ExpandMode(PanelBarExpandMode.Single)
    .Events(events => events
        .Select("OnMenuSelect"))
    .HtmlAttributes(new { style = "width: 200px;" })
    .BindTo(Model, mappings =>
    {
        mappings.For<umbBaultar.Models.Shared.MenuItemModel>(binding => binding
            .ItemDataBound((item, MenuItemModel) =>       {
                item.Text = MenuItemModel.Nom;
            })
            .Children(MenuItemModel => MenuItemModel.SousMenu));
    })
)

I whan to add more information provided in my MuniItemModel like (Url, group) than retrive it in my OnMenuSelect.
Any Suggestion?
Pierre
Top achievements
Rank 2
Iron
Iron
 answered on 08 Oct 2013
10 answers
1.2K+ views
I inserted the kendo.all-vsdoc.js into my project but I do not get any intellisense from VS2010. Any idea why?
Atzmon
Deej
Top achievements
Rank 1
 answered on 08 Oct 2013
4 answers
505 views
Setting template as part of the constructor of a ListView works fine:

this.list = new kendo.ui.ListView(listdiv.get(0), {
                                                            dataSource: this.dataSource,
                                                            selectable: true,
                                                            template: "<div>#:label#</div>"
                                                          } );

However, changing or setting the template after the creation of the ListView does not update/set the view:

this.list.options.template = '<div>xxxx #:label#</div>';

How can I force the list to use an updated/new template?
Kiril Nikolov
Telerik team
 answered on 08 Oct 2013
1 answer
198 views
Hi,
I m using kendo grid to .net web application. In there I used grid with inline editing.
It loads the data and when click edit button , it can edit. But when I click "Update " the its not pass the data to my controller.

Here is my grid.

 function BindGridPurchaseOrder(orderID) {

                        dataSource = new kendo.data.DataSource({
                            transport: {
                                read:  {
                                   url: "../api/Order/GetOrderItemByOrderID?orderID=" + orderID

                                },
                                update:{
                                   
                                   url: "../api/Order/SaveOrUpdateOrderItem",
                                   dataType: "json"
                                },
                                parameterMap: function(options, operation) {
                                    if (operation !== "read" && options.models) {
                                        return {models: kendo.stringify(options.models)};
                                    }
                                }
                            },
                            batch: true,
                            pageSize: 20,
                            schema: {
                                model: {
                                    id: "OrderItemID",
                                    fields: {
                                        OrderItemID: { editable: false, nullable: true },
                                        ProductName: {editable: false, validation: { required: true } },
                                        SellingPrice: {editable: false, type: "number", validation: { required: true, min: 1} },
                                        BuyingPrice: { type: "number",editable: isPreliminary},
                                       
                                        Quantity: {editable: false, type: "number", validation: { min: 0, required: true } }
                                    }
                                },
                                data: "Data",
                                total: "Count"
                            }
                        });

                    $("#PurchaseOrdersGrid").kendoGrid({
                        dataSource: dataSource,
                        pageable: true,
                        pageSize: 7,
                        serverPaging: true,
                        columns: [
                            { field: "OrderItemID", title: '<%= Resources.ResourceiChain.ID %>', width: 50 },
                            { field: "ProductName", title:'<%= Resources.ResourceiChain.ProductName %>'  },
                            { field: "Quantity", title:'<%= Resources.ResourceiChain.Quantity %>'  },
                            { field: "SellingPrice", title: '<%= Resources.ResourceiChain.SellingPrice %>' },
                            { field: "BuyingPrice", title: '<%= Resources.ResourceiChain.BuyingPrice %>' },
                             { title: "Action", command: [
                                    {
                                        id: "edit",
                                        name: "edit",
                                        click: OnRowSelect,
                                        template: "<a class='k-button k-grid-edit' href='' style='min-width:16px;'><span class='k-icon k-edit'></span></a>"
                                    },
                                    {
                                        id: "destroy",
                                        name: "destroy",
                                        click: OnRowDelete,
                                        template: "<a class='k-button k-grid-destroy' href='' style='min-width:16px;'><span class='k-icon k-destroy'></span></a>"
                                    }
                                 ]
                            },
                            
                            ],
                        editable: "inline"
                    });    
        }



Here is my server side code..
        [System.Web.Http.AcceptVerbs("GET", "POST")]
        [System.Web.Http.HttpGet]
        [ActionName("SaveOrUpdateOrderItem")]
        public OrderItemDTO SaveOrUpdateOrderItem(OrderItemDTO orderItemDTO)
        {
               return new OrderItemBS().SaveOrUpdateOrderItem(orderItemDTO.OrderItemID, orderItemDTO.OrderID, orderItemDTO.ProductID,  orderItemDTO.Quantity, orderItemDTO.CreatedBy, orderItemDTO.IsPurchaseOrderItem, buyingPrice);
        }


Vladimir Iliev
Telerik team
 answered on 08 Oct 2013
3 answers
194 views

Hi,

I have 2 datepicker controls. One datepicker is used to denote the start date and the other is used to denote the end date.

The start date should always be less than the end date. When the customer presses a button a validation message needs to be returned when the start date is greater than the end date.

How can I implement this?

Also, how can I add validation to ensure that the datepicker only allows customers to enter dates?

Thanks
Alexander Valchev
Telerik team
 answered on 08 Oct 2013
3 answers
208 views
Hello,

I have an app using kendo mobile, with several links to external videos (.mp4), coded like this:
<a href="#:VideoFile#" style='text-decoration: none'>
                    Link</a>

- it works fine in iPhone (opens quicktime).

In Android nothing happen on click.

Notes:
- when I open the same URL on chrome in android the video plays normaly.
- when I link/href to anything else than a video, the link works.

Does anyone had this problem before?

Thanks.
Steve
Telerik team
 answered on 08 Oct 2013
1 answer
116 views
Hello,

Have been through couple of demos which use html 5. Do you have samples (KENDO Mobile)  which use ASP.NET, Web API or Mvc?

Thank You
Uday
Sebastian
Telerik team
 answered on 08 Oct 2013
3 answers
118 views
I have a strange issue i put the new version of mobile 2013.2.918 and the drawer stop too work.
Even the example doesn't work and the online too.
Am i the only One?
Dario
Kiril Nikolov
Telerik team
 answered on 08 Oct 2013
3 answers
458 views
I using datasource to display some data from API(JSON data) in my kendo template. If i get JSON data as an array, its replacing the template and rendered properly into the template and created right data format. But if i get any single JSON data object(not an array format). It is not replacing the template. Is data source will  handle only array format of JSON. See the below code data sample with array and without array format.

Below JSON data its replacing properly into my kendo template.
[{"EmployeeId":"2","EmployeeCode":"ASD","EmployeeName":"ASD","Description":"","CreateDate":"9/13/2013 12:00:00 AM","StatusId":"4","IsActive":"True"}]

But if i get response format like below JSON data, It is not rendering to my kendo template
{"EmployeeId":"2","EmployeeCode":"ASD","EmployeeName":"ASD","Description":"","CreateDate":"9/13/2013 12:00:00 AM","StatusId":"4","IsActive":"True"}

My Kendo template view file

<script id="projectDetailsTemplate" type="text/x-kendo-template">
<h3 class="item-title">${EmployeeName}</h3>
</script>

My viewModel

getEmployeeDetail: function(id){
            var EmpData= new kendo.data.DataSource({
                transport: {
                    read: {
                        url: "http://127.0.0.1/api/index.php",
                        dataType: "json",
                        cache: false
                    }
                },
                schema: {
                    errors: "error"
                  },
                  error: function(e) {
                      utils.hideLoading();
                      alert("bad request");
                  }
             });
            return EmpData;
        }
Help me to load single json string data to my kendo template.
Alexander Valchev
Telerik team
 answered on 08 Oct 2013
1 answer
111 views
Hi,

I have negative values in y- axis so chart is rendering as shown in attached screen shot.
 How to render x- axis always at the bottom?


Thanks,
Prabhakar Manne
Iliana Dyankova
Telerik team
 answered on 08 Oct 2013
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
Chat
DateRangePicker
Dialog
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
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?