Telerik Forums
Kendo UI for jQuery Forum
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
79 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
101 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
268 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
204 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
0 answers
110 views
Hi all,

My question is around passing query string parameter to another page.(From Default.htm  to EmptyView.htm)

As you know when you navigate url looks like: http://localhost/views/Default.htm#EmptyView.htm?id=1 and browser doesn't render this url.

Any suggestions? How can I pass parameter in such situation.

Cheers.
Tronur
Top achievements
Rank 1
 asked on 25 Sep 2012
0 answers
274 views
HI,
I made an interface with some controls, from Kendo. It's a number, textbox and dropdownlist. What it does it's create many copies of itself by the press of the "+" button and delete a row by the press of it's "-" button.

Here's the code:
{% extends "saloons/templates/base.html" %}
{% from "ui/forms/macro.html" import wtform %}
{% block content %}
  <form method="POST" action="">
    <table>
        <tr>
            <td>{{ form.order_date.label }}</td>
            <td>{{ form.order_date }}</td>
        </tr>
    </table>
  <div id="grid-users"  class="grid-content" style="text-align: center; width: 100%!important">
      <table id="grid">
    <thead>
      <tr>
        <th data-field="number" style="text-align: center">Nro.</th>
        <th data-field="item" style="text-align: center">Articulo</th>
        <th data-field="staff" style="text-align: center">Usuario</th>
        <th data-field="button" style="text-align: center">Añadir/Remover</th>
      </tr>
    </thead>
    <tbody id="pedidos">
      <tr>
        <td>1.</td>
        <td>{{ form.item }}</td>
        <td>{{ form.staff }}</td>
        <td><button type="button" id="add_textbox">+</button></td>
      </tr>
    </tbody>
      </table>
      <center>
     <div class="buttons">{{ form.save }}</div>
      </center>
  </div>
  </form>
<script type="text/javascript">
    $(function() {
        $("#save").attr('class','k-button');
        $("#c0").attr('class', 'k-input');
        var sel = $("#t0").clone();
        var sel2 = $("#c0").clone();
        var i = 1;
        var data = "{{ inventory }}".replace("[", "").replace("]", "");
                var a = data.split(",");
                for(j=0;j<a.length;j++)
                {
                  if(j == 0){
                   a[j] = a[j].substring(2,a[j].length -1);
                  }
                  else
                  {
                    a[j] = a[j].substring(3,a[j].length -1);
                  }
                }
        $("#add_textbox").attr('class', 'k-button');
        $("#add_textbox").live('click', function() {               
            i++;
            $("#pedidos").append('<tr>' +
                        '<td>'+ i +'. </td>' +
            '<td id="c'+ i +'"></td>' +
            '<td id="t'+ i +'"></td>' +
            '<td><button type="button" rel="del" class="k-button">-</button></td>' +
            '</tr>');
            $(sel2).attr('id',"tc"+i);
            $(sel).attr('id',"ts"+i);
            $(sel2).appendTo("#c"+i);
            $(sel).appendTo("#t"+i);
            $("#tc"+i).css('width', 180);
            $("#tc"+i).kendoAutoComplete({
                   dataSource: a
                        });
            sel = $(sel).clone();
            sel2 = $(sel2).clone();
            $("#ts"+i).css('width', 270);
            $("#ts"+i).kendoDropDownList();
        });
                 
                $("button[rel=del]").live('click', function() {
                   $(this).parent().parent().remove();
                   i--;
                    
                   var a2 = 0;
                   $("#pedidos tr").each(function(i){
                      a2++;
                      $(this).find("td:first").html(a2);                     
                   });                  
        });
                 
                 
     
        $("#order_date").kendoDatePicker({
             min: new Date(),
             value: new Date(),
                     format: "dd/MM/yyyy"
          });
        $("#order_date").attr('disabled','disabled');
         
        $("#grid").kendoGrid({
          height: 460,
          sortable: false,
          columns: [{field:"number", width:40},
                {field:"item", width:40},
                {field:"staff", width:80, editor: function(container, options){
                  }},
                {field:"button", width:40}]
 
          });
        $("#t0").css('width', 270);
        $("#t0").kendoDropDownList();
         
        $("#c0").css('width', 180);
        $("#c0").kendoAutoComplete({
                    dataSource: a
                });
        });
</script>
{% endblock %}

Happens that at some point when you start deleting rows, some dropdowns and textboxes are assigned to the wrong rows. At first I thought that it was because some ids didn't match when making the recount in the minus button, but I already tried that.

Can you help on this one, please?
Christian
Top achievements
Rank 1
 asked on 25 Sep 2012
4 answers
362 views
I am attempting to load a grid into the content of the first tab in a tabstrip.  I have tried several variations of the code and how the grid loads, including via the "activate" event.  Here is a jsfiddle of a basic version of the code.  The grid works with the tabstrip code commented out.  It seems like it would be a simple oversight.
Aparna
Top achievements
Rank 1
 answered on 24 Sep 2012
6 answers
423 views
I have a menu inside a splitter and when it expands, it expands outside the spitter, and the splitter needs to be resized to see the menu items.

Is it possible to change the order of a menu so the overflow is not hidden and it expands over the spitter?

This post: http://www.kendoui.com/forums/ui/menu/menu-z-index.aspx and http://www.kendoui.com/forums/ui/menu/menu-splitter-hides-the-pop-ups.aspx don't work. All this does is cause scrollbars to show on the splitter pane containing the menu, it doesn't actually make the menu items expand over the top of the splitter.
Audrey
Top achievements
Rank 1
 answered on 24 Sep 2012
2 answers
174 views
Hi,

1. From a webpage lets say(a.aspx), I have opened a kendo window(which is again a web page say b.aspx)
2. I have a close button inside b.aspx .
3. now once i click on the close button , the keno window should be closed.


Any suggestions.
Thanks in advance
Michael
Top achievements
Rank 1
 answered on 24 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
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
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?