Telerik Forums
UI for ASP.NET MVC Forum
1 answer
158 views

I like the look of the new "modern" interface for the datetimepicker. As seen on the Demo page the picker does not have any values for the hours or AM/PM.

https://demos.telerik.com/aspnet-mvc/datetimepicker/component-type

Is this a bug? or is there something you need to do to allow picking of hours?

I have attached a screenshot for reference.

 

 

Nikolay
Telerik team
 answered on 27 May 2020
7 answers
217 views

I have Kendo MVC Grid in a view, 

 

I would like to navigate from view to another view that holds Kendo Grid report.

 

 

@Html.ActionLink("Report", "GridList_Read", "Grid")

 

The above code is displaying not formatted plain text content.

 

How do call grid controller from a mvc view?

 

Thank you

Nencho
Telerik team
 answered on 27 May 2020
2 answers
218 views

There is a way to declare a stand-alone data source in Kendo and initialize it with an array. https://docs.telerik.com/kendo-ui/framework/datasource/basic-usage#creating-local-data-sources

Is there an equivalent MVC helper for this?

 

Nikita
Top achievements
Rank 2
Iron
Iron
 answered on 26 May 2020
9 answers
1.1K+ views

Hello every one,

first of all .. I'm using the tooltip with a scheduler...

I have a custom template for the ToolTip which shows few properties (Title, Time, Type, Room, . . . ). (see ToolTip_1.png)

some times Type or Room are null so I don't want them to be shown... I want to hide them somehow...

I tried to wrap the Div of the Room and Type with an if Statment so that if Room is null skip this part .. but it shows me an error all the time...

This is my Custom Template :

@(Html.Kendo().Tooltip()
       .For("#scheduler")
       //.Filter(".k-event:not(.k-event-drag-hint) > div, .k-task")
       .Filter(".k-event:not(:empty) > div, .k-task")
       .Position(TooltipPosition.Right)
       .Width(150)
       .Events(e => { e.ContentLoad("ContentLoad_ToolTip");
                      e.Show("onShow_ToolTip");
                    })
   .ContentTemplateId("tipTemplate")
    )
 
 
    <script id="tipTemplate" type="text/x-kendo-template">
        #var element = target.is(".k-task") ? target : target.parent();#
        #var uid = element.attr("data-uid");#
        #var scheduler = target.closest("[data-role=scheduler]").data("kendoScheduler");#
         
        @*#var model = scheduler.occurrenceByUid(uid);#*@
 
        #var model =  scheduler ? scheduler.occurrenceByUid(uid) : null;#
 
        #if(model){#
        @*<strong>start:</strong> #=kendo.format('{0:d}', model.start)#
            <br />
            <strong>end  :</strong> #=kendo.format('{0:d}', model.end)#
            <br />*@
        @*#if(#=model.Typ# != null){*@
        <strong style="text-align:left;@*color:white;*@">Typ:</strong> #=model.Typ#
        <br />
        @* } *@
        <strong>Bemerkung:</strong> #=model.description#
        <br />
        @*<strong>CrmName:</strong> #=model.CrmUserName#
            <br />*@
        <strong>Raum:</strong> #=model.Raum#
        <br />
        @*<strong>Erfasser:</strong> #=model.ErfUser#
            <br />
            <strong>Zuletzt:</strong> #=model.LastUser#
            <br />*@
        <strong>Mitarbeiter:</strong> #=model.Initialen#
        <br />
        #} else {#
        <strong>No event data is available.</strong>
        #}#
    </script>

 

Well, This is my main Question .. but I have another one...
HOW TO ADJUST THE WIDTH OF THE TOOLTIP? (see ToolTip_2.png)

 

 
Martin
Telerik team
 answered on 26 May 2020
2 answers
109 views

 

OK, I am down to the last thing.  I need to know how to grab what field (if any) that is being filtered in the Select Action of the controller.  There has to be a property somewhere in the Filters object that has this?  it is not like request.Sorts[0].Member, I thought it would be but it is not.  Any assistance on this will be greatly appreciated.

 

Thanks.

Christine
Top achievements
Rank 1
Veteran
 answered on 25 May 2020
1 answer
1.5K+ views

I've installed lastest Kend version, locally everything work as expected, but when I've launched DevOps build, i receive errors like this

AspNetPreCompile:
         C:\windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_compiler.exe -v / -p d:\a\8\s\Source\ABB.cBOL.Web.Application\obj\x64\Release\AspnetCompileMerge\Source -c d:\a\8\s\Source\ABB.cBOL.Web.Application\obj\x64\Release\AspnetCompileMerge\TempBuildDir 
##[error]/Content/kendo/2020.1.406/ascx/String.ascx(1,0): Error ASPPARSE: Could not load type 'System.Web.Mvc.ViewUserControl<object>'.
    95>/Content/kendo/2020.1.406/ascx/String.ascx(1): error ASPPARSE: Could not load type 'System.Web.Mvc.ViewUserControl<object>'.

Same error for all kendo ascx file. The issue is cause from ASP.NET precompilation, done with PrecompileBeforePublish msbuild parameter, after found issue on DevOps I've exactly same issue locally compiling with commad line and PrecompileBeforePublish argument.

Seams that for some reason, Asp:net precompialtion do not search dll in the right place (of course MVC is referenced)

Any idea about how to solve this issue?

Veselin Tsvetanov
Telerik team
 answered on 25 May 2020
9 answers
775 views

Hello there, i seem to be having a problem with getting a currency filter to work, i am trying to truncate any number past the decimal point. so if i have $3,456.04 , it
should be $3,456. However, after i add the filter function, what is displayed is 3456.

Here is the index.cshtml

columns.Bound(e => e.EstimatedGrantedCost).Title("Est.<br>Granted<br>Cost").Width(23).HeaderHtmlAttributes(new { style = "text-align:right; font-weight:normal; font-size:80%" }).HtmlAttributes(new { @style = "text-align:right; font-weight: normal; font-size:80%" }).Filterable(x => x.UI("CurrencyFilter"));
 
   function CurrencyFilter(e) {
      //console.log("this is what was passed in:",e)
      $(e).kendoNumericTextBox({format: "c0" });
   }

 

thanks for your help.

aryeh
Top achievements
Rank 1
 answered on 24 May 2020
6 answers
549 views

 

Is it possible to have a dropdown in the popup edit screen instead of a text box.  I have three fields that I require to be dropdown boxes.   I am at my whits end why this seems so hard.  Is there a easy to understand guide somewhere that explains how to do something lie this?  I thought this would be the least issue making my application but it has turned into a nightmare.  I was told to make a dropdown list (which I have done in another view), but I do not know where or how I need to place the control in the Grid.

Any help would be greatly appreciated.

 

 

Christine
Top achievements
Rank 1
Veteran
 answered on 22 May 2020
1 answer
147 views
I was using Kendo MVC v2013.2.918 for a while, and for a particular grid that happens to be kind of narrow, when there were no elements in the grid it displayed like this, where it states “No items to display”.

<OriginalWithMessage.jpg>


I upgraded to Kendo MVC v2020.2.513 and now it looks like this, where the “No items to display” message is missing.

<UpgradedMissingMessage.jpg>


Just to show that the message is still there, but not displayed, I forced the grid to be wider temporarily.

<UpgradedStretchedShowsMessage.jpg>

I really want that “No items to display” message to show, even when the grid is narrow.  I have tried disabling all other paging features, but it still doesn’t show.  Is this something in the styles that could be changed to give this message display?
Petar
Telerik team
 answered on 22 May 2020
1 answer
316 views

On the start page, I have some buttons with the same design( they are ment to redirect to a aspx page) eg

<telerik:RadButton runat="server" ID="Button" NavigateUrl="Dest/Example.aspx"

Since latest chrome update (v 83), all requeste made are failing ( with status canceled). The initiator seems to be

}else{if(!e||e=="_self"){window.location.href=h;

 (telerik resource)

 

Any idea on what could have caused this?

Eyup
Telerik team
 answered on 22 May 2020
Narrow your results
Selected tags
Tags
Grid
General Discussions
Scheduler
DropDownList
Chart
Editor
TreeView
DatePicker
Upload
ComboBox
MultiSelect
ListView
Window
TabStrip
Menu
Installer and VS Extensions
Spreadsheet
AutoComplete
TreeList
Gantt
PanelBar
NumericTextBox
Filter
ToolTip
Map
Diagram
Button
PivotGrid
Form
ListBox
Splitter
Application
FileManager
Sortable
Calendar
View
MaskedTextBox
PDFViewer
TextBox
Toolbar
MultiColumnComboBox
Dialog
DropDownTree
Checkbox
Slider
Switch
Notification
ListView (Mobile)
Pager
Accessibility
ColorPicker
DateRangePicker
Wizard
Security
Styling
Chat
MediaPlayer
TileLayout
DateInput
Drawer
SplitView
Barcode
ButtonGroup (Mobile)
Drawer (Mobile)
ImageEditor
RadioGroup
Sparkline
Stepper
TabStrip (Mobile)
GridLayout
Template
Badge
LinearGauge
ModalView
ResponsivePanel
TextArea
Breadcrumb
ExpansionPanel
Licensing
Rating
ScrollView
ButtonGroup
CheckBoxGroup
NavBar
ProgressBar
QRCode
RadioButton
Scroller
Timeline
TreeMap
TaskBoard
OrgChart
Captcha
ActionSheet
Signature
DateTimePicker
AppBar
BottomNavigation
Card
FloatingActionButton
Localization
MultiViewCalendar
PopOver (Mobile)
Ripple
ScrollView (Mobile)
Switch (Mobile)
PivotGridV2
FlatColorPicker
ColorPalette
DropDownButton
AIPrompt
PropertyGrid
ActionSheet (Mobile)
BulletGraph
Button (Mobile)
Collapsible
Loader
CircularGauge
SkeletonContainer
Popover
HeatMap
Avatar
ColorGradient
CircularProgressBar
SplitButton
StackLayout
TimeDurationPicker
Chip
ChipList
DockManager
ToggleButton
Sankey
OTPInput
ChartWizard
SpeechToTextButton
InlineAIPrompt
TimePicker
StockChart
RadialGauge
ContextMenu
ArcGauge
AICodingAssistant
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?