Telerik Forums
UI for ASP.NET MVC Forum
0 answers
130 views

1. Can Media Player play a youtube video that is behind credentials (a private youtube video)? 

2. Is there a way to suppress the popup menu such that commands like "Copy Video URL..." and so fort do not show up.   Ideally, I'd like to suppress the popup altogether. 

xav
Top achievements
Rank 1
 asked on 13 Sep 2022
1 answer
832 views

Was this package recently removed from nuget ??

https://api.nuget.org/v3b.2013.3.1119' is not found on source 'https://api.nuget.org/v3/index.json'.)

Indeed it does not show up when seraching:

 

Eyup
Telerik team
 answered on 13 Sep 2022
0 answers
335 views
1 answer
146 views

Hi ,I am basically new to Telerik. I am trying to use a layout form in my view. but it is not posting data to the database. I did debugged all of my controllers and models so they are working fine, something is wrong in the view itself and I can't figure out what. Please help!!!!!!!!

This is all of my view (Create): 

@model WeighmoreSouth32Web.Models.Site
@using Kendo.Mvc.UI
@{
    ViewData["Title"] = "Create";
}

<h1>Create a Site</h1>


<div class="demo-section">

    <div id="validation-success"></div>
    
    @(Html.Kendo().Form<WeighmoreSouth32Web.Models.Site>()
        .Name("exampleForm")
        .HtmlAttributes(new { action = ("Create"), method="POST"})
        .Items(itemss =>
        {
            itemss.AddGroup().Layout("grid").Grid(g => g.Cols(3).Gutter(20)).Label("Personal Info").Items(items => { 
                   items.Add()
                        .Field(f => f.Name)
                        .Label(l => l.Text("Name:"));
                    items.Add()
                        .Field(f => f.Code)
                        .Label(l => l.Text("Code:"));
                    items.Add()
                        .Field(f => f.ABN)
                        .Label(l => l.Text("ABN:"))
                        .Hint("Hint: enter numeric/space characters only."); 
                        items.Add().ColSpan(3).Field(f => f.Description)
                        .Label(l => l.Text("Description:"))
                        .Editor(e => e.TextArea().Rows(2));
                        });
            })

    )
    
</div>

<div>
    <a asp-action="Index">Back to List</a>
</div>

    @section Scripts {
    @{await Html.RenderPartialAsync("_ValidationScriptsPartial");}
}


Eyup
Telerik team
 answered on 09 Sep 2022
1 answer
164 views

Hi,

I am trying to work with datepickerfor, and coming across a strange behavior. Every time I try to select a month year or date, the page scrolls to the top and I have to come to the bottom of the page again to select the date. 

Here is the code snippet for reference (it is a partial view).
Can anyone help, on how to get rid of this behavior.

 

@model ARGUS.Domain.ViewModel.VM_QualityCheckAdminUI
    <div class="card" id="QCDetails">
        <div class="card-header sub-detail"><b>Quality Check Answer Details</b></div>
        <div class="card-body" id="QCDetailsBody">
            <div class="alert alert-danger alert-dismissible d-none msgErr">
                <button type="button" class="btn-close" data-bs-dismiss="alert" id="closeBtnError"></button>
                <p id="errorMessage">
                    <ul id="ErrorList">

                    </ul>
                </p>
            </div>
            <table id="Category Details" width="100%" style="border-color:white">
<Set of other code snippets, other table rows>
                <tr>
                    <td>
                        <b>Effective Start Date:<span><i class="bi bi-asterisk" style="color:red;font-size:9px"></i></span></b>
                    </td>
                    <td>
                        @*@Html.Kendo().DatePicker().Name("datepicker").Format("dd-mm-yyyy").HtmlAttributes(new { style = "width: 220px", @class = "dateEntryDisabled" });*@
                        @Html.Kendo().DatePickerFor(m => m.EffectiveStartDate).Format("dd-MMM-yyyy").Value(Model.EffectiveStartDate.ToString("dd-MMM-yyyy")).HtmlAttributes(new { style = "width: 220px", @class = "dateEntryDisabled" })
                    </td>
                </tr>
                <tr>
                    <td>
                        <b>Effective End Date:</b>
                    </td>
                    <td>
                        @Html.Kendo().DatePickerFor(m => m.EffectiveEndDate).Format("dd-MMM-yyyy").Value(Model.EffectiveEndDate == null ? "" : Model.EffectiveEndDate.Value.ToString("dd-MMM-yyyy")).HtmlAttributes(new { style = "width: 220px", @class="dateEntryDisabled" })
                    </td>
                </tr>
            </table>
        </div>
            
</div>

<style>
    .txtdisabled {
        background-color: #F0F0F0 !important;
        color:grey !important;
    }
</style>
importing scripts at the end
Eyup
Telerik team
 answered on 09 Sep 2022
1 answer
163 views

Hi,

When I add .OpenOnClick(true) to my menu and I click on the menu to display the submenu, the page reloads automatically.

Do I need to add another instruction to prevent the page reloading? What's the problem?

 

Thank's in advance.

 

Ignacio

Eyup
Telerik team
 answered on 09 Sep 2022
1 answer
2.3K+ views

Hi, 

I have a problem with kendo. Yesterday I've installed Kendo.MVC library from NuGet pagckages, do all the configurations established in the web regarding Kendo and Razor, and it just don seem to work.

 

Web.Config configuration:

<system.web.webPages.razor>
    <host factoryType="System.Web.Mvc.MvcWebRazorHostFactory, System.Web.Mvc, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
    <pages pageBaseType="System.Web.Mvc.WebViewPage">
      <namespaces>
        <add namespace="System.Web.Mvc" />
        <add namespace="System.Web.Mvc.Ajax" />
        <add namespace="System.Web.Mvc.Html" />
        <add namespace="System.Web.Optimization"/>
        <add namespace="System.Web.Routing" />
        <add namespace="Kendo.Mvc.UI" />
        <add namespace="FNASystem" />
      </namespaces>
    </pages>
  </system.web.webPages.razor>

 

In the index.cshtml file:

@(Html.Kendo().Menu()
                  .SecurityTrimming(false)
)

 

All the documentation that I found said that this should work, but the Kendo() function appears underline in red and with an error message that said "HtmlHelper<dynamic> does not contains a definition for 'Kendo' are you missing a using directive or a reference?", so, I do this In the index.cshtml file:

@using Kendo.Mvc.UI

@(Html.Kendo().Menu()
                  .SecurityTrimming(false)
)

But the @using Kendo.Mvc.UI part said "the using directive is not necesary, it previously appears in this namespace."

So, can yo help me with this issue?

Best regards

 

Ivan Danchev
Telerik team
 updated answer on 09 Sep 2022
0 answers
126 views

I replaced these JS references. If I use the 2022 version, if the submission fails, the page will always be loaded and can't be clicked. If I use the 2021.1.224 JS page, it won't always be loaded and can be used normally!

zhe
Top achievements
Rank 1
Iron
Iron
 asked on 08 Sep 2022
1 answer
107 views

I am working on tabstrip and have created 3 of them.

One tabstrip has a .Selected(True) to be open when page is loaded initially.

But, the issue is, when I click on other tabs it does not respond in the 1st attempt (content is displayed below the content of 1st tab).

But, on 2nd attempt the tabs are working, although the focus is still consistent on the 1st tab, and it's not changing as we navigate to other tabs.

What might be happening here?

As you can see here, focus is on both Paris and Moscow, but actually it should only be on Moscow.

Yanislav
Telerik team
 answered on 07 Sep 2022
20 answers
3.8K+ views
I do not find a way to pass Id of a model(the selected record Id in grid) to custom command, how to do that?

.ToolBar(toolbar =>  {      toolbar.Create();      toolbar.Custom().Text("Clickme").Action("myAction", "myController");  })
Cristian
Top achievements
Rank 1
Iron
 answered on 06 Sep 2022
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?