Telerik Forums
Kendo UI for jQuery Forum
0 answers
102 views
I'm using the Kendo ComboBox with an <asp:TextBox> and a DataSource which filters over about 6k records. Then the user chooses one value and saves it. When the page is loaded again, I need to bring the ComboBox populated with the choosen value. What I save is an Id (the dataValueField) but displaying a Name (the dataTextField, something really common).

I tried using $("#myField").data("kendoComboBox").value(myId) but it just shows this Id in the ComboBox span. If I search the Name and put it on my TextBox, the Name is shown nicely, but the value isn't assigned, what will cause problems if the users wants saving again.

It would be nice to do it the right way just with the Page_Load, and not forcing an Ajax request when the page comes to the user, which was the only way I can deal with it until now.

What is the right approach to bring the ComboBox filled with the desired value during my Page_Load, showing the Name as the current text but bringing also the Id to use as the current value of ComboBox?
Erick
Top achievements
Rank 1
 asked on 09 May 2012
0 answers
166 views
Hello, 

   I have a problem to validate a DatePicker. There it is :

   If the user enters a invalid DateTime, the DatePicker's value returns null, but I want to know what he entered to do something about it.
   I cannot deal with a null value because my datepicker can be empty wich is also a null value.
   
   Exemple :  if the user enters 62/01/2012, the value of the datepicker is null and I want to get 62/01/2012 even if it's wrong.

  So, any ideas on how I can either get the wrong value or even get to know directly from the datepicker if the value is valid?
Alexandre
Top achievements
Rank 1
 asked on 09 May 2012
2 answers
97 views
I want to implement traditional anchor names to allow the user to jump down the page to view navigation below the primary content, and from there to jump back to top - this appears to be in conflict with the way view navigation works, however - i.e. whether via KUI button or vanilla link, it results in "loading..." while the page tries to move to a non-existent view - is there a workaround, or am I missing something, or ?  Thanks! :)
DJG
Top achievements
Rank 1
 answered on 09 May 2012
1 answer
3.6K+ views
Do anyone have an example of template column that uses a data field to build a url?
Phillip
Top achievements
Rank 2
 answered on 09 May 2012
3 answers
93 views
 Hi to all :

All I need to learn is : Is that possible to make chart of a log which comes with separate sheet and updates itself every lets say 30 sec.?
If yes , can you please provide a example ?
lets say my log has these information and keeping in document named  " try.json"  (this file updates itself ever 30 sec.)


 [ { "year": "2000", "sales": 200 }, 
  { "year": "2001", "sales": 450 }, 
  { "year": "2002", "sales": 300 }, 
  { "year": "2003", "sales": 125 }
]

Iliana Dyankova
Telerik team
 answered on 09 May 2012
1 answer
159 views
and also Data Source assigning...

give me any example

Thanks for your reply...  
Vesselin Obreshkov
Top achievements
Rank 2
 answered on 09 May 2012
4 answers
160 views
Have a look at the fiddle

http://jsfiddle.net/stevescotthome/SgLsB/5/

So I data-bind attr on the h3, and it works fine...but if I move that same code down into the template, it returns class="undefined"
sitefinitysteve
Top achievements
Rank 2
Iron
Iron
Veteran
 answered on 09 May 2012
0 answers
83 views
Hi all,

i have refered video(Get Started With The Kendo UI DataSource) provided 
by kendo team and i have tried to do the same, but on click of create-click button 
create: {} section of datasource is not called. as per video on click of create 
button create:{} section will be called automatically.
 please find the code example below. 
 $(document).ready(function () {             // --------------------------------------------------------------------------------             // DataTable Section             // --------------------------------------------------------------------------------             clinetDataSource = new kendo.data.DataSource({                 batch: true,                 editable:true,                 transport: {                     create: {                         url: _WebServiceAddress + "Client/Client",                         contentType: "application/json; charset=utf-8",                          type: "POST"                      },                     read: {                         url: _WebServiceAddress + "Client/ClientTable",                          datatype: "odata"                     },                     parameterMap: function (data, operation) {                         if (operation !== "read" && data.models) {                                        return { models: kendo.stringify(data.models) };                                    }                                    else if (operation != "read") {                                        // web service method parameters need to be send as JSON. The Create, Update and Destroy methods have a "products" parameter.                                        return JSON.stringify(data)                                    }                     }                 },                 schema: {                     model: clientModel                 },                 pageSize: 10,                 batch: true             });             var clientModel = kendo.data.Model.define({                 id: "RecId",                 fields: {                     RecId: { editable: false, nullable: true },                     ClientName: { type: "string" },                     ResponsibleName: { type: "string" },                     IsActive: { type: "boolean" }                 }             });              _Table=   $("#tableClientDetails").kendoGrid({                     columns: [                      {field: "RecId", title: "Action", width: 50,                       template: '<img class="buttonEditTable" id="buttonEditTable_#=RecId#" alt="#= RecId #" src="/Desktop/Global/Images/DataTable/Edit.png"/> '                      },                     { field: "ClientName", title: "Name" },                     { field: "ResponsibleName", title: "Contact Person" },                     { field: "IActive", title: "Active", width:100,                         template: '<input class="checkboxActive" id="checkbox_#=RecId#" type="checkbox" #= IsActive ? "checked=checked" : "" # ></input>'                     }                 ],                     dataSource: clinetDataSource,                    groupable: true,                      filterable: true,                     sortable: true,                     pageable: true,                     scrollable:false,                     editable: true                 });                            });                         $("#create-client").click(function () {                 clinetDataSource.add({                     Address: $("#textareaAddress").val(),                     ResponsibleEmailAddress: $("#fieldContactPersonEmailId").val(),                     Telephone: $("#fieldTelephone").val(),                     City: $("#fieldCity").val(),                     State: $("#selectState").find(':selected').text(),                     Country: $("#selectCountry").find(':selected').text()                 });                 clinetDataSource.sync();                             }); please advice. how create:{}/update:{} will be called. Thanks, Shankar
Shankar
Top achievements
Rank 1
 asked on 09 May 2012
6 answers
478 views
The menu has a flash of unstyled content (FOUC) before it renders, how do I fix that? Ideally, I'd have the menu fade-in after the render is complete.

Thanks.
LyphTEC
Top achievements
Rank 1
 answered on 09 May 2012
2 answers
1.1K+ views
Hi,

I am using password input in my application, the problem that sometimes a white text box is displayed next to the input (where I type in) to show the written characters for a second then turns the characters to starts.

<ul data-role="listview" data-style="inset">
                <li>
                    <input name="signinEmail" type="email" id="signinEmail" value="" placeholder="Email Address"/>
                </li>
                <li>
                    <input name="signinPassword" type="password" id="signinPassword" value="" placeholder="Password"/>
                </li>
            </ul>

I attached a screenshot with the described issue.

Amr.
Dombi
Top achievements
Rank 1
 answered on 09 May 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?