Telerik Forums
Kendo UI for jQuery Forum
5 answers
264 views
Hello,

I have a model containing the date field which is defined standalone and the Datasource which is using the model.
I am trying to format the dates in grid column, but I keep getting " /Date(1344636000000)/ " instead of the formatted date.
The sample : http://jsfiddle.net/xpista/wWsZD/3/

However - if I define the model inside the DataSource, the formatting is working as expected: http://jsfiddle.net/xpista/m4Tr4/

Is this a bug or am I missing something?

Thanks, Stefan
Alexander Valchev
Telerik team
 answered on 05 Nov 2012
1 answer
146 views
Dear fellow warriors,

I'm experimenting with the foreign key example with the aim to make the foreign key column, so that the user can toggle between the foreign key values and the foreign key texts. I couldn't find API-calls for such a thing so I tried this:

var foreignKeyGrid = $("#grid").data("kendoGrid");
delete foreignKeyGrid.columns[1].values;  //deletes the foreign key mappings from the "Category"-Column
foreignKeyGrid.refresh();

This doesn't have any effect, the grid still shows the category names instead of the category ids. Any ideas how I could achieve the desired behaviour? (next step would be to toggle back, i.e. show the category names again. Next step would be to connect all of this with a UI-Toggle-Switch)

BTW the refresh call isn't my preferred one for this problem, as it re-requests the data from the DataSource - this causes extra network traffic for remote data grids, is there an API-call for a simple client-side redraw?

Many thanks for your advice,
Thomas
Petur Subev
Telerik team
 answered on 05 Nov 2012
1 answer
233 views
In my view model I have a nullable decimal field that is not required, but if a value is entered, it must be within a specified range:

[Range(0.01, 1.00)]
public decimal? Percentile { get; set; }

If I use either of the following approaches in my view and don't enter any values into the field, the range rule triggers and prevents submission:

@Html.TextBoxFor(m => m.Percentile, new { @class = "k-textbox k-input" }) 
@Html.Kendo().NumericTextBoxFor(m => m.Percentile)

This is the HTML rendered by the @Html.TextBoxFor(...)

<input id="AllGuidelines_0__Percentile" class="k-textbox k-input" type="text" value="" name="AllGuidelines[0].Percentile" data-val-range-min="0.01" data-val-range-max="1" data-val-range="The field Percentile must be between 0.01 and 1." data-val-number="The field Starting Percentile must be a number." data-val="true">

I'm just wondering if I'm doing something wrong or is that the intended behavior?

Thanks

Rosen
Telerik team
 answered on 05 Nov 2012
6 answers
701 views
I need to create a grid that works more like the RadTreeList does, in that you have a grid, but you can expand and collaps rows by a hierarchical navigator.

Is this somehow possible to do using KendoGrid?    Should I use KendoTreeView instead?

Anyone have any sample code that can illustrate how to do this?

Preferably, it would be nice to be able to bind it to an xml structure like this:

<Data>
    <Employee>
        <Name>Mary</Name>
        <EmpType>Executive</EmpType>
        <Salary>65000</Salary>
        <Employee>
            <Name>Fred</Name>
            <EmpType>Manager</EmpType>
            <Salary>52000</Salary>
            <Employee>
                <Name>John</Name>
                <EmpType>Supervisor</EmpType>
                <Salary>37000</Salary>
            </Employee>
        </Employee>
    </Employee>
</Data>
Sebastian
Telerik team
 answered on 05 Nov 2012
0 answers
85 views
Hi,

I've a multi-lingual website, which uses date.

Ive a 
kendo.culture("@lang")

which allows me to get message/texts in the correct language.

But now I need to have the same specific date format in all language.(JJ/MM/AAAA, even with the "en" culture)

How can I do this?

Found myself the solution, there is a format property to fill on calendar creation
Julien
Top achievements
Rank 1
 asked on 05 Nov 2012
1 answer
79 views
Hi Guys,

we are using Kendo Date Picker, and now brazil is in a summer time. The problem is we changed our time and increased 1 hour at october 20th, and on this calendar we have now 2 days 20...all days ahead are wrong.

Could you help us and fix this feature?

Thank you in advance.
Rakuten Brasil
Georgi Krustev
Telerik team
 answered on 05 Nov 2012
2 answers
100 views
Hi all,

I use Razor to create a treeview. If I user Items.Add each element I can use checkboxes, else if i user Datasource I checkboxes not working. Please tell me any problem?

@(Html.Kendo().TreeView()
                                                .Name("treeview")
                                                .Events(events => events
                                                    .Select("onSelect")
                                                )
                                                .Checkboxes(checkboxes => checkboxes
                                                    .CheckChildren(true)
                                                )
                                                .DataTextField("InfoCategoryName")
                                                .DataSource(dataSource => dataSource
                                                    .Read(read => read
                                                        .Action("GetAllCategory", "Information")
                                                    )
                                                )
                                                
                                            )

Best regard,
Troy
Alex Gyoshev
Telerik team
 answered on 05 Nov 2012
0 answers
129 views
 Hi,
 I attached screen shot ,Plz find that .and let me know how to create vertial splitter, and what are the files i have to reffer .
Thanks to advance.

Anjireddy
Top achievements
Rank 1
 asked on 05 Nov 2012
2 answers
143 views
Hi,

Some body please help 
Have created WCF Restful service. table name is Table1
and Servicename created is Table1CollectionService

Have ID and Name as table1 fields.

i am trying to bind this table info to a kendo grid.
i donno what for this is not working.

<script>
     $(document).ready(function () {
         $("#grid").kendoGrid({
             dataSource: {
                 type: "json",
                 transport: {
                     read: { url: "http://localhost:52408/Table1CollectionService.svc/", contentType: "application/json; charset=utf-8" }
                 },
                 schema: {
                     model: {
                         fields: { Id: { type: "number" }, Name: { type: "string" }
                         }} },
                 error: function (e) {
                     debugger;
                     alert('error');
                 },
                 change: function (e) {
                     alert("Change");
                 },
                 requestStart: function (e) {
                     debugger;
                     alert("Request Start");
                 },
                 pageSize: 10,
                 serverPaging: true,
                 serverFiltering: true,
                 serverSorting: true
             },
           filterable: true,
             sortable: true,
             pageable: true,


             columns: [{
                 field: "Id"
             }, { field: "Name" }
                        ]
         });
     });
    </script>

i have added jsonbehaviour attribute on service class also.
but it is not working .please help me if u can 

Thanks and Regards
Victoria
Victoria
Top achievements
Rank 1
 answered on 05 Nov 2012
10 answers
3.9K+ views
I am using the following code in my view.

@Html.Kendo().DropDownListFor(x => x.PasswordStrength).BindTo(Model.AvailablePasswordStrengths).DataTextField("Text").DataValueField("Value").Value(Model.PasswordStrength.ToString())

Notice that I am settings the "value" of the drop down list. The outputed js doesn't have the initial selected value.

jQuery(function(){jQuery("#PasswordStrength").kendoDropDownList({dataSource:[{"Selected":false,"Text":"Blank","Value":"0"},{"Selected":false,"Text":"Very weak","Value":"1"},{"Selected":false,"Text":"Weak","Value":"2"},{"Selected":true,"Text":"Medium","Value":"3"},{"Selected":false,"Text":"Strong","Value":"4"},{"Selected":false,"Text":"Very strong","Value":"5"}],dataTextField:"Text",dataValueField:"Value"});});

EDIT: After looking with reflector, I found DropDownItemFactory and DropDownItemBuilder, and I couldn't find an usages of them. Also, It seems like the "Value" of the builder isn't being used either. I'm confused. I know this is beta, but beta implies "we are done, but needs more testing," and not "We are not done implementing classes but here is what we got so far.". This is a BETA product and not a preview. The two are different.
Mbanaso
Top achievements
Rank 1
 answered on 05 Nov 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
Iron
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
Iron
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?