Telerik Forums
Kendo UI for jQuery Forum
1 answer
637 views
I am working on a Kendo Grid which has a Status column that is an aggregate of statuses of several other columns. I track the individual statuses as integer values and the aggregate column should show the least of the statuses. Now, using template, I am able to render the text for the Status column fine, however, the problem is that I want this column to be filterable. This is not working as the value is calculated.

In DataSource, this is how I have declared the custom field,

    schema: {
        model: {
            Status: function () {
                return helper.GetStatus(this.EntriesStatus);
            }
        }
    }

This is how I used it in the Column definition,

    {
        field: "Status",
        title: "Status",
        width: "100px",
        filterable: true,
        template: kendo.template("#if (HasError) {# <strong class='clrRed' > \#= Status() #\ </strong> #} else { # \#= Status() #\ #} #"),
        hidden: false,
        menu: false
    }

Could anyone point out where I am going wrong or a more efficient way out?
Alexander Valchev
Telerik team
 answered on 15 May 2013
13 answers
608 views
When changing a page's font size, the widgets do not display perfectly. Some parts of the widgets are mis-aligned, and other things happen.

For an example, open http://demos.kendoui.com/web/numerictextbox/index.html. Then with Chrome Developer Tools select the first "input type=text" and as the element's style enter a font size of 16px.
  • The "up/down" buttons will stay at their current location at the top of the span. They should be vertically centered instead.
  • The border at the left side of the "up/down" buttons is too short. There is a gap at the bottom.
What do you suggest? Is it easily possible to change the font size? Can some "magic" be applied globally? Or has this to be done widget for widget?

Michael G. Schneider
mgs
Top achievements
Rank 1
 answered on 15 May 2013
0 answers
318 views
Hi,

I have a grid that has roughly 12 columns each that map to a field within the data or combine multiple.

My question is is there an easy way for me to add a class to a row if a value meets certain criteria?

Example: 

[{Status: Up, ............},{Status:Down,.........}]

First row may be green text, second row may be red text.

I was hoping for something easier than creating a row template, as I am afraid that if I do a row template I lose the ability to show/hide columns and filter. I also didn't want to do the row template simply to keep my html minimal.

Is there a better way that I have overlooked?

**Edit**

I suppose I could create a template for each column item and check the desired field and apply the css there.
{ field: 'Number', title: '#', template:'<div class="a-status-#= Status#">#=Number#</div>' },
Though I do not know how to perform a validation check with the kendo syntax
**   if (Status === "Up") add class, else do nothing  **

** Edit 2 **

Nevermind, poor research on my part. Found another question which adresses the same issue.

http://www.kendoui.com/forums/ui/grid/kendo-ui-style-grid-rows.aspx

I have used the Databound event solution.
Jordon
Top achievements
Rank 1
 asked on 14 May 2013
1 answer
178 views
Hi, my question is how can I abort/cancel the ajax request that is made when I open a Kendo Window with the content as the answer from a URL. This is import for me, because the ajax request that I make takes about 30 seconds to be answered and if a close the window before that, I cant open the window again until the answer comes, because the ajax request keeps working in the browser and blocks the new request. In JQuery you can call abort() to the ajax request object, but i cant find that object in the Kendo Window documentation.

Thanks for youre time
Petur Subev
Telerik team
 answered on 14 May 2013
1 answer
223 views
i have a kendo grid with checkbox column.
i binded a grid with pageable option true my problem is when i check the some rows in page 1 after i change to the page 2 and after come back to page 1 the selected checkboxse are unchecking.
Can any one guid me how to handle it.
Ashish
Top achievements
Rank 1
 answered on 14 May 2013
2 answers
681 views
I've got some code which checks if a page has unsaved changes which is using the hasChanges() method of the Kendo dataSource to detect changes made within a grid:
var changed = self.data("kendoGrid").dataSource.hasChanges();

However, for the grid on one page this is failing because the isNew() method is missing from the data items within the dataSource.  If I inspect the dataSource.data() items all of the items are present, but whereas the items on my other pages include a "dirty" field and an "isNew()" method the ones for this page do not.  As far as I can tell there are no substantial differences between the pages.  The one that works does have a couple of aggregates and a change event handler included in the dataSource which the failing one doesn't but I don't see how that would affect this.

Here is the div for the grid from the page that fails:
                <div id="CentersGrid" data-bind="kendoGrid: 
    {
        data: ReportingCenters, 
        widget: centersGrid, 
        dataSource: {
            batch: true, 
            sort: { field: 'Number', dir: 'asc' } ,
        }, 
        scrollable: false,
        pageable: { pageSize: 15, input: true, numeric: false },
        editable: true, 
        sortable: true, 
        navigatable: true,
        columns: [ 
            { field: 'id', hidden: true } ,
            { field: 'Number', width: '20%' } , 
            { field: 'Description', width: '60%' } ,
            { command: [ {name: 'destroy'} ] }
        ],
        toolbar: ['create'],
        dataBound: function(e) { 
            $('#CentersGrid tbody tr .k-grid-delete').each(function() {
                var currentItem = $('#CentersGrid').data('kendoGrid').dataItem($(this).closest('tr'));
                if (currentItem.CanDelete == false) { $(this).remove(); }
            }) 
        }
    }">

The items that seem to be missing from each data item are: dirty, defaults, fields and isNew().
Brian
Top achievements
Rank 1
 answered on 14 May 2013
2 answers
733 views

If I write any text even it is single word, entire Text is wrapped with <p> tags which is giving empty space (margin) in SSRS report. 
Telerik Editor Control has option to disable this behavior with FixEnclosingP Content Filter.

Is there any configuration in Kendo Editor like FixEnclosingP in Telerik Editor Control?


Alex Gyoshev
Telerik team
 answered on 14 May 2013
1 answer
152 views
I'm adding some routes on demand, and have a need to issue a navigate to the current url fragment so that my new route can be processed. I noticed that calling router.navigate(location.hash) does not work because you have smarts to shortcut the action if the route has not changed.

I implemented the following fix, but wanted to share so you can consider adding support for this in the future:
window.kendo.history.current = "/";
router.navigate(location.hash);
Thanks,
Gary
Petyo
Telerik team
 answered on 14 May 2013
1 answer
375 views
http://demos.kendoui.com/web/grid/editing.html

Is there a way to automatically select (highlight) the content of the cell when the cell has been clicked for editing?
Dimiter Madjarov
Telerik team
 answered on 14 May 2013
1 answer
125 views
I was wondering if it were possible to use the "Window" UI widget for multiple list items.

For example, lets say I had a list of companies with reach having a link to "more details" and that more details linked opened a "Window" for each description. These company lists would be created dynamically so the number of listing will vary. 

<ul>
<li>
Company A
<span class="more_detail">More Details</span>
<div class="window">Company A is Great</div>
</li>
<li>
Company B
<span class="more_detail">More Details</span>
<div class="window">Company A is Great</div>
</li>
<li>
Company C
<span class="more_detail">More Details</span>
<div class="window">Company A is Great</div>
</li>
</ul>

Dimo
Telerik team
 answered on 14 May 2013
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
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?