Telerik Forums
UI for ASP.NET MVC Forum
1 answer
485 views
I'm just getting started with UI for ASP.Net MVC and have been looking for an example on how use BootStrap and Telerik together in a MVC4 project. Have not found any examples. Does anyone know where I might find some. I want to use Bootstrap for my Layout page, and Telerik for UI Controls and widgets. Thanks
Dimo
Telerik team
 answered on 28 Apr 2014
5 answers
168 views
Hi,
I am trying to load a grid from a search button, and it is working great in my view. Then this grid has a nested grid. The nested grid should have a button that upon selected gets a column from the parent grid and a column from the child grid and redirect to a different view (controller action).

Parent grid:
@(Html.Kendo().Grid(Model.Names)
                        .Name("gridPatients")
                        .Columns(col =>
                        {
                            col.Bound(m => m.NAME_FIRST).Title("First Name");
                            col.Bound(m => m.NAME_LAST).Title("Last Name");
                            col.Bound(m => m.SEX).Title("SEX");
                            col.Bound(m => m.DOB).Title("DOB");
                            col.Bound(m => m.MRN).Title("MRN");
                            col.Bound(m => m.PERSON_ID).Title("Person ID").Hidden();
                        })
                        .Pageable()
                        .Sortable()
                        .ClientDetailTemplateId("TheVisits")
                        .DataSource(dataSource => dataSource
                            .Ajax()
                            .PageSize(10)
                            .ServerOperation(false)
                            )  
                    )

Child Grid:
@(Html.Kendo().Grid(Model.PatientVisitsModel.ENCOUNTERS)
                .Name("grid_#=PERSON_ID#")
                .Columns(col =>
                {
                    col.Bound(m => m.FIN).Title("FIN");
                    col.Bound(m => m.BEG_EFFECTIVE_DT_TM).Title("Admit Date");
                    col.Bound(m => m.LOCATION).Title("Location");
                    col.Bound(m => m.STATUS).Title("Status");
                    col.Command(c => c.Custom("Select").Click("DirectToPdfCreator(#=PERSON_ID#)"));
                })
                     .DataSource(dataSource => dataSource
                    .Ajax()
                    .PageSize(5)
                    .Read(read => read.Action("_TheVisits", "PatientSearch", new { PERSON_ID = "#=PERSON_ID#" }))
                )
                .Pageable()
                .Sortable()
                .ToClientTemplate()               
        )

The problem is whenever I click on the arrow to load child grid, it automatically calls the js function "DirectToPdfCreator" even though I didn't click on the select button in the child grid. Please advice and thanks in advance.

Shehab
Petur Subev
Telerik team
 answered on 28 Apr 2014
3 answers
199 views
After the most recent release of the Kendo MVC wrapper, I noticed a new config option (HighlightPath(boolean)) for the tabstrip builder.  The basic description given is to select an item depending on the current URL.  However, I haven't been able to locate anything in the API documentation that expands on this to explain what the URL format should be, how to set it, etc.  Is there something I am missing?
Daniel
Telerik team
 answered on 28 Apr 2014
1 answer
110 views
I'm writing a small mvc application for time scheduling. We will need the basic unit of time reservation to be 15 mins. I did some searching, it seems that minutesPerRow is exactly property I need. However, when the installation was complete, I can't seem to find the minutesPerRow property  using Visual Studio's intellisense. Is it still available? Or is there some kind of how-to to make it work? Thanks!
Rosen
Telerik team
 answered on 28 Apr 2014
2 answers
101 views
We have a project with Telerik MVC Extensions which we're migrating it to Kendo UI. There's only one significant issue when using ForeignKey columns in Grids.

I believe that this is caused by the EditorTemplate file GridForeignKey.ascx. When it's using a Telerik DropdownList it does not work 100% properly in Kendo Grids, when I set it to Kendo, it does not work 100% properly on old Telerik grids.

How can I set to Kendo use a different one for its foreign key? We have added Kendo EditorTemplate to EditorTemplates\Kendo folder.

Thanks,
Ezequiel

Ezequiel
Top achievements
Rank 2
 answered on 25 Apr 2014
2 answers
84 views
I've just downloaded the Kendo UI for ASP.NET MVC v.2014.1.415.340 and first it wouldn't run due to a missing WebGrease library and then it gave me the Unable to get value of the property 'jQuery' exception previously reported (and supposedly fixed) in 2013.2.716.

I am using VS2010 (client's choice, not mine), but aside from that it's the sample website built from the 'Telerik C# MVC Web Application' template (right out of the box).

Any thoughts?

TIA
Dave Hayward
Top achievements
Rank 1
 answered on 25 Apr 2014
2 answers
61 views
There seems to be a lot of demos for ASP.NET MVC, but where is the API Reference documentation?
Thanks.
Dan
Dimiter Madjarov
Telerik team
 answered on 25 Apr 2014
4 answers
1.7K+ views
I've got a grid and I would like to have one of the grid fields be a link which will open a Window widget.  But the widget needs to load a partial view using LoadContentFrom.  This will need to be a controller method and pass a parameter which is also available in the grid.

The normal grid ClientTemplate column would look like this:
columns.Bound(m => m.Proposal_Title).ClientTemplate("<a href='/Proposal/Index/#= Proposal_ID #'>" + "#= Proposal_Title #" + "</a>").Title("Title");


But I need that to maybe be a javascript call which will load a Window with a partial view and open it?

The normal LoadContentFrom would look like this:
.LoadContentFrom("Index", "Proposal", new { id = "22893" })

But I need those links to be created on the grid and the id to be the Proposal_ID as shown above.

Thanks in advance....






Alexander Popov
Telerik team
 answered on 25 Apr 2014
1 answer
195 views

Hi ,

        I have the kendo grid with popup editing and I'm able to increase the width od the window..But I need to increase the columns width in the popup windo, How do i do that..Thank you

Please find the attached image
Iliana Dyankova
Telerik team
 answered on 24 Apr 2014
2 answers
257 views
Not sure if I'm missing something, but I have a destroy action in my grid and it's removing the row before even reaching Controller Method.
and then, if I get any error, the row is not in the grid anymore.
Destroy Method on Controller:
public ActionResult DestroyCommission([DataSourceRequest]DataSourceRequest request, EditableCommission editable)
 {
     ModelState.AddModelError("Id", "Error");
       
     return Json(new[] { editable }.ToDataSourceResult(request, ModelState));
 }

My Grid:
<% this.Html.Kendo().Grid<EditableCommission>().Name("GridCommission").ToolBar(bar => bar.Create())
.DataSource(ds => ds.Ajax().Batch(false).ServerOperation(false)
.Read(read => read.Action("ReadCommission", "Commission").Data("getParam"))
.Create(create => create.Action("UpdateCommission", "CadastrarPedido").Data("getParam"))
.Update(update => update.Action("UpdateCommission", "CadastrarPedido").Data("getParam"))
.Destroy(destroy => destroy.Action("DestroyCommission", "Commission").Data("getParam"))
.Events(ev => ev.Error("error_handler.bind({WidgetID: '#GridCommission'})"))
                                .Model(model =>
                                    {
                                        model.Id(p => p.Id);
                                    }))
                        .Events(events =>
                        {
                            events.Save("onSave");
                            events.Edit("onEdit");
                        })                                  
                        .Columns(columns =>
                        {
                            columns.Bound(o => o.Id).Hidden(true);
                            columns.Bound(c => c.AgentId).Hidden(true);
                            columns.Bound(c => c.Agent).ClientTemplate("#=AgentName#").Width(180);
                            columns.Bound(o => o.Percentage).Width(95).Format("{0:N2}");
                            columns.Bound(o => o.Value).Width(90).Format("{0:N4}");
                            columns.Command(commands =>
                            {
                                commands.Edit();
                                commands.Destroy();
                            }).Width(120);
                        })
                        .Pageable(page => page.Refresh(true).PreviousNext(false).Input(false).Numeric(false).PageSizes(false))
                        .Editable(edit => edit.Mode(Kendo.Mvc.UI.GridEditMode.PopUp))
                        .Render(); %>

Am I missing something?
Petur Subev
Telerik team
 answered on 24 Apr 2014
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
MultiColumnComboBox
Dialog
DropDownTree
Checkbox
Slider
Switch
Notification
Accessibility
ListView (Mobile)
Pager
ColorPicker
DateRangePicker
Wizard
Security
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
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
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?