Telerik Forums
Kendo UI for jQuery Forum
6 answers
466 views
Is there a way to restrict the file types that can be uploaded? Say to only images.
Jayesh Goyani
Top achievements
Rank 2
 answered on 29 Dec 2012
2 answers
163 views
Hi guys,

I'm using Kendo UI StockChart on my page. My data looks like this:

[{date:new Date(2012,11,27),open:26.89,high:27.09,low:26.57,close:26.96},
{date:new Date(2012,11,26),open:27.03,high:27.20,low:26.70,close:26.86},
...
]

As I understand, it is a valid stock chart data source format, but I get no data shown. My project is attached.
Lena
Top achievements
Rank 1
 answered on 29 Dec 2012
2 answers
108 views

Hi,

I had assigned UICulture to Chinese(zh-CN).

<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<CarryingCapacityMD>"
    UICulture="zh-CN" %>

And the content of button in the Toolbar/Command has been show in Chinese.

But when editing mode is PopUp, and I click 'Add new item'/'Edit' button popup a window.
That title still show in English.

Is a Bug?
Or give me a solution.

And why the second textbox's width in the popup window is too long.

See more detail in the attachment file.

Best regards!

Gary
Top achievements
Rank 1
 answered on 29 Dec 2012
3 answers
229 views
Hi
Is Hebrew is supported for kendoo web application ?
Thanks
Atanas Korchev
Telerik team
 answered on 29 Dec 2012
1 answer
160 views
If I include jquery.validate.js on my site, the dropdownlist no longer allows selection, I can just hover over the dropdown and click - but nothing happens.  It does open, but I cannot select.  Is there an inherent conflict?  This is not desired behavior.
Atanas Korchev
Telerik team
 answered on 28 Dec 2012
4 answers
252 views

<li><a><img src="srb-images/resume-icon.png" class="fileOptionDefaultIcon"><h3>Create Document</h3></a></li>


 I do not want the list item to have a auto detail icon. How would you disable this icon?  ">"

John
Top achievements
Rank 1
 answered on 28 Dec 2012
4 answers
1.1K+ views
I have been injecting a class into the row at runtime to handle conditional styling scenarios, such as "if status = 'urgent' addClass('urgent')". A row with 'urgent' class might be styled bold and red. Conditional styling requires that one examine one or more cells of the row, so I've been getting the dataItem for each row and looking at the data.

   $(grid.tbody).find("> tr:not(.k-grouping-row, .k-detail-row, .k-group-footer)").each(function (idx, elem) {
        var dataItem = grid.dataItem(elem);     
        if (dataItem.status == 'urgent') {
            $(this).addClass('urgent');
        }
      })

One problem is that the injected class does not survive a grouping operation.  If the user drags a column-header to group by that column, the custom class injected into the row does not accompany the row to its new location. The conditional style is not reapplied when the rows are grouped. 

So I am wondering, is it possible to use templates to do this, so that the template sticks to the row even during a grouping operation? The "urgent" class would be appended to those data rows of the tbody (i.e. not into the grouping row, or the group header and group footer rows) where the value in cell3 = "urgent".  Let's say the schema field to which cell3 has been bound is called "status".

Very important: We don't want to overwrite any class that Kendo puts into the row; we want to append a class.

Here's some pseudo-code.  Is something along these lines possible?
<script id="urgentTemplate" type="text/x-kendo-tmpl">
   <tr ${ if dataItem[status] == urgent this.addClass(urgent)} </tr>
If templates cannot be made to work in this manner way, or if they don't travel with the row when it is grouped, it would be helpful to have an event that fired after each group section was instantiated, exposing the rows of the group, so one could iterate them, examine the dataItem of each, and reapply a custom class to the row when applicable. Sorry about this orange text. I'm not sure how to inject pseudo-code into my question without messing up the styling.
Tim R
Top achievements
Rank 1
 answered on 28 Dec 2012
4 answers
303 views
I am trying to get an action sheet to modify itself depending on which screen it is on.  Basically in my scenario I have an button on my navbar that I wish to be a context sensitive menu.  I have a jsbin to show an example of what I am trying here ... http://jsbin.com/ehicof/5/edit.

If you hit the 'logout' button on the top right initially the action sheet looks fine, when you go to the search tab and then to 'search 1' I change the action sheet contents to have a 'search 1' button, however the action sheet doesn't grow (and thus the 'cancel' button is not visible).  I have tried re-initializing the action sheet to no avail (using kendo.mobile.init), perhaps I am using it wrong.  Am I taking the wrong approach here?  Would I be better off making multiple action sheets and then changing the link on the navbar to the appropriate one?
Alexander Valchev
Telerik team
 answered on 28 Dec 2012
3 answers
210 views
Hi forum, I know that this question is so simple and barely fool, but I am trying the mobile UI and when I want to run the app in the web browser this ask me for an user and password, in all web browsers... but, when I run the app example from the kendoUI trial ZIP the app run fine... why this is happening? 

I'm already check permissions and that stuff, but I'm missing something. 

Thanks!
Jose
Top achievements
Rank 1
 answered on 28 Dec 2012
6 answers
211 views
Hello,

HTML
<div id="example" class="k-content">
            <div id="clientsDb">
 
                <div id="grid" style="height: 380px"></div>
 
            </div>
</div>


JS
$(document).ready(function() {
                    $("#grid").kendoGrid({
                        dataSource: {
                            type: "odata",
                            transport: {
                                read: "http://demos.kendoui.com/service/Northwind.svc/Orders"
                            },
                            schema: {
                                model: {
                                    fields: {
                                        OrderID: { type: "number" },
                                        Freight: { type: "number" },
                                        ShipName: { type: "string" },
                                        OrderDate: { type: "date" },
                                        ShipCity: { type: "string" }
                                    }
                                }
                            },
                            pageSize: 10,
                            serverPaging: true,
                            serverFiltering: true,
                            serverSorting: true
                        },
                        height: 250,
                        filterable: true,
                        scrollable: true,
                        sortable: true,
                        pageable: true,
                        columns: [{
                                field:"OrderID",
                                filterable: false
                            },
                            "Freight",
                            {
                                field: "OrderDate",
                                title: "Order Date",
                                width: 350,
                                format: "{0:MM/dd/yyyy}"
                            }, {
                                field: "ShipName",
                                title: "Ship Name",
                                width: 250
                            }, {
                                field: "ShipCity",
                                title: "Ship City",
                                width: 300
                            }
                        ]
                    });
                });



Steps for produce this issue.

FF-17.

Step 1 : Add above code in to http://try.kendoui.com/web/widget-initialization/1
Step 2 : Filter the 'ship city'  column by 'jayesh' and Click on filter button.
Step 3 : Issue raised here


It removed the scroll bar from the grid.

IE-9.

Step 1 : Add above code in to http://try.kendoui.com/web/widget-initialization/1
Step 2 : Filter the 'ship city'  column by 'jayesh' and Click on filter button.
Step 3 : Clear the filter from 'ship city' column
Step 4 : Issue raised here


It miss aligned the data and header row. (Because it auto scroll to the Left)

Thanks,
Jayesh Goyani
Jayesh Goyani
Top achievements
Rank 2
 answered on 28 Dec 2012
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
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
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
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
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?