Telerik Forums
UI for ASP.NET MVC Forum
20 answers
402 views
I just tried upgrading my VS2013 solution to v2014.3.1316 of the MVC UI. It's failed three times now. My solution has two MVC enabled projects using the 2014.3.1223 internal update (which I had to manually install for probably the same reason) in it and I tried to update both at the same time. I got the following error:

An error occurred while running the wizard.Error executing custom action Telerik.KendoUI.Mvc.VSX.Actions.MultiProjectCopyResourcesAction: System.Runtime.InteropServices.COMException (0x8007007C): Error deleting file 'kendo.messages.ru-RU.min.js'. The system call level is not correct.   at EnvDTE.ProjectItem.Delete()
   at Telerik.VSX.ProjectConfiguration.ProjectFileManager.DeleteContents(String projectRelativePath, String excludePattern)
   at Telerik.KendoUI.Mvc.VSX.Actions.CopyResourcesAction.ModifyScripts(String mainAssemblyFolder, String versionedFolder)
   at Telerik.KendoUI.Mvc.VSX.Actions.CopyResourcesAction.ModifyResources()
   at Telerik.KendoUI.Mvc.VSX.Actions.CopyResourcesAction.Execute(WizardContext wizardContext, IPropertyDataDictionary arguments, IProjectWrap project)
   at Telerik.VSX.Actions.ProjectActionBase.Telerik.VSX.Actions.IProjectAction.Execute(IWizardContext wizardContext, IPropertyDataDictionary arguments, IProjectWrap projectWrap)
   at Telerik.VSX.Actions.MultiProjectActionBase`1.Execute(WizardContext wizardContext, IPropertyDataDictionary arguments)
   at Telerik.VSX.WizardEngine.Actions.ActionBase.Telerik.WizardFramework.IAction.Execute(IWizardContext wizardContext, IPropertyDataDictionary arguments)
   at Telerik.VSX.WizardEngine.ActionManager.ExecActions()

What gives?
Will
Top achievements
Rank 1
 answered on 09 Apr 2015
3 answers
319 views
I am working on a Client-Side paging grid (ServerOperation(false)) where I need to manually update the page size when a new row has been added using the grid's dataSource.insert() method. The reason for this is because I want to have the new record visible as well as any other existing records on the grid on the same page.

I am updating the page size using the following code when a new record is added:

var grid = $("#myGrid").data("kendoGrid");
var currentPageSize = grid.dataSource.pageSize();
grid.dataSource.pageSize(++currentPageSize);
grid.refresh();

Unfortunately, the above code does not work for Client-Side paging but it works on Server-side paging.

Any assistance would be very welcome.
Daniel
Telerik team
 answered on 09 Apr 2015
3 answers
184 views
Hi,

I can see that the Grid component can produce PDF (and Excel) exports, which is ideal.

But, how can I invoke the functionality from outside of the native Grid toolbar?

In the example below, I want to invoke the PDF export of the Grid using the Toolbar component (though it could be any external stimulus)


01.@(Html.Kendo().ToolBar()
02.        .Name("ToolBar")
03.        .Items(items =>
04.        {
05.            items.Add().Type(CommandType.SplitButton).Text("Export").ImageUrl(Url.Content("~/Content/web/toolbar/save.png")).MenuButtons(menuButtons =>
06.            {
07.                menuButtons.Add().Text("Export to Excel").ImageUrl(Url.Content("~/Content/web/toolbar/save.png"));
08.                menuButtons.Add().Text("Export to PDF").ImageUrl(Url.Content("~/Content/web/toolbar/upload.png"));
09.            });     
10.        })
11.    )  
12.    @(Html.Kendo().Grid<RequestWorkflowWithWatcherViewModel>()
13.          .Name("grid")
14.          .Columns(columns =>
15.          {
16.// columns stuff
17.          })
18.          .ToolBar(tools =>
19.              tools.Pdf())
20.          .Pdf(pdf => pdf
21.                .AllPages()
22.                .FileName("Kendo UI Grid Export.pdf")
23.                .ProxyURL(Url.Action("EnquiryExportToPdf", "Home"))
24.            )        
25. 
26.          ))

Ultimately I want to do the same with Excel.

Any ideas would be welcome.

Many thanks

Nathan
Kiril Nikolov
Telerik team
 answered on 09 Apr 2015
1 answer
138 views

Hi,      

i am working with kendo scheduler  and it gives me an error at scheduler event binding except for change event all other events generate me the same error. I created a new sample project with latest kendo version but still struggling with the same issue please refer the attach project and images for more information.

Vladimir Iliev
Telerik team
 answered on 09 Apr 2015
5 answers
199 views
As it is my first post on telerik forum i would like to say HI ;) 

And my question:

Is it possible to select resources for scheduler event in new window ? i have to create event that have participants as persons and companies and there is to many persons and companies in database to select them from dropdownlist.

Now i would like to have button for "Add Person" and "Add Company" or just "Add participants" and then generate a view where i could search and select in chceckboxes and then return these persons/companies back into controller.


Is it possible at all ? 

Could you make me a list of steps that allow me to achieve it ? (I am new in telerik)

Vladimir Iliev
Telerik team
 answered on 09 Apr 2015
1 answer
995 views
Hello
I'm programming in ASP MVC and I'm with the following problem:

I put the DateTimePicker on the page and when I test my LOCALHOST I do not have any problem, but when I publish the page on the server does not leave me icons DateTimePicker, leaving the inspector elements GoogleChrome the following error "Failed to load resource: the server responded with a status of 401 (Unauthorized) "
search the internet some solution and can not find,

I attached the image so you can see the problem and can help me find a solution.

Thanks
Alexander Popov
Telerik team
 answered on 09 Apr 2015
1 answer
63 views

Has anyone ever experienced a grid not getting any of the data-roles applied to the markup when the page loads? This seems to happen randomly, but usually when we open up the Kendo Window that contains the grid very quickly after the page loads.

 

It almost looks like we are going too quick for Kendo to catch up and create the proper markup.

 

Has anyone else seen a problem like this?

Dimo
Telerik team
 answered on 09 Apr 2015
4 answers
986 views
Hi.
There is grid:
@(Html.Kendo().Grid<OperMVC.Models.Daily>()
    .Name("Grid")
    .Columns(c => {
        c.Bound(p => p.Name).Width(150);
        c.Bound(p => p.BDayDate).Width(50);
    })
    .ToolBar(toolbar =>
    {
        toolbar.Template(
            @<div><label>BDate: </label>
            @(Html.Kendo().DatePicker()
                .Name("datepicker")
                .Events(e => e.Change("GetDate"))
                .Value(DateTime.Today)
                .Format("dd.MM.yyyy")
            )</div>
        );
    })
     
    .DataSource(dataSource => dataSource
        .Ajax()
        .Read(read => read.Action("ReadBDays", "Person").Data("filterDate"))
        //.ServerOperation(true)
    )
     
 
 
)
and js script for DatePicker Event:
function GetDate() {
        var value = this.value();
        var date = new Date();
        if (value) {
            date.setTime(Date.parse(value));
            console.log(date.toLocaleDateString());
        }
        $("#Grid").data("kendoGrid").dataSource.read();
         
    }
js function for filter data by date:
function filterDate() {
        var date = $("#datepicker").data("kendoDatePicker").value();
        console.log("filtered date:" + date);
        return {dateString : date}
    }


When I select the date, then update the Grid as I need, but if I want to choose a new date, it opens a DatePicker without any a dates. you have to change the month and return back, then there are only dates
Attach screenshot

vitaliy
Top achievements
Rank 1
 answered on 09 Apr 2015
2 answers
555 views

How do you specify an area when binding to a model?  I'm working on an ASP.NET MVC website using Areas, and using the Kendo().Menu() helper to build the menu.  I'm using the BindTo() method to bind the menu to a model that is based on Kendo.MVC.UI.MenuItem.  How do I tell the helper which area (i.e. which route) to use, and how do I specify that a particular controller is NOT in any of the areas.  The following example code example might help to illustrate the problem I'm having:

using System.Collections.Generic;
using System.Web.Routing;
using My.Resources.Views.Shared;
using Kendo.Mvc.UI;
 
namespace My.Web.Configuration
{
    public class MyMenuItem: Kendo.Mvc.UI.MenuItem
    {
        public int Id { get; set; }
        public IEnumerable<MyMenuItem> SubItems { get; set; }
    }
 
    public class MySiteMap
    {
        public MySiteMap()
        {
            MenuItems = new List<MyMenuItem>
            {
                // There is an AccountController in an Area named 'Admin'
                 
                // Neither one of the following approaches works. I think I'm close here, but I'm missing something
                // new MyMenuItem { Text = "Log In", ControllerName="Account", ActionName="Login", RouteName = "Admin"},
                // new MyMenuItem { Text = "Log In", ControllerName="Account", ActionName="Login", RouteValues = new RouteValueDictionary(new {area = "Admin"})},
 
                // The following line works the first time you click on it, but an error occurs the second
                // time, or when you try to navigate anywhere else, because the helper appends all links
                // to the Area name, once you've navigated to said area (e.g. "Home" becomes "Admin/Home"
                // which is incorrect).
                new MyMenuItem { Text = MenuResources.MenuLogin, ControllerName="Admin/Account", ActionName="Login" },
 
                // How do I tell the Kendo().Menu() helper that the 'Home' controller, e.g., is not located
                // in the 'Admin' area?
                new MyMenuItem { Text = MenuResources.MenuAbout, ControllerName="Home", ActionName="About" },
                new MyMenuItem
                {
                    Text = MenuResources.MenuProjects, ControllerName="Projects",
                    ActionName="Index",
                    SubItems = new List<MyMenuItem>
                    {
                        new MyMenuItem{Text = MenuResources.MenuProjectX,  ControllerName="Projects", ActionName="ProjectX"},
                        new MyMenuItem{Text = MenuResources.MenuProjectY, ControllerName="Projects", ActionName="ProjectY"}
                    },
                },
                new MyMenuItem { Text = MenuResources.MenuNotesToSelf, ControllerName="Blog", ActionName="Index" }
            };
            SiteMapName = "Root"; // Never displayed
        }
 
        public string SiteMapName { get; set; }
        public IEnumerable<MyMenuItem> MenuItems { get; set; }
    }
 
}

Darryl
Top achievements
Rank 1
 answered on 08 Apr 2015
5 answers
2.3K+ views
I have a dropdown editor like so:

model CCProMVC.Models.DivisionModelView

@(Html.Kendo().DropDownList()
    .Name("DivisionDDL")
    .DataTextField("DivisionName")
        .DataValueField("DivisionID")
    .DataSource(d => d
    .Read(r => r.Action("GetDivisions", "Client",<Need to pass Parent ID here from selected grid>))
    )
)

It's used in a Child grid. I need to pass the parent grids ID on the dropdowns read.

Reason why (I'll try and keep it short) I have a Client (grid) that can have Divisions.  The client can also have Stores that are part of a Client-Division.  I want to display in the Store grid's (child)  Division dropdown only those divisions for the given Client.

Any suggestions would be helpful.

Thanks
Petur Subev
Telerik team
 answered on 07 Apr 2015
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?