Telerik Forums
Kendo UI for jQuery Forum
3 answers
148 views
Dear Forum,

I have been playing around with KendoUI in the past week. I like the ease of use. I have to admit that I am one of those that first needed Javascript and then started to lern it. Or you I say starts to.
I wanted for a mokeup create a grid with a button in the toolbar that toggels edit mode on and off.

var grid = $("#grid").kendoGrid({
dataSource: {
data: createRandomData(50),
schema: {
model: {
fields: {
FirstName: { type: "string", validation: {required: true} },
LastName: { type: "string", validation: {required: true} },
City: { type: "string", validation:{required: true} },
Title: { type: "string" },
BirthDate: { type: "date" },
Age: { type: "number", validation: {min:18, required:true} }
}
}
},
pageSize: 15
},
height: 500,
scrollable: true,
sortable: {
mode: "multiple"
},
toolbar: ansichtNichtEditierbar,
filterable: true,
pageable: true,
columns: [... ],
groupable: true,
editable: false,
}).data("kendoGrid");

Thus I defined the validations in the model and set editable to false. As you can see the toolbar is stored in anohter object.

var ansichtNichtEditierbar = [
{
text:"Editieren",
className:"k-grid-customEditieren",
imageClass: "k-add"
},
{
text:"Ansicht Speichern",
className:"k-grid-customAnsichtSpeichern",
imageClass: "k-add"
}
];

The idea being that I would bind a on click event to the button that will set editable to true and changes the toolbar to the edit mode on.

The binding is done with
$(".k-grid-customEditieren").on('click',function(){
});
To refresh I simply need to run grind.refresh() but I'm not able to get the edit mode to run.
Nikolay Rusev
Telerik team
 answered on 14 Feb 2012
2 answers
88 views
Hello;

When I click filter button no values appear as you can see in the attached doc...

My code is here: http://jsfiddle.net/GzJzY/1/ 

Thanks...
Burak
Top achievements
Rank 1
 answered on 14 Feb 2012
1 answer
352 views
Hi,

In  normal input boxes I have validation on lost focus and on form submit too.
However if I turn the input into combobox there is validation only on form submit...

There is a way to change it?

Regards,
Peter
Rosen
Telerik team
 answered on 14 Feb 2012
2 answers
114 views
Hi,

I have a requirement to select multiple rows on different pages to perform batch operations on selected rows. Currently, if I select multiple rows on a page and then go to another page all previous row selections are lost. Is there a way to get this done.

Thanks,
Danish 
Nikolay Rusev
Telerik team
 answered on 14 Feb 2012
0 answers
116 views
I'm using DataViz but have some bars with long titles, for example Jasmine Cottage in my screen capture. Is it possible to specify the maximum width for the label so the text wraps onto multiple lines. If it's really long text then maybe the option to trim it and show an ellipsis (...)?
Richard
Top achievements
Rank 1
 asked on 14 Feb 2012
3 answers
109 views
Hi,

I have run into an issue where the grid is unable to group on complex data.  If you take a look at this sample (http://jsfiddle.net/CuinnWylie/c7hv4/ ) you'll see some test MSDS data.  Try to drag the Areas column into the grouping section and you should run into the problem.

What happens for me is that the grouping is applied, but the header is not dropped into the grouping area and stays attached to the mouse pointer.  Also, the grouping area becomes hidden/minimised.  The other column headers are able to be successfully dropped into the grouping area.  This only seems to be corrected once the page is refreshed.

I have not attempted to debug this myself yet, but might look into it this week if I get the time.  Would be good if I can get an indication of whether this is a bug, or if this is simply not intended usage for this control.

Regards,
Cuinn.
Rosen
Telerik team
 answered on 14 Feb 2012
3 answers
4.7K+ views
I just want one column in my grid to be sortable. I was thinking I could make the grid set to "sortable: false" and put "sortable: true" on my one column, but no dice.

Joe
Top achievements
Rank 1
 answered on 14 Feb 2012
5 answers
245 views
Hi,

I'm trying to use a Ribbon Bar inside of an iFrame. The iFrame is hosted in a kendoUI Window.
Everything is working fine in Firefox.
In IE9 however, I'm getting a whole bunch of errors saying that some objects are undefined.

For example:

SCRIPT5009: "Array" ist undefiniert
WebResource.axd?d=nETz4_IM_aEemtqRYSzycw8SrL3cgvmF54HoMX-OCJUGuepfKRveqXGF9MKJandwWOMMNGOBlBi1o7hdVanR8smNb1jevPMSxtaa578Zrf81&t=634618768644240867, Zeile 45 Zeichen 1
SCRIPT5009: "Array" ist undefiniert
WebResource.axd?d=nETz4_IM_aEemtqRYSzycw8SrL3cgvmF54HoMX-OCJUGuepfKRveqXGF9MKJandwWOMMNGOBlBi1o7hdVanR8smNb1jevPMSxtaa578Zrf81&t=634618768644240867, Zeile 45 Zeichen 1
SCRIPT5009: "Function" ist undefiniert
Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl02_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3ade-DE%3a89093640-ae6b-44c3-b8ea-010c934f8924%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2011.3.1324.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3ade-DE%3adabb5aeb-caf3-49fd-8d54-706f88de89f2%3a16e4e7cd%3af7645509%3a24ee1bba%3aa675b4ab, Zeile 6 Zeichen 1
SCRIPT5009: "Function" ist undefiniert
Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl02_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3ade-DE%3a89093640-ae6b-44c3-b8ea-010c934f8924%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2011.3.1324.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3ade-DE%3adabb5aeb-caf3-49fd-8d54-706f88de89f2%3a16e4e7cd%3af7645509%3a24ee1bba%3aa675b4ab, Zeile 6 Zeichen 1
SCRIPT5009: "Error" ist undefiniert
CreateUserAndBookServices.aspx, Zeile 41 Zeichen 34
SCRIPT5009: "Error" ist undefiniert
CreateUserAndBookServices.aspx, Zeile 41 Zeichen 34
SCRIPT5009: "Sys" ist undefiniert
CreateUserAndBookServices.aspx, Zeile 51 Zeichen 1
SCRIPT5009: "Sys" ist undefiniert
CreateUserAndBookServices.aspx, Zeile 51 Zeichen 1
SCRIPT5009: "Telerik" ist undefiniert
CreateUserAndBookServices.aspx, Zeile 260 Zeichen 1
SCRIPT5009: "Telerik" ist undefiniert
CreateUserAndBookServices.aspx, Zeile 260 Zeichen 1
SCRIPT5009: "$telerik" ist undefiniert
CreateUserAndBookServices.aspx, Zeile 147 Zeichen 5

Any ideas?

Thanks,
Lars
Atanas Korchev
Telerik team
 answered on 14 Feb 2012
4 answers
184 views
Hi,

The code below works perfectly in Chrome and FF, however in IE8-9-10 it does not display good and does not open the popup as expected...

<html>
<head>
    <title></title>
    <link href="css/kendo.common.css" rel="stylesheet" type="text/css" />
    <link href="css/kendo.default.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" action="Default.aspx">
    <div>
        <input id="timepicker" />
    </div>
    </form>
 
    <script src="js/jquery.js" type="text/javascript"></script>
    <script src="js/kendo.core.js" type="text/javascript"></script>
    <script src="js/kendo.fx.js" type="text/javascript"></script>
    <script src="js/kendo.popup.js" type="text/javascript"></script>
    <script src="js/kendo.timepicker.js" type="text/javascript"></script>
 
    <script type="text/javascript">
        $(document).ready(function () {
            $("#timepicker").kendoTimePicker();
        });
    </script>
</body>
</html>

The attached file show how it looks in IE...

Did I missed something?

Regards,
Peter
Peter
Top achievements
Rank 1
 answered on 14 Feb 2012
3 answers
297 views
I have code which creates a grid.

When the user pressed the "Refresh" button, my code then destroys this grid and recreates it again.

For some reason, when you recreate the grid, the grouping doesn't work. You drag a column into the grouping banner, but then it just doesn't stick there.

I have created a simple working example here: http://jsfiddle.net/xmpzk/1/ 

Press the button "Create", and you see the grid appear. You can happily drag column headers into the grouping banner.

Then press the button "Refresh". This time, you will find that you cannot drag columns.

Just in case jsFiddle is down:

The HTML:
<button type="button" id="refreshButton">Create Grid</button>  

<div id="demoGrid">
    
</div>


The Javascript:

function createGrid({

    var dataSource {
        data[
            {
            FirstName"Harold",
            LastName"Kumar",
            City"London",
            Title"Mr",
            Age63}
              ]
    };
    $("#demoGrid").empty().kendoGrid({
        height250,
        scrollabletrue,
        sortabletrue,
        filterabletrue,
        pageabletrue,
        groupabletrue,
        dataSourcedataSource,
        columns[
            {
            field"FirstName",
            title"First Name"},
        {
            field"LastName",
            title"Last Name"},
        {
            field"City"},
        {
            field"Title"},
        {
            field"Age"}
        ]
    });
    $("#refreshButton").text("Refresh Grid");
};

// createGrid();

$("#refreshButton").click(function({
    createGrid();
});​ 










Andrew
Top achievements
Rank 1
Iron
Iron
 answered on 14 Feb 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
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
Dialog
Chat
DateRangePicker
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
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?