Telerik Forums
Kendo UI for jQuery Forum
1 answer
1.3K+ views
How can I instruct the combo box filter to operate on multiple columns (in effect a composite search)?

Simple example :
Lets say I have a combo box with currencies.   The options looks someting like    " <Code> - <Name>  (<symbol>)". I want the "contains" filter to operate on name, code, and symbol.  Data looks something like :

   Currencies =  [
           {"Name": "Argentine Peso", "Code": "ARS", "Symbol": "$" },
           {"Name": "Armendian Dram", "Code": "AMD", "Symbol": "AMD"},
           {"Name": "Aruba Florin", "Code": "AWG", "Symbol": "ƒ"},
           {"Name": "Australian Dollar", "Code": "AUD", "Symbol": "$"}
      ]

My Kendo declaration looks something like :

                <select  name="Currency_RecordID"
                            kendo-combo-box   
                            k-data-source        = "DataModel.Currencies"
                            k-rebind            = "DataModel.Currencies"
                            k-placeholder        = "Labels.PleaseSelect"
                            k-data-text-field    = "'Name'"
                            k-data-value-field    = "'RecordID'"
                            k-value                = "LineModel.Currency.RecordID"
                            k-model                = "'LineModel'"
                            k-model-property    = "'Currency'"
                            k-filter            = "'contains'"
                            k-auto-bind            = "true"
                            k-min-length        = "1"
                            k-template            = "'#= Code # - #=Name# (#=Symbol#)'"
                            k-openOnFocus        = "'irrelevant'"
                            k-limitPredefined    = "'just quote me'"
                        >
                </select>



Is there a way to go about this ?



Kiril Nikolov
Telerik team
 answered on 29 May 2014
3 answers
90 views
I'm trying to take the markup that the mobile ListView renders for its filtering form and use it stand alone but I am having a problem when trying to use the HTML with the flat skin.  In this example it looks as expected in the UI Dojo but when you click the full screen button and view it as it's supposed to look the search input is not lining up with the search icon.  Not sure what the problem is.  Also are there any examples of how to use Kendo Mobile CSS for making a mobile search form?

http://trykendoui.telerik.com/UpuW/2

Scott
Kiril Nikolov
Telerik team
 answered on 29 May 2014
1 answer
81 views
Hi Team,

We observed one small design issue in Kendo Date Time Picker
(IE 11 (11.0.9600.16384), OS: Windows 8.1).

Observed the same in Kendo Demo Site.
URL:http://demos.telerik.com/kendo-ui/web/datepicker/index.html

Please find the attachment for the reference. I selected 10/10/2011 from the
calendar. It showing some patches at dates September 25, 26 and October 11.

Thanks,
Sekhar B

Kiril Nikolov
Telerik team
 answered on 29 May 2014
1 answer
115 views
Hey everyone. I am attempting to use a DropDownListFor, however it always results in a crpytic error.

Here is the code:

<div class="TheClass">
@(Html.Kendo().DropDownListFor(a => a.WorkId)
.Name("WorkId")
.DataTextField("WorkName")
.DataValueField("WorkId")
.DataSource(source => {
source.Read(read =>
{
read.Action("GetWork", "Work");
});
})
.HtmlAttributes(new { tabindex = 0 })
)
</div>

During design time, the first line is underlined with a red squiggle mark and it says "(...) "cannot be inferred from the usage".

When I run the code, it blows up with the following error. "CS1593: Delegate 'System.Action' does not take 1 arguments"

What is the problem here?  
Alexander Popov
Telerik team
 answered on 29 May 2014
3 answers
517 views
Is it possible to have a tooltip appear in a grid's header cell? If so, how?
Also, is it possible to use templates for the header row of a grid?
Iliana Dyankova
Telerik team
 answered on 29 May 2014
13 answers
397 views
Hi,

I'm new to Kendo UI and also to mobile development, and right now I'm having trouble to make endless scrolling to work on my Kendo UI mobile project.

Please take a look at my code in: http://jsbin.com/xiposato/6/edit

Basically I'm getting data from a webserver using a simple JSON file. But endless scrolling doesn't work with it, no matter what I do. I tried many examples on the website and searched on the forums but didn't find any clues.

Can anyone help?

Thanks
Kiril Nikolov
Telerik team
 answered on 29 May 2014
1 answer
334 views
When I add 'justified: true' as option to categoryAxis in a line chart the right/left-hand side of the series is cut off so that only half of the first/last dot of the series is visible. I tried to add some padding on to plotArea, but nothing changed. Is there an option or workaround I can use to fix this?
Iliana Dyankova
Telerik team
 answered on 29 May 2014
1 answer
134 views
Hello,

we just faced a strange behavior with the Kendo UI Grid. We populated a Grid with no datasource at first. After some user action we change the datasource via jQuery like this: 

grid.kendoGrid({
dataSource : {
transport : {
read : {
url : "DrilldownReportApiRandom?type=" + type + "&id=" + id,
dataType : "json"
}
},
schema : {
data : "data",
total : "total"
}
}
});

We got one hidden column in the grid and after applying the datasource, the data of the hidden column will be shown, but not the colum title itself. This column gets the title of the first visible column, and the last correct column is missing the title. Strange uhh? 

Can anyone explain why?

The grid looks like this:

<kendo:grid name="grid_drilldown_adgroup" pageable="true">
<kendo:grid-pageable buttonCount="10" pageSizes="true"></kendo:grid-pageable>
<kendo:dataSource pageSize="10" serverPaging="true"></kendo:dataSource>
<kendo:grid-columns>
<kendo:grid-column hidden="true" title="campaignId" field="campaignId"></kendo:grid-column>
<kendo:grid-column template='<a class="adgroup_column" group="#=group#">#=group#</a>' title="group" field="group" ></kendo:grid-column>
<kendo:grid-column title="bidSMImpressions" field="bidSMImpressions" ></kendo:grid-column>
<kendo:grid-column title="bidSMClick" field="bidSMClick" ></kendo:grid-column>
<kendo:grid-column title="bidSMClicksPerBidSMImpression" field="bidSMClicksPerBidSMImpression" ></kendo:grid-column>
<kendo:grid-column title="bidSMCostPerBidSMClick" field="bidSMCostPerBidSMClick" ></kendo:grid-column>
<kendo:grid-column title="bidSMCost" field="bidSMCost" ></kendo:grid-column>
</kendo:grid-columns>
</kendo:grid>

Thanks in advance.

Jan
Dimo
Telerik team
 answered on 29 May 2014
3 answers
251 views
I am using the following code to dynamically set the report source for the HTML5 / MVC viewer. Unfortunately although I can change the current report using the dropdownlist - when the report loads the parameter area stays disabled, do I cannot modify the report parameters from their defaults. Seems to be a CSS issue - how can I fix?

Regards

Ian

@model CLOCS.Models.ReportsViewModel
 
@{
    ViewBag.Title = "Reporting";
}
 
<h2>Reports</h2>
 
@*<div class="form-group">*@
    @Html.LabelFor(model => model.SelectedReportName, htmlAttributes: new { @class = "control-label col-md-2" })
    <div class="col-md-10">
        @Html.Kendo().DropDownListFor(m => m.SelectedReportName).Name("reportDropDown").BindTo(Model.ReportClassNamesList).OptionLabel("Select Report")
        @Html.ValidationMessageFor(model => model.SelectedReportName, "", new { @class = "text-danger" })
    </div>
@*</div>*@
 
 
@section styles
{
    <link href="ReportViewer/styles/ReportViewer-8.0.14.225.css" rel="stylesheet" />
<link href="/kendo/styles/kendo.common.min.css" rel="stylesheet" />
<link href="/kendo/styles/kendo.blueopal.min.css" rel="stylesheet" />
<link href="//netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css" rel="stylesheet">
 
    <style>
        #reportViewer1 {
            position: absolute;
            left: 5px;
            right: 5px;
            top: 180px;
            bottom: 5px;
            overflow: hidden;
        }
    </style>
}
 
 
@section scripts
{
    <script>
        $(document).ready(function () {
            $("#reportDropDown").change(function () {
                var value = $(this).val();
                if (value && value != "") {
                    var viewer = $("#reportViewer1").data("telerik_ReportViewer");
                    viewer.reportSource({
                        report: "CLOCS.Reporting." + value + ", CLOCS.Reporting"
                    }
                    );
                    viewer.refreshReport();
                }
 
 
            });
 
        });
    </script>
    <script src="ReportViewer/js/ReportViewer-8.0.14.225.js"></script>
}
 
@(Html.TelerikReporting().ReportViewer()
       .Id("reportViewer1")
       .ServiceUrl("/api/telerikreports/")
       .TemplateUrl("/ReportViewer/templates/telerikReportViewerTemplate.html")
       .ReportSource(new TypeReportSource() { TypeName = "CLOCS.Reporting." + Model.SelectedReportName + ", CLOCS.Reporting" })
       .ViewMode(ViewModes.INTERACTIVE)
       .ScaleMode(ScaleModes.SPECIFIC)
       .Scale(1.0)
       .PersistSession(false)
)
Stef
Telerik team
 answered on 29 May 2014
3 answers
395 views
Hi there,

I got some problems with grouping in my grid and couldn't find a proper solution yet.
What I need is to be able to group my elements in the grid AND also do lazy loading (IQueryable, ToDataSourceResult,...). I already tried a couple of things, but I didn't come up with a solution.
If I have one property to group by, I do so on serverside like "queryable.GroupBy(x=> x.MessageCategory)" but then I run into this error:
"Invalid property or field - "MessageCategory" for type: IGrouping`2"

If I do "request.Groups.Clear()" afterwards, I do get a sqlexception, because I cannot select x columns but only group by one.

So is there any possibility to do a grouping serverside, with lazy loading?

When I configure my grid to ".ServerOperation(false)", grouping works fine, but then I do not have any paging(lazy loading) anymore.

Thank You!
Daniel
Telerik team
 answered on 29 May 2014
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
Map
Drag and Drop
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
MultiColumnComboBox
Chat
DateRangePicker
Dialog
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Effects
Accessibility
PivotGridV2
ScrollView
BulletChart
Licensing
QRCode
ResponsivePanel
Switch
Wizard
CheckBoxGroup
TextArea
Barcode
Breadcrumb
Collapsible
Localization
MultiViewCalendar
Touch
RadioButton
Stepper
Card
ExpansionPanel
Rating
RadioGroup
Badge
Captcha
Heatmap
AppBar
Loader
Security
TaskBoard
Popover
DockManager
FloatingActionButton
CircularGauge
ColorGradient
ColorPalette
DropDownButton
TimeDurationPicker
ToggleButton
TimePicker
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
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?