Telerik Forums
UI for ASP.NET MVC Forum
3 answers
386 views

I have a form with a couple of switchfor controls on them. They are bond to Boolean properties of my model. When calling a reset on the form, these controls do not revert back to the original value as expected.

 

<div class="col-1">
                        <div class="form-group">
                            <label asp-for="DoNotContact">Ne pas contacter</label><br />
                            @(Html.Kendo().SwitchFor(m => m.DoNotContact)    )
             </div>

 </div>

What am I doing wrong?

 

 

 

Nikolay
Telerik team
 answered on 28 May 2020
2 answers
788 views

Hi,

 

Any option to set the focus on page load to the first control of the form. A jquery function with focus() doensn't seem to work

Regards,

Bart

Bart
Top achievements
Rank 1
 answered on 28 May 2020
1 answer
221 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
245 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
263 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
126 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.6K+ 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
815 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
630 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
Narrow your results
Selected tags
Tags
Grid
General Discussions
Scheduler
DropDownList
Chart
Editor
TreeView
DatePicker
ComboBox
Upload
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
Dialog
MultiColumnComboBox
DropDownTree
Checkbox
Slider
Switch
Notification
Accessibility
ListView (Mobile)
Pager
Security
ColorPicker
DateRangePicker
Wizard
Styling
Chat
DateInput
MediaPlayer
TileLayout
Drawer
SplitView
Template
Barcode
ButtonGroup (Mobile)
Drawer (Mobile)
ImageEditor
RadioGroup
Sparkline
Stepper
TabStrip (Mobile)
GridLayout
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
SmartPasteButton
PromptBox
SegmentedControl
LLM Kit
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?