Telerik Forums
Kendo UI for jQuery Forum
5 answers
141 views

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.

Kiril Nikolov
Telerik team
 answered on 15 May 2015
1 answer
10.7K+ views

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?

Kiril Nikolov
Telerik team
 answered on 15 May 2015
5 answers
382 views
I'm using a Gantt object on one of my sites, but for some reason my day/week/month views are all scrunched up more than they need to be.  I have plenty of whitespace to the right inside the entire gantt object, but the view isn't stretching out to fill it.  I see there is a 'listwidth' option to change the width of the left section, but nothing for the right.  What can i do to fix this?
Dimitar Terziev
Telerik team
 answered on 15 May 2015
1 answer
112 views

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

Nikolay Rusev
Telerik team
 answered on 15 May 2015
1 answer
158 views

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

Dimitar Terziev
Telerik team
 answered on 15 May 2015
2 answers
3.0K+ views

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.Image

Ashleigh L
Top achievements
Rank 1
 answered on 14 May 2015
3 answers
2.5K+ views
for KendoGrid I want to make a calculated footer.  Take the total of column A and the total of column B and divide them.
Alfredo
Top achievements
Rank 1
 answered on 14 May 2015
5 answers
777 views
Hi,
We've found that resizing columns in Chrome causes a visible glitch in certain circumstances.
We can reproduce the issue on the Kendo Grid demo page:

1) Open the Demo site in Chrome: http://demos.telerik.com/kendo-ui/grid/column-resizing
2) Reduce the width of a few columns
3) Several columns will 'glitch' and overlay

I have attached an example screenshot.

Please can you investigate and/or propose a solution/workaround?

Thanks,
Anthony

Rahulkumar
Top achievements
Rank 1
 answered on 14 May 2015
2 answers
80 views

Whenever 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

Trevor
Top achievements
Rank 1
 answered on 14 May 2015
3 answers
253 views

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!

Dimitar Terziev
Telerik team
 answered on 14 May 2015
Narrow your results
Selected tags
Tags
Grid
General Discussions
Charts
Data Source
Scheduler
DropDownList
TreeView
MVVM
Editor
Window
DatePicker
Spreadsheet
Upload
ListView (Mobile)
ComboBox
TabStrip
MultiSelect
AutoComplete
ListView
Menu
Templates
Gantt
Validation
TreeList
Diagram
NumericTextBox
Splitter
PanelBar
Application
Drag and Drop
Map
ToolTip
Calendar
PivotGrid
ScrollView (Mobile)
Toolbar
TabStrip (Mobile)
Slider
Button (Mobile)
Filter
SPA
Drawing API
Drawer (Mobile)
Globalization
LinearGauge
Sortable
ModalView
Hierarchical Data Source
Button
FileManager
MaskedTextBox
View
Form
NavBar
Notification
Switch (Mobile)
SplitView
ListBox
DropDownTree
PDFViewer
Sparkline
ActionSheet
TileLayout
PopOver (Mobile)
TreeMap
ButtonGroup
ColorPicker
Pager
Styling
Chat
MultiColumnComboBox
Dialog
DateRangePicker
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Accessibility
Effects
PivotGridV2
Licensing
ScrollView
Switch
TextArea
BulletChart
QRCode
ResponsivePanel
Wizard
CheckBoxGroup
Localization
Barcode
Breadcrumb
Collapsible
MultiViewCalendar
Touch
RadioButton
Stepper
Card
ExpansionPanel
Rating
RadioGroup
Badge
Captcha
Heatmap
AppBar
Loader
Security
TaskBoard
Popover
DockManager
TimePicker
FloatingActionButton
CircularGauge
ColorGradient
ColorPalette
DropDownButton
TimeDurationPicker
ToggleButton
BottomNavigation
Ripple
SkeletonContainer
Avatar
Circular ProgressBar
FlatColorPicker
SplitButton
Signature
Chip
ChipList
VS Code Extension
AIPrompt
PropertyGrid
Sankey
Chart Wizard
OTP Input
SpeechToTextButton
InlineAIPrompt
StockChart
ContextMenu
DateTimePicker
RadialGauge
ArcGauge
AICodingAssistant
SmartPasteButton
PromptBox
SegmentedControl
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?