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

Hi, 

I installed  telerik.ui.for.aspnet.core(v2016.2.714) by NuGet in VS2015, but I got a error like the attached NuGet installation image and log. Could you please help to check it? Is there any special setting for the installation?

BTW, I can't submit my support ticket through login to my account (investigating), I want to get your support from here as suggest from your support team.

Regards,

Amstrong,

Aug.8, 2016

Amstrong
Top achievements
Rank 1
 asked on 08 Aug 2016
5 answers
216 views
Hi, I need to display a total count per series in a note at end of bar per attachment.  The attachment is a screenshot of equivalent functionality in Telerik UI for AJAX page that I am converting over to MVC.

Chart syntax at moment:
@(Html.Kendo().Chart()
    .Name(Model.ChartName)
    .Title(title => title
        .Text(Model.ChartTitle)
        .Align(ChartTextAlignment.Left)
    )
    .HtmlAttributes(new { @class = "dashboardChart" })
    .Legend(legend => legend
        .Visible(Model.LegendVisible)
        .Position(ChartLegendPosition.Right)
    )
    .Series(series =>
    {
        series.Bar(new double[] { Model.AgedCount }).Name(Model.ChartAgedSeriesTitle).Color(myapp.Controllers.DashboardController.ChartSeries1Color);
        series.Bar(new double[] { Model.UnAgedCount }).Name(Model.ChartUnAgedSeriesTitle).Color(myapp.Controllers.DashboardController.ChartSeries2Color);
    })
    .ValueAxis(axis => axis.Numeric()
        .MinorUnit(1)
        .MajorUnit(Model.ChartMaxValue <= 10 ? 1 : 5)
        .Min(0)
        .Max(Model.ChartMaxValue)
        .MajorGridLines(lines => lines.Visible(true))
        .MinorGridLines(lines => lines.Visible(true))
        .Visible(true)
        .Labels(labels => labels.Visible(true))
        .MinorTicks(ticks => ticks.Visible(true))
    )
    .Tooltip(tooltip => tooltip
            .Visible(true)
    )
    .Events(events => events
                .SeriesClick("onSeriesClick")
            )
)
Doug
Top achievements
Rank 1
Veteran
 answered on 07 Aug 2016
1 answer
272 views

I have a controller like so: 

1.public async Task<ActionResult> ActionMethod([DataSourceRequest] DataSourceRequest request){...}

When I set a filter on the UI, the controller receives a request object populated with a filter object. 

When I examine the traffic between the client and server I see a string for filter like this:

filter: FirstName~contains~'John'

I imagine there is a Model Binder some where that knows how to instantiate a filter object based on that string.

In this case, the results would be filtered to all entries with a First Name containing John. 

My question is: Is there a way to pass a similar string to the Model Binder from another action? 

For example, 

From another action, I want to create a string like "FirstName~contains~'Mary'" and then Redirect to the "ActionMethod" action pasted above. When the "ActionMethod" is called, I would like the filter object to be constructed so that results would be filtered to all entries with a First Name containing Mary, instead of John. Is this possible? 

 

Kostadin
Telerik team
 answered on 05 Aug 2016
5 answers
200 views

We have large trees that contains multiple levels like:

Root

  Item 1

    Item1-A

    Item1-B

  Item 2

    Item2-A

    Item2-B

The children are loaded dynamically using the onselect event for the item, so using the above example, Item1-A has children, but they have not yet been loaded when the tree is created. Item1-A will display with the expand arrow.

Clicking on the Item1-A (text in the tree), expands to show the children, however when clicking on the expand arrow next to Item1-A, the expand arrow disappears, the Item1-A text is selected, but the onselect event is not fired so the children are not displayed.

We don't want to load the next level children (which does resolve the problem) due to performance requirements.

Is there any way we can either

a) Disable the expand arrow action (i.e. we are happy if the user consistently just clicks on the item text and the expand arrow is for display only)

or

b) Fire a select event when clicking on the expand arrow so that it performs the same action as clicking on the text in the tree.

Thanks.

Ivan Danchev
Telerik team
 answered on 04 Aug 2016
1 answer
249 views
Any ideas on how to either specify a field is editable if only a edit, and not a new record being added to the grid.  Either inline or popup.  What 'm trying to do is have a field required to be entered on new, but not editable afterwards.

Ideally, a way in the future to specify which editortemplate view to use on new or edit would be extremely helpful. Since it looks like I'll have inline editing, but can't use the grid create, instead it will just be a button with a custom window and form.
Eyup
Telerik team
 answered on 04 Aug 2016
1 answer
148 views

Hi

When I'm trying to send the model with information in it to the edit view, I get a System.OverflowException : Value was either too large or too small for an Int32

in the StackTrace I get: 

   en System.Convert.ToInt32(Double value)
   en System.Double.System.IConvertible.ToInt32(IFormatProvider provider)
   en System.Convert.ChangeType(Object value, Type conversionType, IFormatProvider provider)
   en System.Convert.ChangeType(Object value, Type conversionType)
   en Kendo.Mvc.UI.Fluent.WidgetFactory`1.GetRangeValidationParameter[TValue](IEnumerable`1 validators, String parameter)
   en Kendo.Mvc.UI.Fluent.WidgetFactory`1.NumericTextBoxFor[TValue](Expression`1 expression)
   en ASP._Page_Views_Grupo_Edit_cshtml.Execute() en C:\Users\Pablo.Contreras\Documents\Visual Studio 2015\Projects\Administrativo\Grupos\NaveganteGruposBackEnd\NaveganteGruposBackEnd\Views\Grupo\Edit.cshtml:línea 232
   en System.Web.WebPages.WebPageBase.ExecutePageHierarchy()
   en System.Web.Mvc.WebViewPage.ExecutePageHierarchy()
   en System.Web.WebPages.StartPage.RunPage()
   en System.Web.WebPages.StartPage.ExecutePageHierarchy()
   en System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage)
   en System.Web.Mvc.RazorView.RenderView(ViewContext viewContext, TextWriter writer, Object instance)
   en System.Web.Mvc.BuildManagerCompiledView.Render(ViewContext viewContext, TextWriter writer)
   en System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context)
   en System.Web.Mvc.ControllerActionInvoker.InvokeActionResult(ControllerContext controllerContext, ActionResult actionResult)
   en System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult)
   en System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult)

In my model the field is int, and I allready try change it to INT32 with no results.

Maria Ilieva
Telerik team
 answered on 04 Aug 2016
1 answer
187 views

 

Hi, I'm trying to UPDATE and DELETE some rows from the spreadheet control, with datasource binding.

I've a custom defined button with save function:

 $("#savebuttons").on('click', '#Save', function () {
        if (!$(this).hasClass("k-state-disabled")) {
            getDataSource().sync();
        }

    });

The datasource looks like this:

           .DataSource<Siergy.BackOffice.Models.Management.ProjectElementViewModel>
            (ds => ds 
            .Ajax()
            .Batch(true)
            .Read(read => read.Action("ProjectElementsSpreadsheet_Read", "ProjectsManagement"))
            .Update(update => update.Action("ProjectElementsSpreadsheet_Update", "ProjectsManagement"))
            .Create(create => create.Action("ProjectElementsSpreadsheet_Create", "ProjectsManagement"))
            .Destroy(destroy => destroy.Action("ProjectElementsSpreadsheet_Destroy", "ProjectsManagement"))
            .Events(e => e.Change("onChange"))
            .Model(m =>
            {
                m.Id(p => p.IdElement);
            })
            );

All is working well to update rows, but destroy action never fires in the server, how can I get this working?

From DataSource documentation:

sync
Saves any data item changes.
The sync method will request the remote service if:
the transport.create option is set and the data source contains new data items
the transport.destroy option is set and data items have been removed from the data source
the transport.update option is set and the data source contains updated data items

Is it valid for spreadsheet datasources too?

Best Regards

 

 

 

Bozhidar
Telerik team
 answered on 04 Aug 2016
1 answer
249 views

I don't know  if it is only possible through async method. 

I am not using any form.

Right now I am passing other data  

            var data = {
                Action: $("#Action").val(),
                Follow: $("#Follow").val(),
                EmailAddress: $.trim($("#emailaddress").val()),

                ...

};

$.ajax({
                url: webManager.resolveUrl("~/maint/Submit"),
                type: "POST",
                data: data
                success: function (response) {

Plamen
Telerik team
 answered on 04 Aug 2016
9 answers
469 views

Hi, 

we're evaluating the Spreadsheet component for our solution and while we love most of it, we are having a blocking issue in the hide/unhide feature

In our case, we have a kind of "control panel with button" around the spreadsheet, which allows the user to hide/unhide some blocks of (potentially non contiguous rows or columns in one click). E.g. let's say you click a button and you hide rows 1, 7, 15, and 50 and columns E, F and Z.

The Spreadsheet client side API exposes single col/row hide methods and the overall time is very high 

(e.g. 3 seconds to hide like some 40-60 rows)

Do you think there is or will be a workaround/fix on this?

thanks in advance

Sebastian

Peter Milchev
Telerik team
 answered on 02 Aug 2016
3 answers
77 views

Currently we have complicated model which has objects.

 

Model:

class Person {
string name{get; set;}
ContactInfo contactInfo{get; set;}
}

class ContactInfo  {
string phoneNumber {get; set;}
string address{get; set;}
}

 

View:

 @(Html.Kendo().Grid(Model.Person).Name("testGrid")
.Columns(columns =>
{
 columns.Bound(x => x.name);
columns.Bound(x => x.ContactInfo.phoneNumber);
....

 

 

in JS Console, with "$("#testGrid").data("kendoGrid").dataSource.data()" I see everything is good at the first load.

 

However, when I edit "phonenumber", the datasource looks like this:

o
-> Person 
     ->Name:"xxx"
     ->ContactInfo
            ->phoneNumber :"xxxx"
             ->address : "xxxxxx"
     ->ContactInfo.phoneNumber: ""

 

we used Jquery.ajax to send the data in js so it has duplicated "ContactInfo.phoneNumber" after stringify, then it never reaches the MVC controller.

 

Questions:
1. How to solve this issue?
2. How to avoid this additional "ContactInfo.phoneNumber" been created?

Thanks!

Vasil
Telerik team
 answered on 02 Aug 2016
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
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
+? more
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?