Telerik Forums
UI for ASP.NET MVC Forum
5 answers
180 views

Hi!

I made an editor template since I couldn't get the labels of the automatic editor to show up properly (they always show in lowercase, can't they pick up the DisplayName data annotation of the model?).

The issue is that it seems the model object isn't getting into the editor. For example:

If I edit a connector with the default automatic editor, I get a nice list for the "from/to" fields, with all the nodes in the diagram, which works perfectly. Now, if I want to replicate the same behaviour for my custom editor but I can't get them to show.

How can I set up my editor template so it picks up the shapes in the diagram?

Danail Vasilev
Telerik team
 answered on 22 Apr 2016
1 answer
161 views

i'm trying to start kendo.ui on my project. But when add Kendo.Mvc reference the project doesn't start and i receive this error:

The requested service '******' has not been registered. To avoid this exception, either register a component to provide the service, check for service registration using IsRegistered(), or use the ResolveOptional() method to resolve an optional dependency.

 

When I remove Kendo reference the project start.

Could you help me ?

Thanks a lot for your help.

Dimiter Madjarov
Telerik team
 answered on 21 Apr 2016
1 answer
124 views

I'm surprised I haven't seen this mentioned elsewhere (so I may be doing something very wrong...)

Whenever I'm in vs2013/15 and editing a Kendo MVC Grid - any edit in the body of the HTML helper moves indentation of the body of the helper to the right by one tab as soon as I step out (I move the caret to some other text in the grid, or outside it).

The end result is all my grid helpers tend to be shifted massively off to the right in the editor and I have to periodically 'shift tab' them back on to the screen.

Is this expected behaviour or have I got some settings wrong?

Thanks

Dimiter Topalov
Telerik team
 answered on 21 Apr 2016
1 answer
256 views

By default drag and drop files works excellent for chrome browser if the cursor is exactly over the kendo upload widget. Important - this widget is used in my application not in async mode. But when then cursor is not over kendo upload control the default action is triggered. I've blocked this by the simple code below.

$(document).on("dragover drop", function (e) {
    if (e.target.type != "file") {
        e.stopPropagation();
        e.preventDefault();
    }
});

Instead of blocking I want to change this. so when I drag file over any control in my webpage it will add a file to my kendo upload control. I've found the below solution, but this works only for one file.

$(document).on("dragover drop", function (e) {
    e.stopPropagation();
    e.preventDefault();  // allow dropping and don't navigate to file on drop
}).on("drop", function (e) {
    var dataTransfer = e.originalEvent.dataTransfer;
    $("input[type='file']").prop("files", dataTransfer.files); // put files into element
});

 

Definition of this widget is simple.

<div class="zalaczniki-files">
    @Html.Label("Opis załączników:")
    @Html.TextBox("linkDesc")
    @(Html.Kendo().Upload()
            .Name("files")
            .Multiple(true)
            .Messages(m => m.Select(linkCaption)))
</div>

 

Please - help.

 

Regards

Jaśkowiec Józef

Rekord

 

Dimiter Madjarov
Telerik team
 answered on 21 Apr 2016
1 answer
150 views
is there any server side MDX query builder like this client side one?
http://docs.telerik.com/kendo-ui/controls/data-management/pivotgrid/how-to/access-mdx-query
Georgi Krustev
Telerik team
 answered on 21 Apr 2016
2 answers
38 views

So, I have tried this a bunch of different ways to no result.  My need is I have a Grid filled with some Employees.  You can do the normal things with that Employe object.  Also, I want to have a Custom Command for "Edit Roles" which would popup a different EditablePopupGrid that also uses a ClientTemplate for just the Employee.Roles collection.

Can I accomplish this?  My grid is using Ajax currently. 

 

Radoslav
Telerik team
 answered on 21 Apr 2016
1 answer
81 views

Hi!

I need fill a tooltip with a list in a request json called from kendo grid reader, i show examples for one link or only one data, my problems is how i can get kendo data request from jquery o JavaScript or if there are other simple mode because i havent got model or other view variables, only the cast object for kendogrid it has the list in one property.

 

Thanks for your time.

Dimiter Topalov
Telerik team
 answered on 20 Apr 2016
2 answers
205 views

This is my Model bound view which works. 

What I need to be able to do is select a row from this grid and get its id, the id is in the vaultNidurstodur class.

From what I have gathered is that I need to use ajax, when I change from server to ajax I just get an empty grid.

How would I go about changing this to ajax ?

 

@model IEnumerable<VaultLeitarvefur.Models.VaultNidurstodur>
    <div class="col-xs-1">
        @(Html.Kendo().Grid<VaultLeitarvefur.Models.VaultNidurstodur>(Model)
    .Name("grid")
    .Columns(columns =>
    {
        columns.Bound(p => p.Verkefni).Title(VaultLeitarvefur.Models.VaultNidurstodur.Key01).Width(150);
        columns.Bound(p => p.Verkefnisnumer).Title(VaultLeitarvefur.Models.VaultNidurstodur.Key02).Width(100);
        columns.Bound(p => p.NanariStadsetning).Title(VaultLeitarvefur.Models.VaultNidurstodur.Key03).Width(100);
        columns.Bound(p => p.EfniTeikningar).Title(VaultLeitarvefur.Models.VaultNidurstodur.Key04).Width(100); ;
        columns.Bound(p => p.Teikninganumer).Title(VaultLeitarvefur.Models.VaultNidurstodur.Key08).Width(100); ;
        columns.Bound(p => p.Utgafa).Title(VaultLeitarvefur.Models.VaultNidurstodur.Key13).Width(100); ;
        columns.Bound(p => p.DagsetningUtgafu).Title(VaultLeitarvefur.Models.VaultNidurstodur.Key14).Format("{0:dd/MM/yyyy}").Width(100); ;
        //columns.Bound(p => p.file.Name).Filterable(false);
        columns.Bound(p => p.Id).Filterable(false).Visible(false);
        columns.Bound(p => p.File.Name).Title("Heiti").Width(100); ;
        columns.Bound(p => p.File.ModDate).Format("{0:dd/MM/yyyy}").Title("Breytingardags").Width(100); ;
    })
    .Events(events =>
              events.Change("row_change") // handle the "change" event
          )
    .DataSource(dataSource => dataSource
        .Server()
        .PageSize(40)
        .Model(model => model.Id(p => p.Id))
    )
    .Selectable()
    .Sortable()
    .Scrollable()
    .Filterable()
    .HtmlAttributes(new { style = "height:750px;width:1800px;" })
        )
    </div>

 

I have a controler action

 

        public ActionResult Index()
        {
            List<VaultNidurstodur> returnList = CacheList();

            return View(returnList);
        }

that finds and returns a list of results.

Regards,

Emil

 

Emil
Top achievements
Rank 1
 answered on 20 Apr 2016
1 answer
193 views

Here is the example.

I need 1,2,3 step tab strip validation.

http://demos.telerik.com/aspnet-ajax/tabstrip/examples/application-scenarios/wizard/defaultcs.aspx

Dimiter Madjarov
Telerik team
 answered on 20 Apr 2016
2 answers
538 views

We are using SignalR binding within our grids to display column information. One thing we would like to do is show custom markup such as a web video. How would we go about displaying a video or custom markup within a Kendo Grid Column? Specifically in the code columns.Bound(p => p.Message) below?

I'm thinking I may need to use a client template, but so far I haven't been able to get it to work.

@(Html.Kendo().Grid<DSTDBContext.Models.Core.Notification>()
 .Name("NotificationHomeGrid")
.HtmlAttributes(new { style = "height: 99%;" })
.Scrollable(o => o.Height("height: 100%;"))      
.Resizable(resizable => resizable.Columns(true))
.Filterable(ftb => ftb.Mode(GridFilterMode.Row))
.Sortable(sort => sort.SortMode(GridSortMode.MultipleColumn))
.Editable(editable => editable.Mode(GridEditMode.InCell))
.Pageable(pageable => pageable
.Refresh(true)
.Enabled(false)
.PageSizes(false))
.Columns(columns =>
{
columns.Bound(p => p.Id)
.Title("Actions")
.Width(65)
.Filterable(false)
.Sortable(false)
.ClientTemplate("<i class=\"fa fa-exclamation-circle fa-lg\"></i>");
columns.Bound(p => p.NotificationDate)
.Title("Date")
.Width(250)
.Filterable(false)
.Sortable(false)
.ClientTemplate("");

columns.Bound(p => p.Message)
.Title("Notification")
.Width(300)
.Sortable(true)
.Filterable(false);
})

.DataSource(dataSource => dataSource
.SignalR()
.AutoSync(true)
.Events(events => events.Push("onPush"))
.Sort(s => s.Add("CreatedAt").Descending())
.Transport(tr => tr
.Promise("notifyHubStart")
.Hub("notifyHub")
.Client(c => c
.Read("Read")
.Update("Update")
.Create("Create"))
.Server(s => s
.Read("Read")
.Update("Update")
.Create("Create")))
.Schema(schema => schema
.Model(model =>
{
model.Id(p => p.Id);
model.Field("NotificationDate", typeof (DateTime));
model.Field(p => p.Message);
}
)
)
)
)

Milena
Telerik team
 answered on 20 Apr 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
Barcode
ButtonGroup (Mobile)
Drawer (Mobile)
ImageEditor
RadioGroup
Sparkline
Stepper
TabStrip (Mobile)
GridLayout
Template
Badge
LinearGauge
ModalView
ResponsivePanel
TextArea
Breadcrumb
ExpansionPanel
Rating
ScrollView
ButtonGroup
CheckBoxGroup
NavBar
ProgressBar
QRCode
RadioButton
Scroller
Timeline
TreeMap
TaskBoard
OrgChart
Captcha
ActionSheet
Signature
AppBar
BottomNavigation
Card
FloatingActionButton
Licensing
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
DateTimePicker
TimePicker
StockChart
RadialGauge
ContextMenu
ArcGauge
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?