Telerik Forums
Kendo UI for jQuery Forum
3 answers
1.1K+ views
I'm having issues setting up validation on the dataSource's schema.model.fields object. I am following the documentation at: http://www.kendoui.com/documentation/framework/datasource/configuration.aspx as a guide.  It seems that the validation never fires.
 Below is the data source's schema property:
model: {
                id: "ID",
                fields: {
                    Name: {
                        editable: true,
                        nullable: true,
                        validation : {
                            required:true,
                            customRule: function(input){alert('bad data');}
                        }
                    }
                } 
I would expect that this would mark the field as required, and prevent the form from submitting and then also pop up an alert. 

I have created a jsfiddle with some sample code at:
http://jsfiddle.net/sholder/RxLWS/ 
any guidance on what I have wrong would be most appreciated.

Thanks,
Shane Holder
Rosen
Telerik team
 answered on 18 May 2012
3 answers
145 views
Hello,

I can see that data binding became broken after I update to Kendo UI v2012.1.515.
I have attached a test project for it.

Steps to reproduce:
- Enter "333" to the related field, click "Save". (all is fine and related field has been cleared)
- Enter "123" to the related field, click "Save". (A bug! Nothing happened, related field is not cleared)

I don't know why but it looks like a bug only with "123" value in related field.
It was working fine with previous version!

Vladimir
Rosen
Telerik team
 answered on 18 May 2012
0 answers
163 views
Hello:

I have a property in my CodeBehind that return JSON data:

public string EventTypeCount
{
    get
    {
        JavaScriptSerializer js = new JavaScriptSerializer();
        return js.Serialize((List<EventTypeCount>)obj);
    }
    set { ViewState["EventTypeCount"] = value; }
}

obj actually contains data and the serialization works ok, the problem is that I don't know how to tell the kendo ui chart to use this datasource. Right now I'm trying this the following, the dataEvent var actually recieves the Json String but I don't know how to tell the chart to understand that datasource. If I use a Handler that uses the transport property to make the request everything works ok, but I need this approach.

Thanks for any help.

Code:

function createChartEvents() {
                var dataEvent = '<%= EventTypeCount %>';
                $("#chartEvents").kendoChart({
                    theme: "metro",
                    dataSource: {
                        data: dataEvent,
                        dataType: "json"
                    },
                    title: {
                        text: "Estudios"
                    },
                    legend: {
                        position: "bottom"
                    },
                    seriesDefaults: {
                        type: "column",
                        labels: {
                            visible: true
                        }
                    },
                    series: [{
                        field: "CountMade",
                        name: "Eventos Finalizados"
                    }, {
                        field: "CountUnmade",
                        name: "Eventos Pendientes"
                    }, {
                        field: "CountCanceled",
                        name: "Eventos Cancelados"
                    }],
                    categoryAxis: {
                        field: "EventTypeName"
                    },
                    dataBound: onDataBound,
                });
            }
Felipe
Top achievements
Rank 1
 asked on 18 May 2012
0 answers
37 views
Hello guys:

I don't know if I can't see the option or if the site actually doesn't have it but, where is the forum option to search topics? Can you make it??

It is a hard task to search page for page to see if something has anything to do with what I'm looking for.

Thanks, and sorry... I know this shouldn't be here
Felipe
Top achievements
Rank 1
 asked on 18 May 2012
0 answers
59 views
When I add multiple windows to a page they are all created in the same spot. Is it possible to lay out the windows left to right ?
Volkan
Top achievements
Rank 1
 asked on 17 May 2012
0 answers
217 views
I need a grid with a Checkbox column to select/deselect multiple rows. I have tried the column template by doing the following
{ field: 'IsSelected', title: 'Select', type: "boolean", template: '<input class=selector type=checkbox />', width: '50px' }

But, how do I bind the event of checking the checkbox select/deselect the row? I also need the "Select All" checkbox in the header which would select all the rows.
Suresh
Top achievements
Rank 1
 asked on 17 May 2012
0 answers
156 views
Hi,

When binding to the grid change event, if I change any property on the data item using the set method, the grid selection no longer works. Please see http://jsfiddle.net/Z46Xc/1/ . Is this not the correct way to do this? In reality, the sub collection is bound to another grid and loaded on selection of parent row.

Thanks for your help.
Omar Beaconsfield
Top achievements
Rank 1
 asked on 17 May 2012
1 answer
277 views
hello

I have a datepicker and a grid that when I select a date from the datepicker take in a date field, the date picker to select the date
someone knows how to do that in the grid?
would like to modify the datasource.
currently taking data from a file filled with asp
and the date is the only field I want to take of the page.
regards!!
Ricardo
Top achievements
Rank 1
 answered on 17 May 2012
3 answers
255 views
I need an onLoaded event for the Kendo UI window widget. While the content loads asynchronously I want to display something like "Loading..." or a spinner.
Iliana Dyankova
Telerik team
 answered on 17 May 2012
0 answers
114 views
I am completely unable to find the script builder app since the user account area has been fuglified...

Whats the URL to it, or where can it be found?
sitefinitysteve
Top achievements
Rank 2
Iron
Iron
Veteran
 asked on 17 May 2012
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
Styling
ColorPicker
Pager
Chat
MultiColumnComboBox
Dialog
DateRangePicker
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Accessibility
Effects
Licensing
PivotGridV2
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
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?