Telerik Forums
Kendo UI for jQuery Forum
1 answer
422 views
Hello,

I have a simple datasource with the following schema:
schema: {
                data: "Items",
                total: "Count",
                model: {
                    Id: { type: "number" },
                    Name: { type: "string" },
                }
            }


I use the datasource for a dropdown.
When i select a value and programatically check the $("#CountyId").data('kendoDropDownList').value() I get the correct id (an int value)

Because I use the dropdown in a cascading scenario i need to transform the Id field on the model in a CountyId.
So after reading the documentation i decided to transform my schema into:

schema: {
                data: "Items",
                total: "Count",
                model: {
                    CountyId: { type: "number", from: 'Id' },
                    Name: { type: "string" },
                }
            }


Yet, now when I check the selected value: $("#CountyId").data('kendoDropDownList').value() I get an [object Object]

Please tell me what I am doing wrong.

Thank you


Alexander Popov
Telerik team
 answered on 24 Feb 2014
1 answer
106 views
Hi,

I wondered if it possible to create a 100% stacked columns? Like the image.

Regards.
Iliana Dyankova
Telerik team
 answered on 24 Feb 2014
3 answers
150 views
Hi there

I want my area chart to have a solid line following the data points - so it LOOKS like both a line chart and area chart plotting the same data, except I only want to use one data series and style it up.   Is it possible?

See attached screenshot - I'm struggling to put it into words!

Bonus question if I may - is it possible to add the second border to the chart as in the image?  I can control the plotArea main border but can't see how to add a second border.
Michaël
Top achievements
Rank 1
 answered on 23 Feb 2014
0 answers
130 views
I have a couple of issues when I place kendo widgets inside of a partial view.

1. If I add events to my grid, the partial view will fail to load, however without grid events enabled, the partial view will load just fine.  If I place the EXACT SAME grid in a regular view WITH events, the page loads/populates without issue.  Here is the grid:

@(Html.Kendo().Grid<MyApp.Models.MyModel>()
.Name("MyGrid")
.Columns(columns =>
{
columns.Bound(c => c.Id);
columns.Bound(c => c.Name);
columns.Bound(c => c.Description);
columns.Bound(c => c.RootSite);
})
.Pageable()
.Sortable()
.Filterable()
.Selectable(selectable => selectable
.Mode(GridSelectionMode.Single)
.Type(GridSelectionType.Row))
.Events(events => events.Change("onChange"))
.DataSource(dataSource => dataSource
.Ajax()
.PageSize(20)
.Model(model => model.Id(c => c.Id))
.Read(read => read.Action("Read", "MyController")))
)

2. Using the kendo splitter example, if I place the splitter from the example in a partial view, all panels are collapsed, even if Collapsible(false) is added to the slider.  As with my grid (see above), if I place the splitter example in a regular view, it works fine.

I really need some help on this issue, as it is preventing me from moving forward with my project. 

Any help will be very much appreciated!

Barry Burton
Top achievements
Rank 1
 asked on 22 Feb 2014
14 answers
1.7K+ views
I have a check box template made that looks something like this
<script type="text/x-kendo-template" id="CheckboxTemplate">
   <input type="checkbox" name="#= text #" value="#= value #" ${selected ?"checked" : "" }/>
   <span> #= text # </span>
</script>

I then have a dropdownlist which uses that template which looks like this, the kendoCustomDropDownList is something I made so that the drop down would not close when checking things in the dropdownlist.
var data = [
      { text: "test1", value: "1", selected: false },
      { text: "test2", value: "2", selected: false },
      { text: "test3", value: "3", selected: true },
      { text: "test4", value: "4", selected: false }
      ];
                 
       $("#dropDownList").kendoCustomDropDownList({
           dataTextField: "text",
           dataValueField: "value",
           template: $("#scriptTemplate").html(),
           dataSource: data,
           placeholder: "Select..."
       });
 
       var ddl = $("#dropDownList").data("kendoCustomDropDownList");

What I now need to do is make it so that when more than one checkbox is checked the text that displays in the dropdown should be multiple... . I'm having trouble accessing the selected field in the data object. I'm not sure how to approach this any help would be appreciated.
David
Top achievements
Rank 1
 answered on 22 Feb 2014
1 answer
243 views
Hi,

I am new to KENDO UI controls . I want to group two columns next to each other in kendo UI grid with a outline border and a background colour to those two grid columns so to differentiate two columns from other columns to make it as distinguishable from other columns.

$("#divPhaseGrid").kendoGrid({

            filterable: true,

             resizable: true,
            pageable: true
            , sortable: true
            , silectable: true
            , selectable: true
            , dataSource: { data: data, pageSize: 10 },
            columns: [
            { field: "PhaseTypeName", title: "Phase" ,width: "65px" }
            , { field: "PROJECTMANAGER", title: "Owner",width: "65px" }
            , { field: "PhaseStartDate", title: " Phase Start Date" ,width: "100px"}
            , { field: "PhaseStartDateActual", title: "Phase Actual Start Date" ,width: "100px"}
            , { field: "StatusName", title: "Status",width: "110px", attributes: { style: "background-color:#=StatusColorHEX#;" } }
            , { title: "", template: ' <a class="k-button" onclick="openPhaseform(#=PhaseID#);" style="min-width:25px;" ><span class="k-icon k-i-pencil"></span></a> ', width: "50px" }
              ]
           
            });

For Example- I  want to display some outline borders and background colours to PhaseStartdate and PhaseStartDateAtual columns to distinguish from other columns in the grid.

Please provide some pointers or sample links to achieve this.

Regards,
Subh
Iliana Dyankova
Telerik team
 answered on 21 Feb 2014
3 answers
549 views
I'm new to Kendo UI and in the process of evaluating it.

In the process of learning KendoUI, I tried the demo of DropDownList.
But when I duplicate the demo's HTML on my ASP.NET MVC view, I couldn't get the arrow to how up.

Following the Demo, I made sure that I have the CSS and JS referenced in the demo HTML.

<link href="styles/kendo.common.min.css" rel="stylesheet" />
<link href="styles/kendo.default.min.css" rel="stylesheet" />
<script src="js/jquery.min.js"></script>
<script src="js/kendo.all.min.js"></script>

But I still can not get the arrow to appear.
Am I still missing something?




Dimiter Madjarov
Telerik team
 answered on 21 Feb 2014
3 answers
442 views
Hi Team,

 We need to implment Custom column chooser.

Example: Column chooser would be a popup where user will select the columns which are required

not able to understand how to start.

Technology : MVC 3
                      Kendo Grid
this is the way we are using right now:

Html.Kendo().Grid(Model) // Bind the grid to the Model property of the view
        .Name("Grid")
        .Columns(columns =>
{
columns.Bound(p => p.ProductID); //Create a column bound to the "ProductID" property
columns.Bound(p => p.ProductName); //Create a column bound to the "ProductName" property
columns.Bound(p => p.UnitPrice); //Create a column bound to the "UnitPrice" property
columns.Bound(p => p.UnitsInStock);//Create a column bound to the "UnitsInStock" property
})

Dimiter Madjarov
Telerik team
 answered on 21 Feb 2014
6 answers
256 views
I have a corner case.  Here are the facts:
* I have a view that is mostly a simple form with input fields of: radio and text
* Native scrolling is set to true on the view  (..because of scrolling issues when native scroll is off - http://docs.telerik.com/kendo-ui/getting-started/mobile/native-scrolling ).
* The view contains a header and footer
* The first 3 input field are a grouped radio button selector.
* Selecting/changing the radio button option works on the emulator and most devices : iPhone, iPad, Android: HTC One
 
THE PROBLEM: On Samsung S3 and S4  when selecting an unselected radio button the row flash and you see a checkbox quickly but the selector does not change to that row. However if you click on the view and scroll down even 1 pixel selecting a radio button now works again.  If you scroll back to top the radio buttons do not work again. 

I tried progamatically moving the content section down after loading in all the form data but that does not fix it like I hoped.

Any suggestions - I am all ears.  This is the last issue I have before submitting it to the Google store.
Kiril Nikolov
Telerik team
 answered on 21 Feb 2014
2 answers
135 views
Hello Telerik-Team,

i have a problem with DropDownList in Internet Explorer 9,10 and 11. When I use this template:

<div style="display:table-cell;width:auto;"><div id="${ data.Periode}">${ data.Periode}</div></div><div style="display:table-cell;width:auto;"><div id="${ data.Bezeichnung}">${ data.Bezeichnung}</div></div>

when initializing the DropDownList, the Popup is closed when i click into the scrollbar.

When i remove the template description, everything works fine.

Here's my init:

.kendoDropDownList({
                dataTextField: "Periode",
                dataValueField: "Periode",
                dataSource: dataSource,
                template: "<div style="display:table-cell;width:auto;"><div id="${ data.Periode}">${ data.Periode}</div></div><div style="display:table-cell;width:auto;"><div id="${ data.Bezeichnung}">${ data.Bezeichnung}</div></div>",
                optionLabel: defaultEntry 
            });

Thank you very much!


Antje
Top achievements
Rank 1
 answered on 21 Feb 2014
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?