Telerik Forums
Kendo UI for jQuery Forum
1 answer
93 views
I've set the culture of the datetimepicker to "nl-NL", but when I open the datepicker popup everything looks correct except for the 'today' date in the bottom of the popup. This one is still set to "en-US". I've set the kendo culture in the document onload and I've added the culture file to my project. Is there anything I've forgot to set, or could this be a bug in the datetimepicker? 
Georgi Krustev
Telerik team
 answered on 10 Nov 2014
1 answer
223 views
Hello,

   I have one function that return hierarchical dataset.
   This dataset is set as datasource for Autocomplete control, which uses just parent portion of data. 
   Goal:  do not make another request to server for data, after selection of item in Autocomplete   _copy_ selected dataitem (with children) from autocomplete dataset to    treeview - i.e make it treview's dataset.  It is Ok also to copy into treeview not just selected item  but entire set returned for Autocomplete after search.
So far no luck...
   
   Code:


   @(Html.Kendo().AutoComplete()
                      .Name("findvendor")
                      .DataTextField("company_name")
                      .Filter("contains")
                      .Placeholder("Find Vendor...")
                      .MinLength(3)
                      .DataSource(source => {
                                  source.Read(read =>{read.Action("search_vendors", "content")
                                                          .Data("function () {return {text: $('#findvendor').val() };}");}
                                                           )
                                             
                          .ServerFiltering(true);})
                      .Events(e=> e.Select("content_addvendor_vendor_found"))      
                      .Deferred() 
                )



Treeview (which suppose to be filled with Autocomplete selected item Parent and its children):


 @(Html.Kendo().TreeView().Deferred() 
                            .Events(ev => ev.Select("content_addvendor_chosen"))
                            .HtmlAttributes(new { @style = "color:black;overflow: hidden;"})
                            .Name("contactstree")
                            .BindTo(new List<ca.Models.pcm_vendor>(),(Kendo.Mvc.UI.Fluent.NavigationBindingFactory<TreeViewItem> mappings) =>
                            {
                                mappings.For<ca.Models.pcm_vendor>(bound => bound.ItemDataBound((node, vendor) =>
                                {

                                    node.Text = vendor.abbreviation  + ':' + vendor.company_name;
                                    node.Id = vendor.abbreviation;
                                    node.SpriteCssClasses = "cus-sort-quantity"; 
                                     
                                })
                                .Children(e => e.contacts));
                                mappings.For<ca.Models.pcm_vendor_contact>(binding => binding.ItemDataBound((item, contact) =>
                                {
                                    item.Text = contact.name;
                                    item.Id = '+'+contact.initials;
                                    item.SpriteCssClasses = "cus-page-white-tux"; 
                                    
                                }));
                            })
                        )


(since I use deferred load, this script placed at the top of the page)
<script>

    function content_addvendor_vendor_found(e)
    {

        var new_ds = new kendo.data.HierarchicalDataSource({ data:$("#findvendor").data("kendoAutoComplete").dataSource.data())});
        new_ds.read();
        $("#contactstree").data("kendoTreeView").setDataSource(new_ds);
        //$("#contactstree").kendoTreeView({ dataSource: new_ds }).data("kendoTreeView");
        
    }

    function content_addvendor_chosen(e) {

        alert('Node selected');
        
    }

    

</script>


Thank you!!!













Kiril Nikolov
Telerik team
 answered on 10 Nov 2014
10 answers
212 views
var s = uiStateService.Get(stateKey);
if (s != null) {
    g.dataSource.pageSize(s.pageSize);
    g.dataSource.sort(s.sort);
    g.dataSource.filter(s.filter);
    g.dataSource.page(s.page);
}
 
internal.state = 2;
g.dataSource.fetch(function () {
    // warning kendo bug - has to make a request then I update the page on the callback
    g.dataSource.page(s.page);
});



first fetch()
http://localhost:7073/api/core/mymodel?sort=&page=1&pageSize=5&group=&filter=Name~startswith~%27c%27&_=1397664616933

second fetch() to to change of page in callback
http://localhost:7073/api/core/mymodel?sort=&page=2&pageSize=5&group=&filter=Name~startswith~%27c%27&_=1397664616934


why doesn't the correct page # get sent on the first request along with the other parameters?

a little clunky to make 2 requests.
Rosen
Telerik team
 answered on 10 Nov 2014
3 answers
1.3K+ views
Hi,

Is it possible to prevent deselect of a selected grid row (Control key + Click). I want selection to work on click but don't want my users to be able to deselect the row.

Regards,
Sarvesh
Dimiter Madjarov
Telerik team
 answered on 10 Nov 2014
1 answer
192 views
Hi,

I am typically new to kendo UI nd i was trying the scheduler when i hit upon this roadbloack. Can i change the column names to any names instead of showing five or 7 dates. I need to schedule for individual person. Not for individual dates. Any help on this. please help soon on this.


Regards,
Ajith Kumar

Georgi Krustev
Telerik team
 answered on 10 Nov 2014
2 answers
278 views
Hi,
I'm trying to use the StockChart to build something similar to the yahoo finance stock charts.
http://finance.yahoo.com/echarts?s=AAPL+Interactive#

When I load the chart, I would like to display the current day's intraday price series - with 1 minute granularity. The stock chart takes a long time to render. I'm trying to understand how many data points the stock chart is capable of handling. It looks like data between 9 - 3 PM at one minute intervals is something it cannot handle. I don't think server virtualization helps, since I would like to chart the current day when I load the chart.

I have a web page with a kendo grid and stock chart. The stock chart is refreshed on selecting a row in the grid. While the stock chart data source is being refreshed and the chart is being rendered, the entire page is unresponsive. I cannot even scroll through the rows in the grid.

Any feedback on how much data the chart is designed to handle woudl be very helpful.

Thanks,
T. Tsonev
Telerik team
 answered on 10 Nov 2014
1 answer
351 views
I have a single window that I reuse from my webpage. User can click various buttons to display a modal sublist.  The button clicks are mapped to a javascript function.

In that function, I make a call to the windows refresh method giving it a new url. Then I change the title for the window and finally I call open().

It works but not great.  The first time, it works fine. But then I close the window, and I click on a different button. The window opens again, but it's showing the content from the first time, and then a second later, it finally updates to the new content.

Any solutions?
Indramani
Top achievements
Rank 1
 answered on 09 Nov 2014
5 answers
1.4K+ views
I have a field called "Genre" in the datasource  of string type  is  valid JSON.

What I use JSON.parse with the  Genre data the object created is always null.  If i explicitly create a string with the same string values that are in the Genre field and apply JSON.parse the object is valid and I can access the array. Otherwise if JSON.parse is given the "Genre" data string from the datasource the JSON object has null propeties.   

<script type="text/x-kendo-template" id="Genretemplate"><br>Genre is of type : #: jQuery.type(Genre) #<br>Genre field value : #: Genre #<br># var testGenre = '[{"id": "22","genre": "punk"}]';#<br># var myobj =JSON.parse(testGenre); #<br>Obj is of type : #: jQuery.type(myobj) #<br>#: myobj[0].genre#<br></script>
 Produces this output 

Genre is of type : string
Genre field value : [{"id":"22","genre":"punk"}]
Obj is of type : array
punk

But if I use this in the template above:

# var myobj =JSON.parse(Genre); #

I get a error :

Cannot read property '0'  of null

I have tried setting the type of Genre in the datasource to 'string' and to 'object' and also leaving it blank, but same result.



   




Alex
Top achievements
Rank 1
 answered on 08 Nov 2014
2 answers
329 views
hi,
i wish to validate the contents of the datetime picker to ensure the date they selected is older than 18 years.. i.e for a date of birth, ensure the user is over 18 years old.
how do i add this validation layer to it? using the kendovalidator, it performs the validation on clicking the calender button which obviously wont work because the validated value is empty (or the previous value)

thanks
Atlas
Top achievements
Rank 1
 answered on 08 Nov 2014
4 answers
719 views
Unless I misunderstand the purpose of the datepicker range selection demo, it appears it does not work as expected.

I select a start date of say 1 month from today. Then I go into the end date and I am able to select a date earlier than the start date.

Can someone confirm this as a bug or just my misunderstanding of the purpose of that demo?

Also I noticed the date picker doesn't appear to care if I enter bogus date values in the input box like 14/01/2011 which is not valid for MM/DD/YYYY format since 14 is not a valid month.

Thanks for your feedback. I am excited about kendoUI but hesitant that there are a lot of potential bugs remaining.
-Steve
Atlas
Top achievements
Rank 1
 answered on 08 Nov 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
Drag and Drop
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
ListBox
DropDownTree
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
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?