Telerik Forums
Kendo UI for jQuery Forum
1 answer
245 views
I have an Angular2 Kendo MultiSelect componenet in my app. My business requirement is to list each selection per row instead of stacking them next to each other. How do I achieve this?
I did a search and found this thread. Implemented the proposed style by setting width to 100px but this would not work in my scenario because the multiselect selections are going to be longer than 100px.
One way that I found this to work with my multiselect is by setting width to 500px for the multiselect control. In that case it is dropping each item in its own row but the size of the multiselect is not taking the full width of the page.
How can i achieve each item per row with Kendo Multiselect length set to full width ?
Dimiter Topalov
Telerik team
 answered on 13 Jul 2017
1 answer
467 views

Hello,

I am using the range slider via MVVM. I noticed that when i define the width via inline style on the div that sets the range slider, the tick marks disappear. However, if the width is removed, the tick marks appear. Please advise? 

Edit: My range slider is sitting within a kendo template. I have attached a snippet of my code

 

<script type="text/x-kendo-template" id="filterAgeTemplate">
        <div class="item--agerange">
            <div class="agerange-wrap">
                <div
                    data-role="rangeslider"
                    data-small-step="1"
                    data-large-step="10"
                    data-min="1"
                    data-max="100"
                    data-bind="value: ageRange, events: { change: vm_onAgeSelectorChange }" id="panel-filter__agerange" style="width:160px">
                    <input  />
                    <input />
                </div>
 
                <div class="agerange-title">Age Range</div>
            </div>
 
            <div class="agerange-btns ">
                <button class="button button__gray-outline"><span>Reset</span></button>
            </div>
        </div>
    </script>
Stefan
Telerik team
 answered on 13 Jul 2017
12 answers
2.8K+ views
I need to check a single field for several possible values in my datasource filter.

Imagine you want a filter to show only rows with "name" containing "Jennie" or "name" containing "Genie".

Trying this yields no matches:

myPeopleDataSource.filter([{field:"name",operator:"contains",value:"Jennie"}, {field:"name",operator:"contains",value:"Genie"}])

I'm guessing this is because the filter is limited to one criteria per field per filter action.  

Is that true?

Any way around this?
Boyan Dimitrov
Telerik team
 answered on 13 Jul 2017
3 answers
447 views

Hi,
I have problem loading Images and glyphs Icons and fonts of grid and drop down box when I use bundling and virtual path to deploy application. However, without bundling it is working fine in virtual path.


If, I do not use virtual path then it is working fine with bundling and without bundling.

My current path is in which not working
http://localhost:8089/HTML5/...
But if I use
http://localhost:8089/....
Then it is working fine
Below is the my codes
CSHTML File

<head>
    <meta name="viewport" content="width=device-width" />
    <base href="~/">
    <link rel="icon" href="~/Content/Images/favicon.gif" type="image/png">
    @Styles.Render("~/Content/KendoCss")
    @Styles.Render("~/Content/Styles")
    @Styles.Render("~/Content/appThemesCss")
    @Styles.Render("~/Content/SiteCss")
</head>

 

Below is my bundle Config file

#region Themes
bundles.Add(new Bundle("~/Content/appThemesCss")
.Include("~/Content/AppTheme/css/custom.min.css",new CssRewriteUrlTransform())
.Include("~/Content/AppTheme/css/custom-responsive.min.css", new CssRewriteUrlTransform())
 .Include("~/Content/AppTheme/css/custom-skins.min.css.css", new CssRewriteUrlTransform())
 .Include("~/Content/AppTheme/css/ace-skins.min.css", new CssRewriteUrlTransform()));
 
 bundles.Add(new StyleBundle("~/Content/SiteCss")
.Include("~/Content/AppTheme/css/main.css",
         "~/Content/AppTheme/css/main-rtl.css"
         ));
            #endregion
            #region Kendo
bundles.Add(new Bundle("~/Content/KendoCss")
.Include("~/Content/Kendo/styles/kendo.common.min.css", new CssRewriteUrlTransform())

.Include("~/Content/Kendo/styles/kendo.rtl.min.css", new CssRewriteUrlTransform())
.Include("~/Content/Kendo/styles/kendo.material.min.css", new CssRewriteUrlTransform())
            );

 

And my folder structure is look like in the attach

 

Please Help me,
Thank you.

Ivan Zhekov
Telerik team
 answered on 13 Jul 2017
2 answers
3.8K+ views
Hi,

I'm using Kendo UI Professional with Angular 4. I have a kendo grid with a bunch of rows and I'd like alternate rows to be colored. Ex. 1,3,5 rows in blue and 2,4,6 in gray.

How do I achieve this? Assigning a class to the kendo-grid-column and then changing its background obviously changes color for all the rows.

Thanks!
Stefan
Telerik team
 answered on 13 Jul 2017
3 answers
492 views

Hi,

It's a bug?
In hierarchy grid, and Inline Edit mode.

When I updated, and the RETURN result is null,
But why the Grid still has data?

MVC APSX:

<%:
        Html.Kendo().Grid<CarryingCapacityMD>()
            .Name("Grid").ToolBar(commands => commands.Create())
            .Columns
            (
                columns =>
                {
                    columns.Bound(o => o.Tonnage).Width(75).Format("{0:0.00}");
                    columns.Bound(o => o.CageCount).Width(75);
                    columns.Command
                    (
                        commands =>
                        {
                            commands.Edit();
                            commands.Destroy();
                        }
                    ).Width(180).Title("操作");
                }
            )
            .ClientDetailTemplateId("freightInformationTemplate")
            .DataSource
            (
                dataSource =>
                    dataSource.Ajax()
                        .Model
                        (
                            model =>
                            {
                                model.Id(p => p.CarryingCapacityID);
                            }
                        )
                        .Read("_AjaxCarryingCapacityList", "Configurations")
                        .Update("_AjaxCarryingCapacityUpdate", "Configurations")
                        .Destroy("_AjaxCarryingCapacityDelete", "Configurations")
                        .Create("_AjaxCarryingCapacityInsert", "Configurations")
            )
            .Editable(editing => editing.Mode(GridEditMode.PopUp))
    %>
    <script id="freightInformationTemplate" type="text/kendo-tmpl">
        <%:
            Html.Kendo().Grid<FreightInformation>()
                .Name("FreightInfo_#=CarryingCapacityID#")
                .Columns
                (
                    columns =>
                    {
                        columns.Bound(o => o.LocationName).Width(75);
                        columns.Bound(o => o.Mileage).Width(75);
                        columns.Bound(o => o.Freight).Width(75).Format("{0:¥0.00}");
                        columns.Command(command => { command.Edit(); });
                    }
                )
                .DataSource
                (
                    dataSource => dataSource.Ajax().ServerOperation(true)
                        .Model
                        (
                            model =>
                            {
                                model.Id(p => p.FreightID);
                                model.Field(p => p.LocationName).Editable(false);
                                model.Field(p => p.Mileage).Editable(false);
                            }
                        )
                        .Read("_AjaxGetFreightInfoListByCarryingCapacityID", "Configurations", new { carryingCapacityID = "#=CarryingCapacityID#" })
                        .Update("_AjaxLocationUpdateForCarryingCapacity", "Configurations")
                )
                //.Events(events => { events.SaveChanges("onSave");})
                .Editable(editing => editing.Mode(GridEditMode.InLine))
                //.ToolBar(commands => { commands.Save(); })
                .ToClientTemplate()
         %>

Behind Code:

[AcceptVerbs(HttpVerbs.Post)]
public ActionResult _AjaxLocationUpdateForCarryingCapacity(FreightInformation updatedFreightInformation)
{
    if (ModelState.IsValid)
    {
        freightRepository.UpdateForCarryingCapacity(updatedFreightInformation);
    }
    freightRepository = new FreightRepository();
    return Json(freightRepository.GetFreightInfoByCarryingCapacityID(updatedFreightInformation.CarryingCapacityID)); //this result is null
}

But after update,
the grid is still show data.

Please see attachment file.

Kevin
Top achievements
Rank 1
 answered on 12 Jul 2017
1 answer
160 views

Hi guys I am trying to figure out how to set my center coordinates marker to a different color or a different image if that is easier. 

Scenario:

Based on the center coordinates we would like to place a marker on the map that identifies the center location. This marker should be identifiable by color. A good example of this would be the "You Are Here" on a map program like Around Me.  

It would also be ideal if there were a way to tag specific markers and change their colors. Example all the red markers are restaurants, all the blue markers are pubs, etc.

I have been working with the markerActivate function since from what I have read this is the opportunity to change marker color before rendering. However, I have not discovered a way to get a specific marker by name or coordinates. 

i.e. if (e.marker.someidentifier == 'foo') {

// change marker color code. 

}

Any help you could provide would be greatly appreciated. 

Nathan
Top achievements
Rank 1
 answered on 12 Jul 2017
2 answers
339 views

Hello,

After update to the latest kendo version imageClass for custom commands seems to be not working anymore, what is the replacement for this?

Thanks

Anton
Top achievements
Rank 1
 answered on 12 Jul 2017
3 answers
2.2K+ views

In our grid we have some columns locked. There is an edit option to edit data in columns. The editable columns have a multi-select box and when we select more than three options the hegith of the locked and unlocked columns starts mismatching.

If we remove the locked column property than there is no issue.

We are using kendo version "2015.3.1111".

Thanks

Stefan
Telerik team
 answered on 12 Jul 2017
5 answers
742 views

I want to listen Kendo ui Gantt Chart's expand event.

Main goal is loading summary rows first and when user clicked expand icon loading detail rows (Tasks).

Is there a way to find out which row is expanded and get its data (id maybe), or a lazy loading feature will be awesome?

Thanks.

Dimitar
Telerik team
 answered on 12 Jul 2017
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
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
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?