Telerik Forums
Kendo UI for jQuery Forum
0 answers
89 views
Hi,

Below is the code where i use kendo window to show a window where user can enter email address and on clicking send it fires c# button click event.
But that doesn't happen, the button click event doesn't fires. What could be the issue??
Also to make avoid other problems, i have set the causesvalidation to false.

<div id="Emailwindow">
        <div id="mainPart">
        <fieldset>
        <legend><asp:Literal ID="ltrlLegendText" runat="server"></asp:Literal></legend>
        <table cellspacing="10">
            <tr>
                <td colspan="2" align="center">
                    <asp:Label ID="lblmsgtoShow" EnableViewState="false" runat="server" Text=""></asp:Label>
                </td>
            </tr>
            <tr>
                <td align="right">
                    <span class="redstar">*</span>
                    <asp:Label ID="lblEmail" runat="server" Text="Your Email ID:">
                    </asp:Label>
                </td>
                <td><asp:TextBox ID="txtSendEmail" EnableViewState="false" Width="250px" runat="server"></asp:TextBox></td>
                     
            </tr>
            <tr>
                <td></td>
                <td><span id="EmailMsg" enableviewstate="false" runat="server"></span></td>
            </tr>
            <tr>
                <td></td>
                <td align="left">
                    <span class="mandatoryMsg">Fields marked (<span class="redstar">*</span>) are mandatory</span>
                </td>
            </tr>
            <tr>
                <td></td>
                <td align="right">
                    <asp:Button ID="btnSendEmail" CausesValidation="false" runat="server"
                        Text="Send" Width="80px" onclick="btnSendEmail_Click" />
                </td>
            </tr>
        </table>
        </fieldset>
    </div>
Rohit
Top achievements
Rank 1
 asked on 26 Mar 2012
5 answers
163 views
Hi everyone !

To begin, thank you to Team Kendo UI framework for this First, thank you to Team KendoUI framework for this really powerful.

I am facing a problems for viewShow, even with the different possibilities of use:

Here are the different ways that I used to use viewShow, and nothing appears in the event console 

var app = new kendo.mobile.Application(document.body, {
  transition: "slide",
      hideAddressBar: true
  });
app.bind("viewShow", function(e) {
    console.log(e);
  });
 
OR
 
var app = new kendo.mobile.Application(document.body, {
  transition: "slide",
  hideAddressBar: true,
  viewShow: function (e) {
    console.log(e);
  }
  });

Someone can explain me why i encounter this problem ?

Thanks,
Tyler
Tyler
Top achievements
Rank 1
 answered on 26 Mar 2012
10 answers
592 views
kendo.bind() binds the element and all child elements to the viewModel by calling bindElement.
bindElement calls first unbindElement so that works fine if you call kendo.bind() multiple times, e.g. when you want to bind another model to your markup.
But bindElement also creates widgets if an element has a data-role attribute.
unbindElement on the otherhand does not destroy the element. So bindElement will again create the widget when you call kendo.bind() a second time. Should there not be a check if the widget is already created?

So
1) In the bindElement (or somewhere deeper) should bet checked if the widget is already created and if so do not create again
2) Add a parameter to kendo.unbind() to optionally destroy the widgets.
        a) This would be a perfect oppertunity to destroy dom elements like the popup of a dropdownlist ( see http://www.kendoui.com/forums/ui/dropdownlist/how-to-clean-up-dropdownlist-lists.aspx#1991068)
        b) By making it optional you have the oppertinity to keep all your widgets and just only bind a new (view)model to your markup.

Regards, Jaap
Jaap
Top achievements
Rank 2
 answered on 26 Mar 2012
4 answers
113 views
When you want to click on the scrollbar to scroll, the popup is closed.
You can reproduce it in your own demos:
http://demos.kendoui.com/beta/web/dropdownlist/remotedatasource.html

In the current version it is working fine:
http://demos.kendoui.com/web/dropdownlist/remotedatasource.html

Regards, Jaap
Jaap
Top achievements
Rank 2
 answered on 26 Mar 2012
2 answers
287 views
I have this HTML:
<select data-role="dropdownlist", data-bind="value: xxx", data-text-field="field1", data-value-field="field2", data-source='{"transport":{"read":"my-url"}}' />
Then I bind this template.
But the data-source is not used.

Found an issue in the function kendo.initWidget.
Inside that function there is the code:

if (dataSource) {
     options[
"dataSource"] =
window[dataSource];
}

dataSource does here indeed have the transport object I defined in the attributes. But window[dataSource] is undefined.
Seems to me that this line of code must be:

if (dataSource) {
     options[
"dataSource"] = dataSource;
}

When I change it this way, the dropdownlist works!
So not sure if this is a bug or that I am doing something wrong.

Regards, Jaap
Jaap
Top achievements
Rank 2
 answered on 26 Mar 2012
4 answers
85 views
Hi team,

I attended the webinar yesterday and today I started testing things out.

I followed all the steps and created tabstrip.

With 3 html pages.

Clicking on tabstrips pointing to html page is not working. Link is getting created like account.html/#account.html and it is not working.

R u going to load the demo you shown somewhere so that we can match code and see what we are doing wrong.
Petyo
Telerik team
 answered on 26 Mar 2012
6 answers
961 views
Hello,
How do I center the draggable to the mouse pointer?
Petyo
Telerik team
 answered on 26 Mar 2012
2 answers
78 views
Hi, 
 I have too much data to display all label (100 Records) so I need to show some label, please tell me how to.

   such as

data [
{
d1 = "00"
value = 90
}, {
...
}, {
dn = "99"
value = 23
}
}

show only dx%5 == 0 or something like this

Thank you, ^ ^
Sorry for my english
Tanawatra
Top achievements
Rank 1
 answered on 26 Mar 2012
1 answer
107 views
Hi,

I used the this article (http://www.adobe.com/devnet/html5/articles/getting-started-with-phonegap-in-eclipse-for-android.html) to
build my Kendo Mobile Application. 

The Applications is working Ok as a Web Application but the Phonegap version has a problem. It works ok but when I turn the tablet to landscape the application crashes.

Is there any known issue about this ???

Thanks in advance
mvbaffa
Top achievements
Rank 1
 answered on 26 Mar 2012
4 answers
523 views
I have a JSON object that is returned from the WS which will have a sample of below:
 
{
    "MenuID"5,
    "MenuVersion"1,
    "MenuName""Lunch Menu",
    "MenuItems"[
        {
        "Name""TUSCANI MEDITERRANEAN CON POLLO",
        "Description""Pasta",
        "PKID"2,
        "ParentID"1,
        "Ingredients"[
            {
            "PKID"123,
            "IngName""Cheese",
            "Included"true,
            "ExtraPrice"0},
        {
            "PKID"124,
            "IngName""Sausage",
            "Included"false,
            "ExtraPrice"0.99}
        ],
        "ItemPricing"[
            {
            "PKID"456,
            "SizeName""Large",
            "SizePrice"12.99},
           {
            "PKID"678,
            "SizeName""Small",
            "SizePrice"14.99}
        ]}
    ]
}​ 

Are there any examples on how to work with complex objects like these. (Loop through the Menu items in this example and being able to display required info.) . I need to dynamically display the prices or ingredients to the user based on what is selected.  I will be having more than one Menu Item to work with.

Thanks,
Chandu
Andre
Top achievements
Rank 1
 answered on 25 Mar 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?