Telerik Forums
Kendo UI for jQuery Forum
10 answers
209 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
189 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
270 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
340 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
320 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
708 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
3 answers
265 views
Greetings,

We are having difficulty getting the kendoui datepicker working under what we consider to be some fairly common use cases.   

Example 1:

Easily visible via the sample: http://demos.telerik.com/kendo-ui/web/datepicker/events.html

Consider a requirement where this field is optional, but if filled in must parse out and be a legitimate date.   Currently if I enter "asdfasdf" or even something as innocent as "25/5/2012" (consider a non-us user who is used to dd/mm/yyyy) then the changed event is never fired.   I thus have no opportunity to warn the user that the date they have entered is invalid.

Example 2:

Let's say I set a maximum date of todays date on the control.   Now when I click the calendar, it properly disallows selection of a future date.   However, what I can do is go in and type in any date I want.   If a date in the future is inputted, the control determines null as the value and again, since the initial value was null as well the change event is never raised, and there is no way to provide UI validation in an MVVM scenario.


Desired behavior
The easiest change here probably would be to simply give us an option to have the textbox get cleared out when the control loses focus if the date is null that way at least what the user sees in the control will match what the control is reporting as its' value.

A good example of this is the multiselect box.  If you type gyberish into it and tab out, it wipes out the invalid value.  Why does the datepicker need to retain its invalid data?

Otherwise, we need some way to be notified via event not only when the underlying date value has changed, but also when the text changes if we are to jump through these hoops ourselves (manually parse the text according to configured formats, clear out the value if needed, etc).
















Atlas
Top achievements
Rank 1
 answered on 08 Nov 2014
1 answer
337 views
Hi,
I need setup custom validation on grid fields dynamically,
because code processes many forms from database and
I know a set of columns only at runtime. I took Telerik's example
for checking and changed something a little bit (see index.zip) and
got the next results.
When I set name of the field statically ("ProductName") everything is OK.
When I try use in string concatenation gridColumns[i].field I get in console
message that variable is not defined. When I set fieldName = gridColumns[i].field
I don't  receive any message, I see custom validation on the column
(see kendoui-grid-custom-validator.jpg), but custom validation doesn't work.
Standard validation works (required: true).
Is it possible to use variables from closure in javascript? Or there is
another way to define it?
Ilya
Top achievements
Rank 1
 answered on 07 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
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
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
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?