Telerik Forums
Kendo UI for jQuery Forum
0 answers
118 views
Hi can anyone let me know how to design a Clustered stack bar chart.
I have already designed stack barchart, but having no idea on clustered stack bar chart.?
nitin
Top achievements
Rank 1
 asked on 29 Jul 2012
2 answers
277 views
Hi Telerik team,

I have a requirement where I would need to let user to select all rows in the grid , by clicking a checkbox , Select/UnSelect All.  Which selects all rows. Click a button, that will take action on the selected rows.
1. Do you have sample reference to do this?

Thanks,
Peruri
Mike
Top achievements
Rank 1
 answered on 28 Jul 2012
1 answer
180 views
In the Kendo Web UI MVVM example (index.html), if you would like to see the kendoComboBox object with value and description bindings instead of the browser's select element, just paste this over the existing script tag in the body of index.html.  Hope this helps someone.

<script>
     $(document).ready(function () {
         var genderCollection = [{ description: "Guy", value: "Male" }, { description: "Girl", value: "Female"}];
         var genderElement = $("#gender");
 
         $(genderElement).width(($("#fname").width() + 2));
         $(genderElement).css("margin-left", "-2px");
         $("#gender").kendoComboBox({ dataValueField: "value", dataTextField: "description" });
 
         var viewModel = kendo.observable({
             firstName: "John",
             lastName: "Doe",
             genders: genderCollection,
             gender: "Male",
             agreed: false,
             confirmed: false,
             register: function (e) {
                 e.preventDefault();
                 this.set("confirmed", true);
             },
             startOver: function () {
                 this.set("confirmed", false);
                 this.set("agreed", false);
                 this.set("gender", "Male");
                 this.set("firstName", "John");
                 this.set("lastName", "Doe");
             }
         });
 
         kendo.bind($("#example"), viewModel);
 
     });
 </script>

Dan
Long
Top achievements
Rank 1
 answered on 28 Jul 2012
2 answers
181 views
Hi All,

Has anyone experienced the Kendo UI from MVVM pattern? I would like to see the pitfalls in this decision. So that I would be ready for the unexpected.

Thanks for reading
Long
Top achievements
Rank 1
 answered on 28 Jul 2012
0 answers
214 views
Can someone tell me why this is an invalid template

<script type="text/x-kendo-template" id="recordtemplate">
    <center><h2>#= ActivityName #</h2></center>
@using (Html.BeginForm("recordcompletedactivity","engage"))
{
@(Html.Kendo().DatePicker()
.Name("DateCompleted") 
.Min(new DateTime(1900, 1, 1)) 
.Max(new DateTime(2099, 12, 31))
.Format("MMddyyyy")
.Value(DateTime.Now.ToString()));
@Html.CheckBox("Attest", new { @class = "cb" });
@Html.Encode("Check here to confirm completion this activity");
<br/><br/>
<center>
<input type="submit" class="submit" name="Button" value="Submit" />
</center>
}
</script>


i get the following error
Uncaught Error: Invalid template:' <center><h2>#= ActivityName #</h2></center> <form action="/engage/recordcompletedactivity" method="post"><input class="k-input" id="DateCompleted" name="DateCompleted" type="date" value="07272012" /><script> jQuery(function(){jQuery("#DateCompleted").kendoDatePicker({format:"MMddyyyy",min:new Date(1900,0,1,0,0,0,0),max:new Date(2099,11,31,0,0,0,0)});}); ' Generated code:'var o,e=kendo.htmlEncode;with(data){o='\n <center><h2>'+( ActivityName )+'</h2></center>\t\n<form action="/engage/recordcompletedactivity" method="post"><input class="k-input" id="DateCompleted" name="DateCompleted" type="date" value="07272012" /><script>\n\tjQuery(function(){jQuery("';DateCompleted").kendoDatePicker({format:"MMddyyyy",min:new Date(1900,0,1,0,0,0,0),max:new Date(2099,11,31,0,0,0,0)});}); ;o+=;}return o;' 
bob
Top achievements
Rank 1
 asked on 27 Jul 2012
0 answers
129 views
I'm displaying records from a DB in a kendo grid, and one DB field is a datetime.

I'm using the following to display the value: kendo.toString(datetime,"dd MMMM yyyy, h:MM:ss")

This works, but the time it displays is incorrect. For instance if the value in the DB is "2012-07-27 15:28:11.383" the value displayed will be "27 July 2012, 3:07:12", which is off by about 21 minutes.

What's up with that?
David
Top achievements
Rank 1
 asked on 27 Jul 2012
0 answers
94 views
Hi,

I have an object in my Model that must be bounded to two ViewModels. This object is loaded with ajax from the server.

This object must be  bounded to two regions of my screen that have, each one, different ViewModels. I would like that when the response arrives from my Ajax service the two widgets, bounded to my ViewModels, be updated.

How can I do this.

Thanks
mvbaffa
Top achievements
Rank 1
 asked on 27 Jul 2012
4 answers
326 views
OK, not exactly a question on ListView per se, but spinning wheels for some reason on this guy.

I have the following template and ListView on a page:
$("#top3").kendoListView({
                dataSource: dataSourceCustomers,
                template: kendo.template($("#top3template").html())
});
 
 
<script type="text/x-kendo-tmpl" id="top3template" >
        <div class="top3item">
            <dl class="subtitle">
                <dt><b>${CustomerName}</b></dt>
                <dd>${kendo.toString(Value, "c")}</dd>
            </dl>
        </div>
     
</script>

What I'm looking for is a way for format the FIRST item on the list returned (bold, diff color, etc.).  It sounds simple enough I should be able to do it with jQuery alone, but its just not coming to me.  Any ideas on formatting the first item returned?  Thanks in advance for the help!
Iliana Dyankova
Telerik team
 answered on 27 Jul 2012
2 answers
609 views
I am trying to add radio button in a template column of the grid -

columns.Bound(r => r.Approved)
    .ClientTemplate(" <input type='radio' id='Approve' name='chkApprove' /><input type='radio' id='Deny' name='chkDeny' />")
    Title("Approve");

But the radion buttons show up as a single checkbox control. Can anyone help me with this?

 

 

 


Vaishali
Top achievements
Rank 1
 answered on 27 Jul 2012
1 answer
119 views
I have copied and pasted the code from the "Build Apps With Kendo UI Mobile" how-to but it doesn't appear to be working.  The tabstrip navigation at the bottom appears and I can navigate to the "about.html" page with a slide transition but when I click on the "Home" link it doesn't take me back.  Any help would be greatly appreciated.

Todd
Telerik team
 answered on 27 Jul 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?