Telerik Forums
Kendo UI for jQuery Forum
0 answers
123 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
489 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
221 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
147 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
98 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
50 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
75 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
0 answers
237 views
How do i post a dynamic url to a method when using kendo grid with ajax bindings?

@(Html.Kendo().Grid(Model)
    .Name("Grid")
 
    .Columns(columns =>
    {

        columns.Bound(p => p.SalonName).Groupable(false);
        columns.Bound(p => p.ServiceName);
        columns.Bound(p => p.ResourceName);
        columns.Bound(p => p.StartDate).Format("{0: yyyy-MM-dd}").Title("Datum");
        columns.Bound(p => p.StartDate).Format("{0:hh:mm}").Title("Tid");
        columns.Bound(p => p.Duration);
        columns.Command(command => command.Custom("Detaljer").Click("BookingDetails"));
        columns.Command(command => command.Custom("Avboka").Click("confirmBookingRemoval"));
    })
     
    .Pageable()
    .Sortable()
    .Scrollable()
    .Selectable()
    .DataSource(dataSource => dataSource
        .Ajax()
                .Read(read => read.Action("ReadBookings", "Kund"))
                .ServerOperation(true)
                .PageSize(25))
                .Events(events => events.Change("grid_selected"))
)

<script type="text/javascript">
    function BookingDetails(arg) {
        var grid = $('#Grid').data('kendoGrid');
        var dataItem = this.dataItem($(arg.currentTarget).closest("tr"));
        var id = dataItem.AppointmentID;
        window.location.href = "@Url.Action("Detaljer", "@User.SalonKey/Boka")" + "/" + id;
        };
</script>
Stefan
Top achievements
Rank 2
 asked on 25 Sep 2012
1 answer
186 views
Hi,
Depending on an action that the user may make on a page, I want to set the column visibility without having to re-read the grid source or post back the page.  Is this possible?  I am using ajax binding if that matters.

Thanks,
David A.
Rosen
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
Date/Time Pickers
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)
SPA
Filter
Drawing API
Drawer (Mobile)
Globalization
Gauges
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
Chat
DateRangePicker
Dialog
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
OrgChart
TextBox
Effects
Accessibility
ScrollView
PivotGridV2
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
Popover
DockManager
FloatingActionButton
TaskBoard
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
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?