Telerik Forums
Kendo UI for jQuery Forum
10 answers
377 views
Hi,

I am using the kendoUI window with the following code:

var window = $(".productAddedToCartModalDialog").kendoWindow({
                draggable: false,
                resizable: false,
                width: "300px",
                height: "100px",
                title: "Shopping Cart Notification",
                modal: true,
                actions: ["Close"],
                visible: false
            }).data("kendoWindow");

window.center();
window.open();

However in IE 7 and 8 as well as Firefox 3.6, the window is centered on the current view port only the first time it is open. When I scroll for example further down the page and trigger the action which executes the code above, the window, just shows in the place it was shown before, which is somewhere up the page, where the user cannot see it.
I tested this in Chrome and Firefox 8 and it works fine. Firefox 3.6 does not bother me as much as the IE situation.
Is there a workaround for this problem.

Thanks!
Dimo
Telerik team
 answered on 23 Aug 2012
1 answer
170 views
I have the following:
$("#newBatchWindow").kendoWindow({               
    width: "425px",
    height: "375px",
    title: "New Batch",
    visible: false,
    resizable: false,
    modal: true,
    content: "/Batch/Create"
});

However, when this window is activated using this code, it fails on the call to center(), because batchWindow doesn't contain a reference.
var batchWindow = $('#newBatchWindow').data('kendoWindow');
batchWindow.center();
batchWindow.open();

If I modify the content field to be a full URL, things work as expected. How can I use a relative URL here?
Daniel
Telerik team
 answered on 23 Aug 2012
2 answers
77 views
why can't I search these forums efficiently? Am I missing something?
HR
Top achievements
Rank 1
 answered on 23 Aug 2012
3 answers
139 views
HI forum:
When the type of a cell is date and its value is null, the grid shows the string [object Object] as its value.
When member is null, toString.call(member) returns "[object Object]" instead of "[object Null]" in ObservableObject function for IE8.

I've attached a picture.

Regards,
Oscar.
Travis
Top achievements
Rank 1
 answered on 22 Aug 2012
1 answer
43 views

I'm filtering my grid with the following code:

$("#grid").data("kendoGrid").dataSource.filter({ logic: "or", filters: [{ field: "MyField", operator: "equals", value: parseInt($("#MyDropDown").val())}] });

This will filter the grid fine, but then when I click the "Add new record" button in the grid toolbar, nothing happens.  Editing and deleting still function, but create/add new does not.
Travis
Top achievements
Rank 1
 answered on 22 Aug 2012
1 answer
395 views
I'm working on a page where-by a user can edit an Item and a list of Versions for the item.  I'm trying to use Kendo Models for this for 3 reasons:
  1. I'm using the Model elsewhere to bind to a Kendo Grid
  2. The Model easily allows me to create new records as well as edit existing records
  3. I am making use of the Model's dirty flag and isNew() method to determine when changes need persisting and whether or not to call the create or update method of my transport.
Using models has been working great so far, but I ran into a glitch when dealing with nested data.

If I bind to an array directly within my view model, all is fine:
http://jsfiddle.net/jeffdev/LwS9Z/2/

But if I bind to an array with my model, it breaks:
http://jsfiddle.net/jeffdev/LwS9Z/3/ 
Jeff
Top achievements
Rank 1
 answered on 22 Aug 2012
0 answers
123 views

I have the frame structure below:

<frameset rows="*" frameborder="NO" framespacing="0" border="0">
<frame src="principal.aspx" id="main">
</ frameset>

principal.aspx

<script>
var window = $ ("#window"). kendoWindow ({
         width: "50%"
         height: "50%"
         modal: true,
         visible: false,
         actions: ["Refresh", "Maximize", "Close"]
     }). date ("kendoWindow");
</ script>

<iframe SRC="URL" id="frmConteudo"> </ iframe>
<div id="window"> </ div>

Now I have the problem. I'm inside the frmConteudo and want to access the div window. I can access the div window without problems this way:

$ ("#window", frames["main"].document)

However the need to access. Date ("kendoWindow") and the same is void of the two forms below:

var frame = frames["main"].document;
$
("#window", frame).data("kendoWindow");
$
("#window", frame).data(frame, "kendoWindow");

Any idea?

Fabricio
Top achievements
Rank 1
 asked on 22 Aug 2012
1 answer
287 views
I have a fairly simple grid created from html markup. If I add a colspan attribute to a cell in my tbody,  the grid display does not render correctly. It works without the colspan attribute. 
See attached image for what the grid looks like before and after adding the colspan attribute.




Josh Eastburn
Top achievements
Rank 1
 answered on 22 Aug 2012
3 answers
293 views
Hi

I'm calling a function everytime user switch to a new view (using "data-show") part of the function is to change the title based on user input

my problem is that even when I change the title using jquery with the title span id, I can see Kendo will reset it back to data-title


Note: I'm changing the title using :
$('#view-title').html(q);
$('#view-search').attr('data-title',q);
Josh
Top achievements
Rank 1
 answered on 22 Aug 2012
1 answer
117 views
I have a grid with: selectable: "row"

When I bind a change event to the grid it will fire each time I click on the row, even if it is the same row.  So the selected row is not actually changing, but the event keeps firing anyways.  The same thing happens if I programmatically select the row using the select method.

I would rather the change event only fire when when the selection has actually changed rather than on every re-selection.

Otherwise, you might as well call the event "onSelect" rather than "change".

Alexander Valchev
Telerik team
 answered on 22 Aug 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?