Telerik Forums
Kendo UI for jQuery Forum
1 answer
576 views
I'm asking this question again after spending additional hours trying to get this to work without success.   I have a Grid using Ajax binding to display a dropdown list of items in a grid from a collection in the model.    The items are on the server in a List<SomeItems> collection.      This list is not in the model the grid itself is bound to - it is coming from a separate source.    I'm really tired of mucking around with something that is very easy to do in every other tool kit I've ever used.   

My code currently looks like this.   I get no drop down list in my grid at all.  I get an edit box.
@(Html.Kendo().Grid<Models.AutomationDevicePartsMapping>()
       .Name("GridAutomationDevicePartsMapping")
       .Columns(columns =>
                    {
                        columns.Bound(p => p.QuantityMultiplier).Title("Quantity");
                        columns.Bound(s => s.PartNumberName)
                            .Width(300)
                            .ClientTemplate(Html.Kendo().DropDownList()
                                                .Name("PartNumberxyz")
                                                .Events(ev => ev.Change("AutomationDeviceMappingDDLChanged"))
                                                .BindTo(ViewBag.MeterParts)
                                                .DataTextField("Text")
                                                .DataValueField("Value")
                                                .HtmlAttributes(new {style = string.Format("width:{0}px", 200)}).ToClientTemplate()
                                                .ToHtmlString()
                            );
                    })
       .ToolBar(toolbar => toolbar.Create())
       .Editable(editable => editable.Mode(GridEditMode.InLine))
       .Pageable()
       .Sortable()
       .Scrollable()
       .Selectable(s => s.Mode(Kendo.Mvc.UI.GridSelectionMode.Single))
       .DataSource(dataSource => dataSource
                                     .Ajax()
                                     .Model(model => { model.Id(p => p.AutomationDeviceId);
                                     model.Field(p => p.PartNumberName).Editable(false);
                                     })
                                     .Create(update => update.Action("CreateNewAutomationDevicePartsMap", "AutomationDevice").Data("AutomationDeviceID"))
                                     .Read(read => read.Action("GetAutomationDeviceMaps", "AutomationDevice").Data("AutomationDeviceID"))
                                     .Update(update => update.Action("UpdateAutomationDevicePartsMap", "AutomationDevice"))
                                     .PageSize(50)
       )
 
       )
Vladimir Iliev
Telerik team
 answered on 25 Sep 2012
10 answers
496 views
This only happens in IE 9. I'm using the kendo silver style.  I have a custom action in a grid.  On mouseover and mouseout, the grid body height expands (right above the footer, but below the scrollbar).  The template for the custom button also seems to remove the filtering options for the other columns.

Here it is in action (if you use IE 9!):
http://jsfiddle.net/xeyaT/

Do you guys have any idea why or how this might happen?
Nick
Top achievements
Rank 1
 answered on 25 Sep 2012
0 answers
149 views
Hi,

In div that will be content for modal window I have kendo menu, kendo DropDownList  and textarea. They render on page load OK.

When I press link that opens a modal window, that uses mentioned above div as its content, it opens window with kendo menu and textarea, but kendo DropDownList has dissapeard and can't be found. 

I have attached MVC default sample project with sample code in Home\Index page that demonstrates this behaviour. 
Rihards
Top achievements
Rank 1
 asked on 25 Sep 2012
1 answer
516 views
Does possible making in grid have sub column like in the image?
I tried grid inside grid but it's not working and only display the inside grid
anyone can help how can approach or any suggestion what would better to do in my problem?
            <script>
$(function() {
$("#grid").kendoGrid({
dataSource: {
transport: {
read: "customgridtest.php",
update: {
url: "update.php",
type: "POST"
},
destroy: {
url: "delete.php",
type: "POST"                            
},
create: {
                                url: "create.php",
                                type: "POST"
                            },
},
error: function(e) {
alert(e.responseText);
},
schema: {
data: "data",
model: {
id: "Customer",
fields: {
Customer: { editable: true },
Order: { validation: { required: true} },
Price: { validation: { required: true} }
}
},
}
},
columns: [
{ field: "Customer", title: "Customer"},
{ field: "Order" , title: "Order"},
{ field: "Price", title: "Price"},
{
/*
$("#grid").kendoGrid({
dataSource: {
transport: {
read: "customdata.php",
},
schema: {
data: "data",
}
},

columns: [
{ field: "Region", title: "Region"},
{ field: "District" , title: "District"},
{ field: "Territory", title: "Territory"},
],

})
,
*/
},
],
navigable: true,   // enables keyboard navigation in the grid
});
});
            </script>
Iliana Dyankova
Telerik team
 answered on 25 Sep 2012
0 answers
249 views
I would like to add model-level validation. So far I can only see kendo-ui supports field-level validation. I want model-level validation (or class-level or entity-level whatever you call it) as the validation rule does not apply to an individual field / property but applies to the entire model. As a consequence, when invalid, the validation message cannot be associated with the input control for an individual field. It must be placed in a validation-summary in a location of my choice. All of this is to happen in a custom popup edit template of a grid. Validation is to be triggered by the Update button on the custom edit popup. Is this possible at all?
Remco
Top achievements
Rank 1
 asked on 25 Sep 2012
1 answer
166 views
Hello,



I use the grid bound to remote data (a SharePoint list odata/rest feed). As you click a column header to sort that column, I would like to sort by a different field than is displayed in that column. I could not find documentation how to do this. I can set the display field on a column in the grid, but I cannot set a different field to sort that column by. Is this supported?



kind regards



Remco
Remco
Top achievements
Rank 1
 answered on 25 Sep 2012
0 answers
117 views

I am trying to use the cross domain communication between the two kendo windows using window.postMessage

 I can achieve the same functionality in using iframe, but I am not able to find the solution for Kendo windows

 Please instruct me there is any an option or features available for cross domain communication in kendo window?

 


 

Prakash
Top achievements
Rank 1
 asked on 25 Sep 2012
2 answers
1.2K+ views
Hi, I must be doing something wrong. No matter what I do, I cannot get the page to load with the kendoWindow hidden.  I am prototyping this therefore I have very minimal code, here is the entire page:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="ScratchPad.Default" %>
 
<!DOCTYPE html>
 
<html lang="en-us">
<head runat="server">
	<meta charset="utf-8" />
    <title></title>
	<link href="Content/kendo/kendo.common.min.css" rel="stylesheet" type="text/css" />
	<link href="Content/kendo/kendo.metro.min.css" rel="stylesheet" type="text/css" />	
	<link href="Content/default.css" rel="stylesheet" type="text/css" />	
	<script src="Scripts/jquery-1.8.1.js" type="text/javascript"></script>
	<script src="Scripts/newKendo/kendo.web.min.js" type="text/javascript"></script>
</head>
 
<body>
    <form id="form1" runat="server">
    <div>
    <asp:button id="btnOpenDiv" runat="server" text="Click Me!" />
    </div>
 
	<div id="dlgWindow">
		<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. 
		Nullam in tellus tincidunt leo consequat tempor. Quisque 
		pellentesque magna vitae elit consectetur venenatis. 
		Nam ornare tristique magna, sed feugiat felis pellentesque 
		vestibulum. Donec et dui erat, non vehicula dui. Aenean 
		tincidunt nisl nisi, at posuere eros. Proin aliquet 
		adipiscing vestibulum. Aliquam aliquam leo non sem pulvinar 
		cursus. In dolor tellus, volutpat id pharetra a, tristique 
		non arcu. Maecenas ac est vitae nisi hendrerit dapibus. 
		Phasellus varius, arcu a sodales adipiscing, nunc nisl tempus 
		turpis, ut posuere eros dui eu purus. Sed diam elit, elementum 
		in fermentum eget, fringilla a purus.</p>
	</div>
    </form>
	
	<script>
		    $(document).ready(function()
		    {
			var window = $("#dlgWindow");
 
			var btn = $("#<%= btnOpenDiv.ClientID %>");
 
			btn.bind("click", function()
			{
			    window.data("kendoWindow").open();
			});
 
			window.kendoWindow(
			{
			    width: "500px",
			    height: "200px",
			    center: "True",
			    visible: "False"			
			});			
		    });
	</script>
</body>
</html>

Basically, what I'm trying to do is have the page load with just the button visible then when I click the button I would like the kendoWindow to open.  After the page loads, if I close the kendoWindow and click the button, it opens but it's not centered. I am just getting a little frustrated, any help at all would be greatly appreciated.
Thanks!
-Sean
Nohinn
Top achievements
Rank 1
 answered on 25 Sep 2012
1 answer
78 views
This cool "parallax-scrolling" slider of the Kendo UI Website could be a nice feature for the Kendo UI Web-section.
What do you think about that?

:-)
Sebastian
Telerik team
 answered on 25 Sep 2012
1 answer
97 views
I want to use Kendo Web UI to develop web pages running both on computer and ipad,  Can it support?
Sebastian
Telerik team
 answered on 25 Sep 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
Chat
MultiColumnComboBox
Dialog
DateRangePicker
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Accessibility
Effects
PivotGridV2
ScrollView
Switch
TextArea
BulletChart
Licensing
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
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
SegmentedControl
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?