Telerik Forums
Kendo UI for jQuery Forum
4 answers
140 views
Hi,

We're having some strange problems when filtering a Data Source used on a chart, AFTER changing the series type.

Here's a link reproducing the issue:
http://trykendoui.telerik.com/uloR

After the timeout functions, the chart should be columns, right?
Are we doing something wrong?

Thanks in advance.
Iliana Dyankova
Telerik team
 answered on 07 May 2014
3 answers
438 views
Observable objects (models) are a really good piece of software. I don't know if I'm missing something, but maybe they lack something in functionalities...
I try to explain it with an example.
Let's suppose I want to insert/edit a complex (db) object. I have a controller that initializes a new instance of a (ASP.NET MVC) ViewModel object, passing it to the View, and sending the resulting HTML to the client.
In the client, I want to use the good (Telerik) MVVM support (I find very useful its services) so I initialize a local js object with something like:

kendo.init(document.body);
model = @(Html.Raw(new JavaScriptSerializer().Serialize(Model)));
vm = kendo.observable(model);
kendo.bind(document.body, vm);

That means that starting with my original C# object I create an equivalent js (observable) object that contains the same values, that I can use to bind local controls to it (examples for this are good enough in the site).

The user edits data, writes what he wants, and then, at last, needs to send these data to the server.
I know that I can do something like this:

var o = vm.toJSON();

$.post({
    url: '@(Url.Action("Action", "Controller"))',
    type: 'POST',
    contentType: 'application/json; charset=utf-8',
    data: JSON.stringify(o),
    success: function (response) {
        alert('OK');
    },
    error: function (e) {
        alert('KO');
    }
});

In this way, I can have on the server (letting infrastructure recreating it) the (C#) ViewModel, so it's really that easy to use that data: it's an instance of the ViewModel I sent to the View, so MVVM support is totally transparent (and this is a wonderful advantage).
The problem is: this is a post, so there is not a page refresh: specifically, I cannot use the ModelState support to show errors...
In the server I have something like:

if (<something wrong>)
    ModelState.AddModelError("Field", "Bla Bla");

but to let ASP.NET MVC infrastructure handle this correctly, I would have to submit the 'normal' form: even in that case, what I would like to submit, as data, would be the serialized version of the MVVM observable object, and not the form fields (maybe I have much more information in the object, than what I display/edit with controls...). Without this support, I don't know if the whole infrastructure is really usable, so I think there must be a key I didn't find...

Anyone ever thought about this? What am I missing?

Thanks as always in advance for your wonderful support.
Andrea Bioli

Petur Subev
Telerik team
 answered on 07 May 2014
1 answer
73 views
I'm using the multiselect in a pretty basic scenario: simple string list to choose from. I have some custom script that allows me to add new items on the fly and part of that script keeps the list open as the user types. However, I am noticing that when I call the open method while the list is already open, the list then closes. How can I prevent this behavior or at least determine if the list is already open before calling the method?
Georgi Krustev
Telerik team
 answered on 07 May 2014
7 answers
159 views
Hello,

I am beta testing my app and they told me that they didn't realize there was a menu.

So i would like to partially open it and the hide it very quickly so that the notice their positions.

Is there a way to do it with the drawers methods ?

Many Thanks
Kiril Nikolov
Telerik team
 answered on 07 May 2014
1 answer
49 views
The kendo grid pager does not have circles (like IE 9 shows), it has squares.

Are there any known polyfills to use to accomplish circles in IE8 standards?

Thanks
Kiril Nikolov
Telerik team
 answered on 07 May 2014
1 answer
122 views
I'm trying to use various Kendo Controls to make a TreeView node editable. I'm finding that the TreeView seems to be eating the focus of any controls I put in the TreeView Node template.

In this JSFiddle you can click on the title and a numeric editor pops up, but the numeric editor is neither focusable or clickable.
http://jsfiddle.net/zNLNy/1209/
Alex Gyoshev
Telerik team
 answered on 07 May 2014
1 answer
167 views
I am using MVC UI, draggable and resizable Kendo Scheduler and I am having trouble implementing two of the client’s requirements.

1.    
The user has an event from 8:31 to 9:30. He is moving the end of the event to 9:00. He is expecting to change the event interval to 8:31 – 9:00. However, his action is ignored by the scheduler control because the event duration is less than 30 minutes.
 
2.
The user has an event from 8:31 to 10:01. He is moving it so that the start of the event is on 8:00. He expects that the new event  interval will be from 8:00 to 9:30. However, the control is setting the interval to be from 8:01 to 9:31.


Is there any way to cover these two scenarios with Kendo Scheduler?

Thank you in advance!
Rosen
Telerik team
 answered on 07 May 2014
1 answer
102 views
Issue facing while using data-bind option in Kendo UI and find below the issues,

1. Not able to do the data binding, for example :  looking for question & answer mapping using the Kendo UI and to populate in model.
2. Is there any possibility of dynamic generate for parent and child list of question using KendoUI & map answers for the corresponding questions.

I have tried using the kendo grid for the Q & A form.

Snippet
 @(Html.Kendo().Grid<Contact>()
                                .Name("Grid1")
                                  .Columns(columns =>
                                {
                                 
                                    columns.Bound(c => c.question).Title("quest").Width("8%").HtmlAttributes(new { @class = "ob-left" }).ClientTemplate("<input id='questionid' value='questionid'  style='width: 80px;'>");
                                    columns.Bound(c => c.answer).Title("answer").Width("13%").HtmlAttributes(new { @class = "ob-left" }).ClientTemplate("<input value='' "class='' style='width: 140px;'>");
                               
                                }
                                )
                                .Events(ev => ev.DataBound("onDataBound"))
                                .Sortable()
                                .Editable(editable => editable.Mode(GridEditMode.InCell))
                                .DataSource(dataSource => dataSource
                                    .Ajax()                                  
                                    .Batch(false)
                                    .ServerOperation(true)
                                    .Read(read => read.Action("GetAllQues", "Ques"))                                   
                               )

Pls do the needful.
Alexander Popov
Telerik team
 answered on 07 May 2014
1 answer
94 views
Hi,

I have a simple view:
@model RC.RMT.Data.ViewModels.MessageViewModel
@using Kendo.Mvc.UI
@using (Html.BeginForm("_CreateMessage", "Message", FormMethod.Post, new { id = "_CreateMessage" }))
{
<fieldset>
<div class="editor-field">
@(Html.Kendo().EditorFor(item => item.Body).Encode(false))
@Html.ValidationMessageFor(item => item.Body)
</div>
</fieldset>

and a simple model:
[DataType(DataType.Html)]
 [AllowHtml]
public string Body{ get; set; }

the editor displays fine but it is readonly.

Please Help

kwilson@peakrc.com
Alexander Popov
Telerik team
 answered on 07 May 2014
1 answer
133 views
Hi, 

I would like to ask about multiple sortable features in Sortable Component. 
I need sortable more than one item at one time between 2 list. 

I can use "filter" for specify sortable elements. But at this case a can only added them only to end of another list.

$('.draggable-wrap').kendoSortable({
        filter: "li",
        cursor: "move",
        placeholder: placeholder,
        hint: hint,
        start : function(e) {
        },
        end: function(e) {           
 
        },
        connectWith: $(".draggable-wrap")           
});

Can you show me right way to resolve my problem?
May be from Sortable component I can't decide my task and I need to us Draggable component? 

Alexander Valchev
Telerik team
 answered on 07 May 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
Bronze
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
Bronze
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?