Telerik Forums
Kendo UI for jQuery Forum
1 answer
247 views
Hello,

According to the docs, ActionSheet on iOS works like a modal dialog, clicking outside of it will not close the ActionSheet. However, I tried it on iPhone/iPad, it will close even it was clicked outside any selection buttons.

Anyway, my question is how to know if the ActionSheet is closed. There is a Close event, but it is only triggered if the Cancel button is selected. If you click outside to make the ActionSheet closing, the Close event will not be fired.

http://jsbin.com/yumiw/1/edit

Please help! Thansk!
Petyo
Telerik team
 answered on 24 Feb 2014
1 answer
126 views
I have a grid with a ComboBox:

[...]
.Columns(c=> {
     c.ForeignKey(o => o.Item, (IEnumerable<MyIdValueClass>)ViewBag.FK_Items, "Id", "Value").EditorTemplateName("ComboBox");
[...]

public class MyIdValueClass
  {
    public string Id { get; set; }
    public string Value { get; set; }
  }

Template Code:
@(Html.Kendo().ComboBox()
    .Name(ViewData.TemplateInfo.GetFullHtmlFieldName(""))
    .BindTo((SelectList)ViewData[ViewData.TemplateInfo.GetFullHtmlFieldName("") + "_Data"])
)


Whenever I type in a new entry (not selected from the dropdown) and click Update, the entry is saved into the database properly, but it shows up blank in the Grid.  If you subsequently click Edit, the value appears so that you can edit it.  Click Update or Cancel and it is still blank.  Only after refreshing the page will the value show up properly.  Entries selected from the dropdown list display properly.  How can I get the typed entries to display properly?

Thanks in advance,
Gary

Alexander Popov
Telerik team
 answered on 24 Feb 2014
2 answers
521 views
We have a requirement in our product that a numerictextbox, set to currency mode, must be able to be a different culture than the culture of the page.

For example, most of our product will be kendo.culture("en-US").  However, I will have a currency input on the page whose culture needs to be "de-DE".

Is there a simple way of controlling a single control's culture?

Thanks,
Kyle
Kyle
Top achievements
Rank 2
Veteran
Iron
 answered on 24 Feb 2014
2 answers
380 views
Is it possible to use model binding on layouts? We have a header navbar in the layout and we need a custom back button for some views that get loaded into the layout.

Is there a way to use binding in a layout or some other way of tackling this problem using the MVVM way?

I have tried using layout show events and such to try to bind a layouts viewModel to the layout programmaticaly. It did not seem to work.

We are using Kendo UI Mobile in AppBuilder.
Bogdan
Top achievements
Rank 1
 answered on 24 Feb 2014
4 answers
237 views
Hi, I am having problem with editing date in grid. Date is stored in DB as SQLite type, it is shown in select result as yyyy-MM-dd. I have already some data in DB from my other project and I used this function in SQL to store date
"...Date = STRFTIME('%Y-%m-%d', '?')..."
Kendo UI Grid shows date as yyyy-MM-dd so I change the format to:
{ field: "TestDate", title: "Datum", template: "#= kendo.toString(kendo.parseDate(TestDate, 'yyyy-MM-dd'), 'dd.MM.yyyy') #" }
When I try to edit row, the DatePicker value is empty. Doesn't show the value from TestDate column and the DatePicker is set to "now" date. When I change the date and click on Update nothing happend. I can see new value in grid, but the edit window is still open and I get bact the old value after refresh .
Update function:
function update(db, model, callback)
{
  db.transaction(function (tx)
  {
    tx.executeSql("update Costs set Amount = ?, Date = STRFTIME('%Y-%m-%d', '?'), CostTypeId = ?, CurrencyId = ?, CountryId = ?, Description = ?, CZK = NULL where Id = ?",
                  [model.Amount, model.TestDate, model.CostTypeId, model.CurrencyId, model.CountryId, model.Description, model.ID], function (tx, result)
                  {
                    callback([]);
                  });
  });
}

So my question is:
1. How to set DatePicker value to date which I am editing when the edit window popup?
2. Which date format I should use to select, update and insert data to WebSQL and where and how I should do that.

Thank you for your answer :)
Martin
Top achievements
Rank 1
 answered on 24 Feb 2014
6 answers
71 views
Hi,

Is kendo MVVM Framework compatibile with IE 9 and lower versions? My sample app works fine with IE10 and Chrome  33 but bindings are not applied in IE9.

Thanks,
Mahesh
Mahesh
Top achievements
Rank 1
 answered on 24 Feb 2014
1 answer
873 views
Hello, Telerik Team 

I am working on Kendo DatePicker control in MVC 4.0, and we have to culture in the application. 1) en-US and 2) ar-SA.

    It is working fine for en-US but when I set culture as ar-SA, DatePicker change date as per culture in UI it is fine for me while in MVC controller side Model's Date-time property giving same date as UI.  for e.g  01/Feb/2014 is display as 01/04/35(dd/MM/yy) in ar-SA. 
Now , I  won't to save only en-US date like 01/Feb/2014 in database side.
   One more issue(for ar-SA) in UI date format "dd/MMMM/yyyy" is not able to post the form action, I have also checked        $("form").kendoValidator().data().kendoValidator.validate() it is true. 

please provide your suggestion as soon as possible, it is argent for us. 

Thanks
Padman
 
Atanas Korchev
Telerik team
 answered on 24 Feb 2014
3 answers
193 views
Hi.

Suppose I have something like this: http://jsfiddle.net/3mJJm/27/.

Select draw a rectangle on a map, select some area and click validate.
There will be exception: Uncaught TypeError: Object #<SVGAnimatedString> has no method 'indexOf'

For now the only possible workaround I found is added guard condition for SVGAnimatedString:
_findMessageContainer: function(fieldName) {
            var locators = kendo.ui.validator.messageLocators,
                name,
                containers = $(),
                children = this.element[0].getElementsByTagName("*");
 
            for (var idx = 0, length = children.length; idx < length; idx++) {
                var element = children[idx];
                 
                                              //added code
                if(element.className instanceof SVGAnimatedString) continue;
                 
                if (element.className.indexOf(INVALIDMSG) > -1) {
                    var attr = element.getAttribute(kendo.attr("for"));
                    if (attr === fieldName) {
                        containers = containers.add(element);
                    }
                }
            }


Is there more robust workaround?

Thanks in advance.

Rosen
Telerik team
 answered on 24 Feb 2014
1 answer
214 views
I have a Kendo Grid where and only one of the columns is editable and that column has a template.  The template is: 
  '<input type="text" class="grid-input" value="#=Percentage#" />'
where Percentage is the dataSource column name.

Since the text boxes are visible for all rows (desired L&F), how do I make sure any changes in those text boxes result in the dataSource being updated?

Thanks in advance,
--Ed
Alexander Popov
Telerik team
 answered on 24 Feb 2014
2 answers
193 views
Hi,

I want to use a stacked bar chart to display

* a set value for every month (grey)
* a "current value" for every month (blue)
* the difference between set and current value (either green for a positive result or red for a negative result)

moreover I would like to display the percentage of the discrepancy above the bar charts (either +30% or -40%)

however I didnot find any way to fix this problem.

the idea would be to add a "label" property to the data source of the difference value - but it seems that I can only use the value base for the bar as label :(

Any ideas how to get the difference percentage displayed for each month on top of my bars?

Thanks in advance
CHris
Iliana Dyankova
Telerik team
 answered on 24 Feb 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
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
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
LLM Kit
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?