Telerik Forums
Kendo UI for jQuery Forum
1 answer
147 views
I have a DropDownList in a Grid and when I change the selection the row/dataitem is not dirty. The cause seems to be that the selection does not update the datasource maybe.
Alexander Valchev
Telerik team
 answered on 24 Jun 2014
2 answers
495 views
We're using the kendo.angular integration. Angular cell templates have been working well, here's an example of what we've been doing:

<a href="/\#/accounts/{{account.id}}/users/{{dataItem.id}}/edit">Edit</a>

We're now trying to use an Angular row template, but we can't see how to access the row specific data. {{dataItem.id}} is empty. How can we access the row specific data with an Angular template? 

Here are my environment details:

OS: OS X 10.9.3
Browser: Chrome 35.0.1916.114
jQuery: 2.1.1
KendoUI: 2014.1.528

Any help would be appreciated!
Eric
Top achievements
Rank 1
 answered on 24 Jun 2014
2 answers
494 views

Hi, my name is Shigemi and I'm writing this on behalf of Adam.

I'm trying to find a way to prevent script injection and I took a short video clip to explain it:

    https://www.youtube.com/watch?v=LHwr5XJl59w

Please let me know if there is a built-in function (or plan to add one) that can sanitize user input.
If not, an advise on finding a suitable HTML sanitizer would be appreciated.

Thank you
Shigemi

Adam
Top achievements
Rank 1
 answered on 24 Jun 2014
1 answer
205 views
I am using a kendo hierarchy grid in a rails project the gird has 3 levels.  I am also using a tab strip but the tab strip is not connected to the grid at all.  Basically what I am doing is each time a tab is clicked I am reloading the grid with different ids in the loadGoalTable function.  The first tab loads gird fine and the hierarchy grid is working correctly.  But when I click the second tab the loadGoalTable function is triggered with new ids but the the top level of the grid will not expand.  The ids are changing and the new data is getting read in but the rows of the grid will not expand.  I have tried manually refreshing the grid using .read() but that does not work either.  Also I am not getting any errors.  I am really stuck this and can not figure out the problem.  Any help would be really appreciated.  Below is a gist to the code.

https://gist.github.com/sdanko11/fb2e92a823afa69d1d7f
Alexander Valchev
Telerik team
 answered on 24 Jun 2014
1 answer
65 views
Hi,

I have bought the latest KENDO UI Mobile to build an application, and I am building the application with phonegap.
The app looks well with browsers of our PC, however after we build it with Phonegap, and deploy it to the iphone device, there will be a unexpected bottom-margin at the bottom of the app, and also the whole view seems move a little bit upper to the top bounder of the device.

As i know that it's very popular to use KENDO UI to build hybrid app these days, there must be someone run into the same issue.
Any suggestions?

Thanks,
Qiu,Juan
Kiril Nikolov
Telerik team
 answered on 24 Jun 2014
1 answer
185 views
I've been having several problems the last few days when it comes to paging data from a grid.  I have a webform that when the user submits goes to the controller where I am calling a stored procedure from a database and passing it 2 parameters.  The stored proc then returns several columns and hundreds of rows back.  This is then passed into a LINQ in my controller that parses out the information based on certain attributes the user selected.  I then pass this information into a view.  When the view is released I am getting a full grid with all the information along with pages to tab through.  That's where the issue is.  The minute I click on a page it refreshes the page and now the grid has no information whatsoever on it. Here is the code:

Controller:
        public ActionResult Results( All the webform parameters are being passed in here )
​            var model = db.StoredProcedure(startDate, endDate)
    //LINQ query is here
                        .Take(1000)
                        .Select(r => new LINQS
                        {
//Selects the data that I want
                        });

            return View("Results", model.ToList());


View:

//A bunch of non relatable html
@(Html.Kendo().Grid(Model)
    .Name("Grid")
    .Pageable()
    .Scrollable()
    .Filterable()
    .Groupable()
    )



Petur Subev
Telerik team
 answered on 24 Jun 2014
1 answer
118 views
I've got a situation in which I'd like to read from one service and update to a different one, and they have slightly different models.  The read data includes some joins that facilitate showing it in a grid, but those joined fields can't be part of the update.  I see with transport.update.data, I can send additional parameters, but can I remove parameters from the model as well?
Kiril Nikolov
Telerik team
 answered on 24 Jun 2014
1 answer
257 views
Hello.

I have stumbled upon a problem when trying to format numbers which are in E notation with very large exponents.

Please look at the example below where the first number is correctly formatted while the second one produces an exception.

kendo.toString(5e15, "#,0.00")
"5,000,000,000,000,000.00"
kendo.toString(5e25, "#,0.00")
RangeError: toFixed() digits argument must be between 0 and 20

Same behavior can be observed for negative exponents:
kendo.toString(5e-20, "#,0.00")
"0.00"
kendo.toString(5e-21, "#,0.00")
RangeError: toFixed() digits argument must be between 0 and 20


I believe the problem is in your round function where it is returning "value.toFixed(precision);" The native Number.toFixed function appears to be limited to a maximum of 20 digits which makes formatting of above numbers break.

Could you please implement a fix which removes this limitation?


Thanks.


Kiril Nikolov
Telerik team
 answered on 24 Jun 2014
3 answers
502 views
Good afternoon all,
The KendoUI Validator as it stands is not very powerful. We have the scenario at the moment where we have two forms on the same page. We want to have on blur validation and on submit of a certain form then validation of that specific form only. At the moment binding the validator on document ready causes the other form to also validate even if it's not the one getting submitted. Is there a way to fix this or at least disable the validator on focusout of the form or something? 

In general the validator misses a lot of configuration options (auto validate, etc), event hooks (before validate triggers, on blur validation, etc) and methods(validate specific rule, disable, enable, showMessages, focus on first error of form, etc).

Looking forward to your responses!

Thanks
Kiril Nikolov
Telerik team
 answered on 23 Jun 2014
2 answers
186 views
Hi there,

trying to hide the grid header completely (.k-grid-header) via a custom directive, but some how the k-grid-header is not available when the directive compiles. what could be the reason? and clues guys?

app.directive('ngHideGridHeader', function ($parse) {
    return function (scope, element, attrs) {
        $(element).find(".k-grid-header").hide();
    }
});
 
<div kendo-grid="grid" k-options="gridOptions" ng-hide-grid-header></div>
Zhonghai
Top achievements
Rank 1
 answered on 23 Jun 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
MultiColumnComboBox
Chat
DateRangePicker
Dialog
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Effects
Accessibility
PivotGridV2
ScrollView
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
TaskBoard
Popover
DockManager
FloatingActionButton
CircularGauge
ColorGradient
ColorPalette
DropDownButton
TimeDurationPicker
ToggleButton
TimePicker
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
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?