Telerik Forums
UI for ASP.NET MVC Forum
2 answers
315 views

     Hi All, I'm wondering a couple questions. I have a grid and I want it to populate in the middle of the screen and populate to the right while leaving the left side of the screen blank. 

 

I ask this because I saw a option that achieves what I want. I believe it's called Kendo UI splitter. Is their an option like that for MVC Grid? 

 

If their is no option, then what I have done is made a Kendo Menu, on the same page that the grid populates. Problem is the grid is always under the menu, and not to the right. Is their a way to make it be to the right of the menu? 

Petar
Telerik team
 answered on 18 Jun 2020
2 answers
235 views
How would one go about cancelling an upload in progress? AutoUpload is off, and I'm using Async.
Jason
Top achievements
Rank 1
Veteran
 answered on 17 Jun 2020
3 answers
775 views

Getting Kendo to work with a Content Security Policy in MVC 5 is not easy and documentation is scarce.

I tried using the NWebSec CSP package from Nuget (5.1.1 https://docs.nwebsec.com/en/aspnet4/index.html) but could not get Kendo to work with the NWebSec <content-Security-Policy> section in Web.config. Even though the CSP looked fine in report-only mode and Kendo Widgets work, as soon as you turn on the CSP, the Widgets fail completely.

I remarked out the <content-Security-Policy> section of the <nwebsec> in Web.config and moved all of my CSP directives back into <httpProtocol> <customHeaders> and Kendo MVC (2018.1.322) now works.

By maintaining NWebSec as part of the project and adding @using NWebsec.Mvc.HttpHeaders.Csp into Views and applying the HTMLHelper into script tags I get an automatically generated nonce for any inline scripts <script @Html.CspScriptNonce() > so it is still valuable to keep NWebSec

script-src 'self' 'unsafe-inline' 'unsafe-eval' kendo.cdn.telerik.com

Hope this is useful for someone else

Martin
Telerik team
 answered on 16 Jun 2020
1 answer
1.5K+ views
How to Add validation for duplicate values for column in a Grid
Tsvetomir
Telerik team
 answered on 16 Jun 2020
3 answers
175 views
Hi,

I am new to Telerik, and I have a question on the Linear Gauge control. I was wondering if there is any way to add rounding to the bars (i.e. similar to css border-radius).

Currently I have the following:

@(Html.Kendo().LinearGauge()
        .Name("DivTime")
        .HtmlAttributes(new { title = "167" })
        .Pointers(p =>
        {
            p.Add().Value(167).Color("#2A5E76").Size(20).Margin(0).Border(b => b.Opacity(100).Width(0));
            p.Add().Value(100).Color("#C1D82F").Size(20).Margin(0).Border(b => b.Opacity(100).Width(0));
        })
        .Transitions(false)
        .Scale(scale => scale
            .Vertical(false)
            .Labels(builder => builder.Visible(false))
            .MajorTicks(builder => builder.Visible(false))
            .MinorTicks(builder => builder.Visible(false))
            .Line(builder => builder.Visible(false))
            .MajorUnit(20)
            .MinorUnit(2)
            .Min(0)
            .Max(167)
        ))

It would be nice to add rounding edges if this is possible (but It's not essential).

Thanks in advance

Sam
Silviya Stoyanova
Telerik team
 answered on 15 Jun 2020
4 answers
1.2K+ views

Not sure if this is the right place to put this, but I'm currently having issues installing Kendo.Mvc 2015.2.602 from Nuget.

I get the following error:

Could not install package 'Kendo.Mvc 2015.2.602'. You are trying to install this package into a project that targets '.NETFramework, Version=v4.5.2', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.

I was under the impression Kendo.Mvc was compatible with .NET 4.5.2. Am I wrong? Is this a bug? When I add the reference manually (by extracting the lib from the .nupkg file) and try to use the HtmlHelpers, I get the error "Cannot Resolve symbol "Kendo" even when @using Kendo.Mvc.UI.

If anyone has any guidance on this, I'd greatly appreciate it.

 

Michael

Ivan Danchev
Telerik team
 answered on 12 Jun 2020
7 answers
3.6K+ views

Hello,

 

I am using columns.Select() to make my rows selectable via checkboxes.

 

I would like to know if it is possible to use the shift key to select multiple rows as in:

1) click the checkbox for the first row to be selected.

2) hold the shift key down

3) click the checkbox for the last row to be selected.

4) programmatically select the entire range of rows between the two selected rows.

 

Are there any demos that relate to this functionality?

 

Thanks,

Ryan

Veselin Tsvetanov
Telerik team
 answered on 12 Jun 2020
5 answers
280 views

When using a grid with selectable and edit inline, if you select a row and edit the selected line, the

font inside cell is white so the text is not visible at all.

Any workaround ?

Is there a way to change the width of the cell border when in editing inline mode. It is a bit thick by default.

Best regards

Viktor Tachev
Telerik team
 answered on 11 Jun 2020
11 answers
3.7K+ views

When using a new form to post if adding model state errors with a key value other than string.empty the kendo().form throws error on return to view:

Message "Object reference not set to an instance of an object."string

Source: "Kendo.Mvc"string

Stack trace:

"   at Kendo.Mvc.UI.Form`1.BuildItems(IList`1 items)\r\n   at Kendo.Mvc.UI.Form`1.WriteInitializationScript(TextWriter writer)\r\n   at Kendo.Mvc.UI.WidgetBase.WriteHtml(HtmlTextWriter writer)\r\n   at Kendo.Mvc.UI.Form`1.WriteHtml(HtmlTextWriter writer)\r\n   at Kendo.Mvc.UI.WidgetBase.ToHtmlString()\r\n   at Kendo.Mvc.UI.Fluent.WidgetBuilderBase`2.ToHtmlString()\r\n   at System.Web.HttpUtility.HtmlEncode(Object value)\r\n   at System.Web.WebPages.WebPageBase.Write(Object value)\r\n   at ASP._Page_Views_User_CreateUser_cshtml.Execute() in C:\\CustomerVS2019Projects\\iCepts\\CustomerPortal\\Views\\User\\CreateUser.cshtml:line 17\r\n   at System.Web.WebPages.WebPageBase.ExecutePageHierarchy()\r\n   at System.Web.Mvc.WebViewPage.ExecutePageHierarchy()\r\n   at System.Web.WebPages.StartPage.RunPage()\r\n   at System.Web.WebPages.StartPage.ExecutePageHierarchy()\r\n   at System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage)\r\n   at System.Web.Mvc.RazorView.RenderView(ViewContext viewContext, TextWriter writer, Object instance)\r\n   at System.Web.Mvc.BuildManagerCompiledView.Render(ViewContext viewContext, TextWriter writer)\r\n   at System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context)\r\n   at System.Web.Mvc.ControllerActionInvoker.InvokeActionResult(ControllerContext controllerContext, ActionResult actionResult)\r\n   at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult)\r\n   at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult)"

Dimitar
Telerik team
 answered on 11 Jun 2020
3 answers
1.6K+ views

If I get a failure during my upload process, how do I show that an error occurred and what it is?

<div>
    <hr />
    <h3>Upload Files to Session...</h3>
    <div class="demo-section k-content">
        @(Html.Kendo().Upload()
            .Name("files")
            .Async(a => a
                .Save("UploadSessionFiles", "Sessions", routeKeys)
                .AutoUpload(true))
        )
    </div>
    <hr />
</div>
Aleksandar
Telerik team
 answered on 10 Jun 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
DropDownButton
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
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
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?