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

My testing code:  http://trykendoui.telerik.com/ObaV

It's happened When I created new task, and I want to edit it,
but I think the Popup window is not edit-window, 
because it doesn't have the 'Delete' button.

When I clicked the 'Cancel' button, 
the task I created would be removed!

It doesn't happen if I set dataSource with transport.
Does any configuration I need to set?

Thanks for your help,
Ming
Alexander Popov
Telerik team
 answered on 25 Apr 2014
1 answer
194 views
There is problem with Cascading ComboBox in edit mode. When using for inserting new record – it’s working fine, allowing to choose City and then district in the city selected. When opening record for edit, then Child-ComboBoxFor is empty, although it has value assigned.
It seems that during initialization, Parent-ComboBoxFor reinitializing Child-ComboBoxFor and value is cleared. How to keep value during Edit?
I found some articles that similar issue was fixed in 2012 version and we are using latest version of Kendo UI for MVC.
Code sample is provided below.

Code for Parent-ComboBoxFor:

@(Html.Kendo().ComboBoxFor(model => model.CityId)
    .HtmlAttributes(new { id = Html.IdFor(m => m.CityId).ToString() })
    .DataTextField("CityName")
    .DataValueField("CityId")
    .Filter(FilterType.Contains)
    .DataSource(source =>
    {
        source.Read(read =>
            {
                read.Action(MVC.Object.ActionNames.Cities_Read, MVC.Object.Name);
            });
    })
)

Code for Child-ComboBoxFor:

@(Html.Kendo().ComboBoxFor(model => model.CityAreaId)
    .HtmlAttributes(new { id = Html.IdFor(m => m.CityAreaId).ToString() })
    .Placeholder("Choose area...")
    .DataTextField("Name")
    .DataValueField("Id")
    .Filter(FilterType.Contains)
    .DataSource(source =>
    {
        source.Read(read =>
        {
            read.Action(MVC.Object.ActionNames.GetCascadeCityAreas, MVC.Object.Name).Data("filterCityAreas");
        })
        .ServerFiltering(true);
    })
    .Enable(false)
    .AutoBind(false)
    .CascadeFrom(Html.IdFor(m => m.CityId).ToString())
)<script>
    function filterCityAreas() {
        return {
            cityId: $("#@Html.IdFor(m => m.CityId)").val(),
            cityAreasFilter: $("#@Html.IdFor(m => m.CityAreaId)").data("kendoComboBox").input.val()
        };
    }
</script>
Vladimir Iliev
Telerik team
 answered on 25 Apr 2014
1 answer
358 views
i have a list view and it is getting populated with remote data, the kendoPage with the exact same datasource comes
back as no items to display.

HTML
<div class="layout-section">
        <div id="layoutView"></div>
        <div id="pager" class="k-pager-wrap" ></div>
</div>
 
<script type="text/x-kendo-template" id="template">
        <div class="product">
                <img src="#= Layoutfilepath #" alt="#= LayoutName # Layout" />
                <h3>#=LayoutName# Layout</h3>
                <p>#:kendo.toString("Select Layout")#</p>
         </div>
</script>

Scripting

var layouts2 = new kendo.data.DataSource({
                    transport: {
                        read: {
                            url: "Default.aspx/GetLayouts",
                            contentType: "application/json; charset=utf-8",
                            type: "POST",
                            dataType: "json"
                        }
                    },
                    schema: {
                        data: "d"
                    },
                    pageSize: 1
                });
                 
                $("#layoutView").kendoListView({
                    dataSource: layouts2,
                    template: kendo.template($("#template").html()),
                    selectable: "single"
                });
 
                $("#pager").kendoPager({
                    dataSource: layouts2
                })


Any thoughts
Alexander Valchev
Telerik team
 answered on 25 Apr 2014
1 answer
104 views
Hi,

Please find the demo here 

http://jsfiddle.net/8tzgc/136/

Create/Update Doesn't fire in above Demo. Can any one you suggest.

Here is the error we get locally.

Thanks,
Chatrapathi Chennam
Rosen
Telerik team
 answered on 25 Apr 2014
4 answers
507 views
Hello,

I created a small SPA using Kendo web and the MVVM pattern, but i'm having problems getting validation to work.
So i have a view which binds to a viewmodel using kendo.bind(view, viewmodel).
and example of a domain object (client side) would be like this:
var User = kendo.data.Model.define({
    id: "id",
    fields: {       
        id: {
            editable: false,
            nullable: true
        },
        username: {
            type: "string",
            validation: {
                required: true
            },
            defaultValue: ""
        },
        password: {
            type: "string",
            validation: {
                required: true
            },
            defaultValue: ""
        }
    }
});

and my viewmodel:
var vmLogin = function () {
    var _userName = "";
    var _password = "";
 
    var _user = new User();
    
    var _submitLogin = function () {
    }
 
    var _init = function () {
    }
 
    return {
        Init: _init,
        User: _user,
        Submit: _submitLogin
    }
}

I'm using data-bind in my view to bind to my viewmodel.
Is it possible to apply a Kendo validator to my view using the rules from my Model ?

Thanks in advance.
Alexander Valchev
Telerik team
 answered on 25 Apr 2014
1 answer
153 views
See the attached image where there are two rows in the data set. One have 23 count and other having 0 count. When the pie chart is plotted and then clicked on the legend (that has 23 Count ) to deselect it the pie chart renders the 0 count in a weird way.

The expected behavior is that the Pie Chart is blank.
Iliana Dyankova
Telerik team
 answered on 25 Apr 2014
9 answers
869 views
Pretty simple issue. I can do this. I can see that the 2nd modal opened but it is behind the first modal. I tried by setting z-order but it didn't seem to have an effect.

Any solutions?
Don
Top achievements
Rank 1
 answered on 24 Apr 2014
2 answers
170 views
Is there a way to preserve the UID of ObservableObject's in an ObsrevableArray passed to a TreeView's dataSource?

I want to have a TreeView and ListView that share some observables. This way changing one would change the other too. It works if I pass the same ObservableArray in and bind ListView second, but I want them to have slightly different subsets.

I have a jsfiddle demonstrating the issue: http://jsfiddle.net/zNLNy/1187/

Thanks
Danny
Danny Fritz
Top achievements
Rank 1
 answered on 24 Apr 2014
1 answer
152 views
The first image is a dragging node image. I dragged the 'furniture'
parent node inside the 'storage' parent node. This dragged
successfully(see second image).

I don't want to allow this to happen. How can I prevent it?

Thanks.
Alexander Popov
Telerik team
 answered on 24 Apr 2014
2 answers
401 views
Loading the page, all the user sees are the controls for the query criteria - some date ranges, some drop downs, some text boxes, some checkboxes, etc - and a big search button.  When they click on the search button, I create the Kendo grid and in the dataSource/transport/read, I get the criteria from the query criteria controls (in dataSource/transport/read/data) and send it to the server to get the grid of data.

Currently, whenever the user clicks on the search button, the same process is taking place, but that doesn't seem correct to me.  Should I be creating the grid each time?  Should I try to remove the grid from the DOM, if it exists, whenever I create the grid?  Why not just force a reload of the grid, and pull the data from the query criteria again?

What is the recommended Kendo practice for this?  Should I be calling $(selector).kendoGrid({...}); whenever the user clicks the search button?  If so, is there something I need to do to clean up the DOM before the call to kendoGrid if the grid already exists?

And does this apply to all Kendo widgets?

Thanks in advance.
Daniel
Telerik team
 answered on 24 Apr 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
Drag and Drop
Application
Map
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
DropDownTree
ListBox
PDFViewer
Sparkline
ActionSheet
TileLayout
PopOver (Mobile)
TreeMap
ButtonGroup
ColorPicker
Pager
Styling
Chat
MultiColumnComboBox
Dialog
DateRangePicker
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Accessibility
Effects
PivotGridV2
Licensing
ScrollView
Switch
TextArea
BulletChart
QRCode
ResponsivePanel
Wizard
CheckBoxGroup
Localization
Barcode
Breadcrumb
Collapsible
MultiViewCalendar
Touch
RadioButton
Stepper
Card
ExpansionPanel
Rating
RadioGroup
Badge
Captcha
Heatmap
AppBar
Loader
Security
TaskBoard
Popover
DockManager
TimePicker
FloatingActionButton
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
StockChart
ContextMenu
DateTimePicker
RadialGauge
ArcGauge
AICodingAssistant
SmartPasteButton
PromptBox
SegmentedControl
LLM Kit
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?