Telerik Forums
Kendo UI for jQuery Forum
1 answer
155 views
I can find plot bands, but I cannot find how to plot lines.

I can also add a plotband to the valueAxis like this: 
valueAxis: {
       plotBands: [{
             from: 0.4,
             to: 0.4001,                               
             color: "red"
         }]
 }
However this requires me to add a from and a to. This doesn't exist. i just want a simple line plotted at a particular value.

Can anyone help? I have a link to Highcharts where they show an example of how they do it (addPlotLine): http://www.highcharts.com/studies/dynamic.htm 
Iliana Dyankova
Telerik team
 answered on 19 Sep 2012
0 answers
110 views
Hi,

We have a web user control with an input and a HTML select:

<input id="createSubTenant_Name" type="text" data-bind="value: SubTenantName" />
<select id="CreateSubTenant_Parent" data-bind="value: TenantId">
    <option></option>
</select>

The options will be added by JavaScript (text and value).
The binding with kendo.observable and kendo.bind in JavaScript:

var viewModel = kendo.observable({
    SubTenantId: "",
    SubTenantName: "",
    TenantId: ""
});

kendo.bind(window, viewModel);

The user has to fill the input box and select an entry. In the submit method, we will get the view model:

viewModel.toJSON();

And here is the problem. By default the first entry of the select is selected. If the user does not select another option of the select, the “TenantId” of the viewModel will be null. If the user selects another option of the select, the “TenantId” will be set in the viewModel perfectly.
Our actual work around:

var sel = document.getElementById('CreateSubTenant_Parent');
viewModel.TenantId = sel.options[sel.selectedIndex].value;

Almost the same problem appears with an input box. In another web user control, the user only has to type a name in input box. By typing enter the submit method will be called. In this case the cursor does not leave the input box and the same problem appears.

Is it a general problem? Can someone help?

Thanks.
Patrick
Top achievements
Rank 1
 asked on 19 Sep 2012
0 answers
140 views
my command don't run 
.Create(c=>c.Action("CreateNewEmployee", "HRM")) 
.Update(update => update.Action("Employee_Update", "HRM"))
        .Destroy(update => update.Action("Employee_Destroy", "HRM")) 
in controller but can run
.Read(read => read.Action("Employee_Read", "HRM")) 

@(Html.Kendo().Grid(Model)
    .Name("Grid")
    .Columns(columns =>
    {
        columns.Bound(p => p.EmpID).Visible(false);
        columns.Bound(p => p.Role);
        columns.Bound(p => p.Branch);
        columns.Bound(p => p.Name);
        columns.Bound(p => p.Address);
        columns.Bound(p => p.Username);
        columns.Bound(p => p.Status);
        columns.Command(c =>
        {
            c.Edit();
            c.Destroy();
        }).Width(250);
    })
    .Editable(editable =>
    {
        editable.Mode(GridEditMode.PopUp);
        editable.TemplateName("EmployeeEditor");
    })
    .Pageable()
    .Sortable()
    .Scrollable()
    .Filterable()
    .ToolBar(toolbar =>
    {
        toolbar.Create();
        })
    .DataSource(dataSource => dataSource
        .Ajax()
        .PageSize(10)
        .Events(events => events.Error("error_handler"))
        .Model(model => model.Id(p => p.EmpID))
        .Create(c=>c.Action("CreateNewEmployee", "HRM"))
        .Read(read => read.Action("Employee_Read", "HRM"))
        .Update(update => update.Action("Employee_Update", "HRM"))
        .Destroy(update => update.Action("Employee_Destroy", "HRM"))
    )
    .HtmlAttributes(new { style = "height:550px" })
)

Dechochai
Top achievements
Rank 1
 asked on 19 Sep 2012
1 answer
94 views
I have a column in my grid that I do not wish the user to be able to hide using the column menu.

How do I prevent the column from appearing in the grid's column show/hide menu?

Thanks,

Doug
Nikolay Rusev
Telerik team
 answered on 19 Sep 2012
3 answers
120 views
Hi
I m using Kendo UI control. I found some issues using them, so need clarification.

1. When dropdown is used inside Kendo Window then it is hidden. Please see below code
 @(Html.Kendo().Window()
     .Name("widget")
            .Title("widget Menu")
    .Content(@<text>
    @model List<Dashboard.Models.WidgetData>
    <div id="widgetMenuselection">
       @* @Html.Action("WidgetType", "WidgetType")*@
               @(Html.Kendo().DropDownList()
                .Name("Text")
        .DataTextField("Text")
        .DataValueField("Value")
        .AutoBind(true)
        .BindTo(new List<SelectListItem>() {
                new SelectListItem() {Text = "Filter/Menu",Value = "-1"},
                new SelectListItem() {Text = "Graph",Value = "1"},
                new SelectListItem() {Text = "Tabular",Value = "2"}
                })
        .Value("-1")
        .SelectedIndex(-1)
        .Events(e => e.Change("wdgtMenudrplist_change"))
    )
 </text>)
    )
2. I donot find any way to attach checkbox to tree view in Kendo. I m using Razor MVC 4, and my table structure has a seatinggroup table and seating table distinctly with seating group has many seats under it. So can i provide tree view individual values of group and seats.
Daniel
Telerik team
 answered on 19 Sep 2012
0 answers
69 views
Hi,

I need to exclude weekend days from the datepicker's list due to my client's needs, how can I do that?

Best regards,
Anton
Softcloud
Anton
Top achievements
Rank 1
 asked on 19 Sep 2012
1 answer
198 views
http://jsfiddle.net/U5tpr/6/

I have sevral problems with this script.

My first one is that the picker keeps closing when I change the date value.
The second is that when I pull down the time menu, it shows the entire date/time string.

Please help
Stephen
Top achievements
Rank 1
 answered on 19 Sep 2012
0 answers
351 views
Hi,
Does kendoGrid support merged cells?
Specifically, merging the column data if it is same in the successive rows.
By merging, one can choose not to show (or in a lighter color) the column data in a successive row if it is same as the previous row.

Example:
Column1  Column2 Column3  Column4  Column5
R1C1       R1C2      R1C3       R1C4      R1C5
R1C1       R2C2      R2C3       R2C4      R2C5
R2C1       R2C2      R2C3       R2C4      R2C5

Italicized row 2 column 1 cell R1C1 is a merged cell and it may not display the cell value when it is merged because its column value is same same as the previous row.

Please let me know if this can be done with kendoGrid.

Thanks.
B.Manohar
Manohar
Top achievements
Rank 1
 asked on 19 Sep 2012
0 answers
118 views
Hi 

I am new to Telerik Kendo UI. Can anyone guide me how to bind grid with dropdownlist column where the dropdownlist should always visible while initial step of binding with selecteditem. After completed the selection in dropdownlist from all row in the grid I need to submit the entire results to model.

Thanks


Selvamuthukumaran
Top achievements
Rank 1
 asked on 19 Sep 2012
4 answers
132 views
Can we use DataViz widgets within an ICENIUM Kendo app ?

I had a go at adding the sample provided here : http://docs.kendoui.com/howto/add-charts-and-graphs-to-an-application
into the default kendo app, but it seemed to break the mobile css.

If it is possible, perhaps you could provide some sample code.

Thanks
hayden
Top achievements
Rank 1
 answered on 18 Sep 2012
Narrow your results
Selected tags
Tags
Grid
General Discussions
Charts
Data Source
Scheduler
DropDownList
TreeView
MVVM
Editor
Window
Date/Time Pickers
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
Gauges
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
ScrollView
PivotGridV2
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
+? 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?