Hi, recently I'm just want to change all jqGrid to kendo Grid, but i'm not sure if kendo grid can do things like customized color for header columns or cells. Please see the attached screenshot.
The requirements is like we need display color dynamic and gradient with the cell data. For example if the data is in range of -100,0 the background should display in red and gradually change to yellow, if it's in range of 0,100 it's yellow and gradually change to green.
if you guys can create an example it will be great.
I've got a dropdown created as a select in a template:
<select id="groupby" class="content-box text-left"> <option value="Default"><cfoutput>#APPLICATION.LC.getValue("GroupByDropdown")#</cfoutput></option> <option value="Category"><cfoutput>#APPLICATION.LC.getValue("CourseCategoryDropdown")#</cfoutput></option> <option value="Group"><cfoutput>#APPLICATION.LC.getValue("GroupDropdown")#</cfoutput></option></select>I need to keep it like this in order to be able to use our multi-lingual system for the options (seen above, the "APPLICATION.LC" bits).
I'm trying to set the selected value as shown in the API example (http://docs.telerik.com/kendo-ui/api/javascript/ui/dropdownlist#methods-value), but I keep getting a Javascript error.
$("#groupby").kendoDropDownList(); $('#groupby').data("kendoDropdownList").value("Group");
TypeError: $(...).data(...) is undefined
$('#groupby').data("kendoDropdownList").value(group_by);
I'm guessing that is is because I'm just "kendo-izing" a dropdown, versus filling it via a datasource like in the example.
So, how would I go about setting the selected value with my set up?
Hi,
When I work with groups of columns, and I try to show a group that not is the first one, columns header aren't displayed in correct order. As you can see in the example, what could I do to do that?
http://dojo.telerik.com/ukAsO/3
Please tell me how to convert a column to a link in the Gantt chart. I tried to convert the same by iterating the <tr> tags and converting the first column content to a link however, when the task are re-ordered it get disturbed.
Column properties only support date formatting.
Please help
I'm sure I'm missing something simple, but I can't seem to figure this one out.
Say I've got a template where I need to display the image for an object, and if the object has no image, display a default. I currently have this code inside my template:
# if (data.Image.length > 0) { # <img src="/content/#= data.ID #/Image/#= data.Image #" class="img-responsive border-radius" /># } else { # <img src="/content/default.jpg" class="img-responsive border-radius" /># } #Which works well, but I'm not thrilled w/ having to repeat the actual HTML image tag and classes - this is a small example, but what if I had a condition where there could be 10+ options for the image src?. Then I'd have the exact same HTML 10+ times.
I've tried creating a variable to hold the image source and then using that in the template, but this doesn't seem to work:
# if (data.Image.length > 0) { var image_var = "/content/#= data.ID #/Image/#= data.Image #"; }else { var image_var = "/content/default.jpg";}#<img src="#= image_var #" class="img-responsive border-radius" />The code above works for default image, but the src for the object with an image doesn't actually get the ID and image name values - this is what's in the src when the element is inspected:
/content/;$kendoOutput+='= data.ID ';/Image/;$kendoOutput+='= data.Image ';Removing the "#= #" around the data just puts the "data.ID" text into the src:
/content/data.ID/Image/data.ImageWhenever you click anywhere outside of the scheduler the selected cells are deselected (the k-state-selected class is removed). I want to keep the selection until a new one is made. Can anyone help me out with this?
Thanks
Hi,
we ware using the gantt-chart which has on the right side a two-level header. I mean depending on the choosen view (.e.g. month) in the first row are the months shown and in the second row are the weeks.
But what we need is a three-level header: The first row shows the years, then the months and the third row shows the weeks.
Is this possible?
Best Regards!