Telerik Forums
UI for ASP.NET MVC Forum
2 answers
277 views
Hello,

I am trying to make a grid (done) having a client template (done) having a hyperlink (done). When I click on the hyperlink, it should open a window (from the suite of Telerik ASP.NET MVC controls). However, when I write the javascript function and the html within the client template, it does not function as intended.

I am not posting my code because I am interested in an example of how to do something like that. Would someone be able to post an example, please?

Just to re-coup:

1) There is a grid.
2) Within the grid, there is a column, specified by client template.
3) Within the client template, there is a link.
4) Clicking on that link should open a Telerik ASP.NET MVC window and load custom content from the server via AJAX into that window.
5) For every row of the grid, different content should be loaded into the window. The window could be re-used or specified separately for each row (preferably, reused, but any working example will do).

Thank you in advance for your help.

Alexander Popov
Telerik team
 answered on 04 Feb 2015
5 answers
98 views
The link that currently is pointing to the documentation for the Map helper returns a 404:

http://docs.telerik.com/kendo-ui/aspnet-mvc/helpers/map/overview

If I try looking up the documentation in the helpers list, I do not see the Map helper listed. Will this be fixed any time soon?
T. Tsonev
Telerik team
 answered on 04 Feb 2015
2 answers
102 views
Hi

I have a splitter and i'd like one of the panes to render as collapsed when the page loads? Is this easily done?

Thanks
Alex Gyoshev
Telerik team
 answered on 03 Feb 2015
1 answer
204 views
Hi,

We are using the Kendo UI Grid with batch editing mode (in-cell).

The problem is when the user is editing a cell and in edit mode, if the user tries to sort the column, the editor control disappears along with the validation.

We need to show the validation in the grid till the validation rules are not satisfied.

Our requirement is that the control should remain visible even if the user sorts the grid.

Or can we disable sorting on the grid when the user is in edit mode?

Can you please give a good solution for this?

Regards,
Alexander Popov
Telerik team
 answered on 03 Feb 2015
2 answers
497 views
I have little experience with the Kendo Grid HTMLHelper for ASP.Net MVC and have a couple of different scenarios in which I ideally need to specify multiple model items to be used in a "Columns.Bound()" clause for an @Html.kendo.grid declaration.   One is where I need to concatenate two model items for the value of a particular column.  

The other is where I need to have the title/tooltip for a column for one model item be the contents of another model item in that same row as in the following:

columns.Bound(model => model.modelItem1).Title("Reason Dump Taken").ClientTemplate("#= getTruncatedValue(modelItem1,36)#").Width(180).HtmlAttributes(new { title = " #= modelItem2 # "});

In both cases adding the 2nd model item, either as "modelItem2" or as "model.modelItem2" throw syntax errors.  I've searched this forum and others and haven't seen a syntax for simply implementing the first one.  

I did see a more lengthy workaround for the second that involved registering a javascript function to be called when a tooltip was requested; getting the grid row in that function, and trying to provide the 2nd model item via that mechanism. 

But it would be much easier if I could just specify something more like title = " #= modelItem2 # ".

Thanks in advance,
-Bob
Dimiter Madjarov
Telerik team
 answered on 03 Feb 2015
5 answers
233 views
Telerik is seriously deficient with its Data Access toolset by not providing a way to automatically scaffold controllers and views from models in an MVC project. See, by comparison, what Microsoft now supports for its own native system, Entity Framework - http://www.codeproject.com/Articles/685210/CRUD-Operations-Easy-with-New-Scaffolding-Feature.

I like Telerik's approach generally, and its tools including the data model diagramming, but data isn't created or edited out of thin air. Creating forms is a tedious, repetitive, time consuming (hence money consuming) task. If Telerik isn't going to support scaffolding, it's losing a big edge to Microsoft's own tools, and Data Access becomes significantly less valuable.

I see a lot of desire from various developers for this capability as I searched existing threads, but no indication of a serious effort to make scaffolding a priority. Any comments by Telerik on this?
Doroteya
Telerik team
 answered on 02 Feb 2015
4 answers
244 views
Good day,

I am using the ASP.NET MVC server side scheduler.  What is noticeably missing is a way, when one chooses to delete/edit an entire series of a recurring event, to specify

1.  Delete this entire series, or
2.  Delete the highlighted event and all future events in the series, but leave previous ones intact.

I understand how, behind the scenes, the original series would have to have its end date adjusted to the date prior to the selected event, and then a new series would have to be created with the new recurring event data.

Are there plans to add this functionality to the current delete/edit recurring event dialog?  Or are there examples of how one would accomplish this?

Still loving the scheduler, and thanks in advance for any assistance with this.

Adam
Adam
Top achievements
Rank 1
 answered on 02 Feb 2015
2 answers
318 views
Hi,
I'm trying to configure my development site so that I can access it across the LAN. Firstly, my development environment is Windows 8.1, Visual Studio 2013 Premium, IIS Express, UI for ASP.NET MVC 2014.3.1119
 
The project is a templated MVC 4 internet application which targets .NET framework 4. After the wizard created the project I converted it using the Telerik convert project menu option.  I then changed the site to use Windows authentication and I disabled Anonymous authentication. I then added the binding for the ip address in the IIS applicationhost.config file and added the urlacl for everyone.

When the application is run, the application displays correctly when using the localhost address e.g. http://localhost:12335 

When I then browse to it using the IP address e.g. http://192.168.0.123:12335 the start page is displayed without any styling. In the browser console there are numerous 'Failed to load resource: the server responded with a status of 500 (Internal Server Error)' messages with the file name alongside e.g. http://192.168.0.123:1235/Scripts/jquery-1.8.2.js. The filenames seem to correspond to the links and scripts etc. in the _Layout.cshtml file.

I guess there is something else I need to (re)configure
What would you suggest?

Thanks
Craig
Craig
Top achievements
Rank 1
 answered on 30 Jan 2015
3 answers
100 views
Hi,
I think this is a general question regarding template syntax.

I am trying to define a grid column template in a child grid template so that it is rendered as an anchor  (which I want to later use to re-position in the page). For example : 
<a href="#Myref1234">Bookmark</a>


In the column's ClientTemplate I have

.ClientTemplate("<a href='\\#\\#=Reference\\#'>Bookmark</a>")

But the result is an Invalid template
<a href='##=Reference#'>Bookmark</a>


This template without the leading \\# is accpeted and produces valid HTML:
.ClientTemplate("<a href='\\#=Reference\\#'>Bookmark</a>")


What syntax should I use to allow me to prefix the href with the # ?

Or perhaps you can suggest another way to allow me to reposition on the page?

Thanks
Craig

 
Nikolay Rusev
Telerik team
 answered on 30 Jan 2015
1 answer
295 views
   public ActionResult Drzave_Create([DataSourceRequest]DataSourceRequest request, [Bind(Prefix = "models")]IEnumerable<DrzaveViewModel> drzave)
        {
            
                // Will keep the inserted entitites here. Used to return the result later.
                var entities = new List<Drzave>();
                if(ModelState.IsValid)
                {
                    using(var autoOtpad = new AutoOtpadEntities())
                    {
                        var product = new List<Drzave>();
                            foreach(var drzava in drzave)
                            {

                                // Create a new Product entity and set its properties from the posted ProductViewModel
                                var entity = new Drzave
                                {
                                    DrzavaId = drzava.DrzavaId,
                                    Naziv = drzava.Naziv,
                                    PuniNaziv = drzava.PuniNaziv  

                                };


                            }
                              // THIS IS NOT WORKING FOR ME...
                             var query = autoOtpad.Drzave.Where(x => x.Equals(product).ToList();

                             if (query != null)
                             {
                                  // row exists

                             }
                             else 
                             {
                                 // update DB// Add the entity
                                autoOtpad.Drzave.Add(entity);
                                // Store the entity for later use
                                entities.Add(entity);
                             }
                        // Insert the entities in the database
                         autoOtpad.SaveChanges();
                    }
                }
        
                // Return the inserted entities. The grid needs the generated ProductID. Also return any validation errors.
                return Json(entities.ToDataSourceResult(request, ModelState, drzava => new DrzaveViewModel
                {
                    DrzavaId = drzava.DrzavaId,
                    Naziv = drzava.Naziv,
                    PuniNaziv = drzava.PuniNaziv
                }));
        }  
    }




Petur Subev
Telerik team
 answered on 30 Jan 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
Rating
ScrollView
ButtonGroup
CheckBoxGroup
NavBar
ProgressBar
QRCode
RadioButton
Scroller
Timeline
TreeMap
TaskBoard
OrgChart
Captcha
ActionSheet
Signature
DateTimePicker
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
TimePicker
StockChart
RadialGauge
ContextMenu
ArcGauge
AICodingAssistant
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?