Telerik Forums
Kendo UI for jQuery Forum
7 answers
1.0K+ views
Has anyone ever experienced the following error:

'uid' is undefined
kendo.all.min.js, line 8 character 217810


I get this when browsing the site with IE8 and the latest FireFox.  Everything works fine when using Chrome.

I'm using jquery.iecors for IE8 support and have set the Access-Control-Allow-Origin header to * on the Web API site that serves up the JSON data.  The Web API JSON call is successful and is returning valid JSON data for all browsers.

I'm not too sure where to go from here, any suggestions are welcome.
Zachary
Top achievements
Rank 1
 answered on 06 Nov 2013
2 answers
1.3K+ views
Hi,

I am using Selenium automation testing in one of my view with kendo ui editor.

I couldn't pass values to the editor control from my test. Please give information how to do this.

View
====
 @(Html.Kendo().EditorFor(m => Model.reportDetail.Content) 
                    .Name("Content")
                    .HtmlAttributes(new { style = "width: 810px;height:500px" })
                    .Tools(tools => tools
                        .Clear()
                        .Bold()
                        .Italic()
                        .Underline()
                        .Strikethrough()
                        .FontName()
                        .FontSize()
                        .FormatBlock()
                        .FontColor()
                        .BackColor()
                        .InsertOrderedList()
                        .InsertUnorderedList()
                        .CreateLink()
                        ))

Test
====

[TestMethod]
public void TestName()
{
// code goes here..
var kendoEditor = webDriver.FindElement(By.Name("Content"));
// assert code goes here..
}

I need to set value as "Test" in the editor.

I couldn't assign value as other controls
Ex:- @Html.DropDownListFor

var yearInputControl = new SelectElement(webDriver.FindElement(By.Name("dateComponent.Year")));
yearInputControl.SelectByValue("2013");

Thanks in advance,
PK
leblanc
Top achievements
Rank 1
 answered on 06 Nov 2013
3 answers
2.0K+ views
I have a kendo grid that let's user add the rows manully. Once users are done adding rows, There is a button that uses Ajax post to post data to controller action.

How can I pass the data from grid as Enumerable of model to the action

 @(Html.Kendo().Grid(Of PEERS.ECFPropertyModel).Name("ECFProperty").      Columns(Sub(cols)                      cols.Bound(Function(it) it.PropertyID).ClientTemplate("<input type='checkbox' onClick='gridECFProperty_selectOnClick(this);' id='SelectProperty' value='#=PropertyID#'>#=PropertyID#</input>")                      cols.Bound(Function(it) it.PropertyName)                      cols.Bound(Function(it) it.CostSaving)                      cols.Bound(Function(it) it.ImplementationCost)                      cols.Bound(Function(it) it.TargetCompletionDate)                      cols.Bound(Function(it) it.ActualCompletionDate)                                End Sub ).Pageable().Scrollable().Sortable().Selectable().DataSource(Sub(d) d.Ajax().ServerOperation(True).Batch(True).                                                     Model(Sub(m) m.Id(Function(p) p.PropertyID)).PageSize(10).                                                     Read(Function(r) r.Action("ECFPropertyList""ECFProperty", Request.RequestContext.RouteData.Values)).                                                     Update(Function(u) u.Action("SaveECFProperty1""ECFProperty", Request.RequestContext.RouteData.Values))       ))

<div> <input type="submit" id="submit" onclick="SaveECF();"  value="Save ECF Property" /> </div>


function SaveECF() {                           $.ajax({          url: '@Url.Action("SaveECFProperty""ECFProperty", Request.RequestContext.RouteData.Values)',          type: 'POST',          traditional: true,          datatype: "json",           data: {               PropertyList: $("#ECFProperty").data("kendoGrid").dataSource.view().toJSON),             currency:'USD'          },          success: function () { window.alert('saved'); }         });  }
Navin
Top achievements
Rank 1
 answered on 06 Nov 2013
4 answers
1.3K+ views
Hello, 

I have a page that looks like the one attached. The textbox here looks very small compared to the rest of the page, is there an easy way to make this look a bit better. I mean by making the textbox bigger and the font inside also, thanks
Craig
Top achievements
Rank 1
 answered on 06 Nov 2013
2 answers
556 views
I was wondering if the following is possible?
I have a custom command button in my grid:

columns.Command(command =>
        {
            command.Custom("options").Text("...").Click("showMenu");
        });

This opens a small menu next to the button that contains a few options.

I am wondering if it is possible to have the edit button on this menu?

I can get the row data like so:
var grid = $("#grid").data("kendoGrid");
var dataItem = grid.dataItem($(e.currentTarget).closest("tr"));

How do I then call the edit popup for the row?

Thanks
Elliott
Top achievements
Rank 1
 answered on 06 Nov 2013
1 answer
121 views
I have an action sheet that pops up over the top of view that has a button at the bottom. (The button is a photo capture button that files the Camera API)

Problem: The CANCEL click propagates down through the ActionSheet and fires the button underneath.

How do I stop this when:
1) There is no event fired for CLOSE (while there is one for OPEN)

Suggestions are welcome and thanks ahead of time.
Kiril Nikolov
Telerik team
 answered on 06 Nov 2013
4 answers
351 views
Hello,

I'm trying to render a Button (HtmlId: btnValidateState2)  and a ButtonGroup in a template.
But the first one appears like a simple text (and its click event isn't fired) and the second one appears like a simple html list "ul".
The considered parts of my code:

<!DOCTYPE html>
<html>
    <head>
        <title>Test</title>
        <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
        <meta charset="utf-8" />
        <!-- ********** JS ********** -->
        <script src="js/cordova-2.0.0.js" type="text/javascript" charset="utf-8"></script>
        <script src="js/jquery.min.js"></script>
        <script src="js/kendo.mobile.min.js"></script>
        <!-- ********** CSS ********** -->
        <link rel="stylesheet" href="styles/kendo.mobile.all.min.css" type="text/css" />
    </head>
<body>
<div data-role="view" id="stateView" data-init="ViewInit">
    <div id="form" >
                <header data-role="header">
                    <div data-role="navbar">
                        <span data-role="view-title"></span>
                    </div>
                </header>
            <ul data-role="listview" data-style="inset" data-type="group" id="stateListView"></ul>
                <a data-role="button" id="btnValidateState">Validate</a><br/>
          </div>
</div>
 
<script type="text/x-kendo-template" id="stateTemplate">
            <li><h3>${stateName}</h3></li>
            <li><p>${stateDescription}</p></li>
            <li>
      <!-- not working! :( -->
                <ul id="select-period" data-index="0">
                    <li>Month</li>
                    <li>Quarter</li>
                    <li>Year</li>
                </ul>
            </li>
            <li>
                # if (transitionArray != null && transitionArray.length > 1) { #
                    Response
                    <select id="dropdownChoice">
                        # for (var i=0; i < transitionArray.length; i++) { #
                            <option id="${transitionArray[i].transitionId}" value="${transitionArray[i].transitionExpression}">${transitionArray[i].transitionExpression}</option>
                        # } #
                    </select>
                # } #
            </li>
            <li>
                <label for="txtComments">Comments</label><br/>
                <textarea id="txtComments" rows="4" cols="45" name="txtComments" maxlength="200" class="k-textbox"/>
            </li>
            <li>
      <!-- not working! :( -->
                <a data-role="button" id="btnValidateState2">Validate</a>
            </li>
</script>
 
<script>
            function ViewInit() {
                $("#select-period").kendoMobileButtonGroup();
            }
</script>
 
 
</body>
</html>

I don't see where I'm wrong.
My other controls appear like desired, as the button "btnValidateState"...
And when I place the code of the ButtonGroup up between the end-tag "</header>" and the "ul" tag "stateListView", it appears also great. 

I've attached a PNG screenshot of my view.

Thanks a lot for some help!
Petyo
Telerik team
 answered on 06 Nov 2013
6 answers
175 views
I have Kendo Grid using Heirarcy as image shows below. I double checked my CSS declarations and I couldn't find any selector of which could affect my grid styles. Why my grid row text color is black and text size is that big? I made some comparison between your grid demos and my grid and look & feel is different.
Browser developer tools shows me computed styles and there is black color for grid text. Where is that coming from?
ICT
Top achievements
Rank 1
 answered on 06 Nov 2013
1 answer
125 views
I am using an ObservableArray, and when I push in an Item object it wraps all the fields, which is fine except one it can't handle and it renders it useless. Can I prevent a field from being wrapped?

Rosen
Telerik team
 answered on 06 Nov 2013
3 answers
251 views
We are trying to basically and literally group data in a data source like you can do with SQL when selecting against a table.

So I get data that looks like the following:

var grid = $("#grid").kendoGrid({
    dataSource: {
        data: [
            {f1: "1", f2:"2", f3:"3", f4:"4", f5:"5", f6: "1"},
            {f1: "1", f2:"2", f3:"3", f4:"4", f5:"5", f6: "3"},
            {f1: "1", f2:"2", f3:"3", f4:"6", f5:"7", f6: "2"},
            {f1: "1", f2:"2", f3:"3", f4:"6", f5:"7", f6: "1"},
            {f1: "1", f2:"2", f3:"3", f4:"6", f5:"5", f6: "2"}
        ]},
}).data("kendoGrid");

We want to group by f1, f2, f3, f4 and sum on f6.

The result when we show this data in a grid or list view should be that the data source has only 2 rows in it

            {f1: "1", f2:"2", f3:"3", f4:"4", sum: "4"},
            {f1: "1", f2:"2", f3:"3", f4:"6", sum: "5"},

We do not want group header and so forth, just to literally group the data.

How can I accomplish this?
Kiril Nikolov
Telerik team
 answered on 06 Nov 2013
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?