Telerik Forums
Kendo UI for jQuery Forum
0 answers
41 views
Hello,

I have a code like this:
<div id="wnd1">
    <div>Click me!</div>
    <script type="text/javascript">alert('executed 1');</script>
</div>
 
<script type="text/javascript">
    (function ($) {
        $("#wnd1").kendoWindow({
            height: "500px",
            width: "400px",
            modal: true,
            draggable: true,
            resizable: false,
            visible: false
        });
    })(jQuery);
</script>

And in this case alert is executed twice. First time because of initial script rendering and second when window is initialized.
Should it be such case and how to prevent it?

Also I can see this window during the second alert, is it ok that window shows and hides when "visible: false"?

Vladimir
Volodymyr Oliinyk
Top achievements
Rank 1
 asked on 13 Apr 2012
1 answer
262 views
I've had a request come in for a client for this feature and wondering on the best way to implement this with the Kendo Grid. I know the demos actually show this, but not actually within the filtering selectable options.

What I'd like is potentially a custom filter (say a customName instead of number/string etc) that I can create, then call on each column to pre-populate certain row data and somehow call this into the Grid API to filter on the selected value. Such as, say, a number will allow you to select a number, a customName attribute will allow you to select from a dropdown list of certain elements.

Is this possible if I delve into the nitty gritty of the Grid API?
Iliana Dyankova
Telerik team
 answered on 13 Apr 2012
0 answers
43 views
Unable to view grid data component in firefox 3.0.19 version.
i am using Kendo UI v2011.3.1129 version.

Please assist me.

Thanks in Advance.
Atit
Top achievements
Rank 1
 asked on 13 Apr 2012
0 answers
107 views
Hi,

I've been using the last version with the MVVM and new DataSource, and I have a problem when adding an entity to a remote DataSource.

After sending the ajax request for adding a new entity, the response is merged with the entity.
This is done in dataSource._accept : 
if (type !== "destroy") {
models[idx].accept(response[idx]);

But the Model.accept will extends the model and will override all observable fields by the response from the server.
I have to modify the Model.accept method like this : 
             if (that instanceof ObservableObject) {
            that.init(data);
            } else {
                extend(that, data);
                if (that.idField) {
                    that.id = that.get(that.idField);
                }
            }

After the modification, my code works but I strongly believe it's not the good way.

Thanks in advance,

Laurent.


Laurent
Top achievements
Rank 1
 asked on 13 Apr 2012
0 answers
56 views
Unable to display Grid data component in firefox 3.0.19 version.
i am using Kendo UI v2011.3.1129 version.

Please assist me.

Thanks in Advance.

Atit
Top achievements
Rank 1
 asked on 13 Apr 2012
0 answers
74 views
Hello-

I'm trying to use Kendo grid and so far it's pretty good.  The one thing I don't heart about it is that when you do
$("#mydiv").kendoGrid( { dataSource: myJsonObjects })
it takes the explicit property name.  For a good user experience, CamelCasing isn't awesome.  Instead, I'd like to have my columns in English, so I would not want
"AccountName" and "ThisIsAColumnThatIsHardToRead"
but rather
"Account Name"  and "This Is a Column That Is Easy To Read".

So I walk my JSON objects and insert spaces in the property names (this is unusual but 'legal' in Javascript).  But when I hand this revamped object list to Kendo, I get an error:
Invalid template: '<tr><td>#=Account
Name"</td><td>#=This Is A Column That Is Easy To
Read</td></tr>'enerated code:'var
o,e=kendo.htmlEncode;with(data){o='<tr><td>'+(Account Name)
+'</td><td>' + (This Is A Column That Is Easy To Read) +
'</td></tr>';>return o;'
Triple
Top achievements
Rank 1
 asked on 13 Apr 2012
6 answers
235 views
Is there any documentation on the Model? I see it for DataSource, but I know there are things involved, but I cannot find a good source of info on it. Such as things we can decorate the individual fields with...
Hammad
Top achievements
Rank 1
 answered on 13 Apr 2012
4 answers
1.6K+ views
When I programmatically select a node using the select(node) method, the select event handler (applied when the TreeView was created) does not get called.
Miguel
Top achievements
Rank 1
 answered on 13 Apr 2012
2 answers
144 views
Hi,

Q: Is it possible to create tooltip for the column in grid by setting some property? if there is no property then how can we achieve that?
Q: Can we add row with data in grid? (Empty row insertion is there but i want to add a row with data)
Q: Can we adjust the width of grid column by setting (ex: width: adjustable) property?

Please post me the answer on my  id mahaveer_agrawal@infosys.com.

Regards
Mahaveer
mahaveer_agrawal@apple.com
Jayalakshmi
Top achievements
Rank 1
 answered on 13 Apr 2012
0 answers
64 views
Please suggest how can I place button/dropdown menu on Chart's layout? it can be on the top left and right corners of the chart.

Thanks!
Ilyas
Top achievements
Rank 1
 asked on 13 Apr 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?