Telerik Forums
UI for ASP.NET MVC Forum
1 answer
211 views
Hi,

I want to bind the object list (object contain the two properties called Name and ID) and when i select Menu Item I want to get post request which is contain the selected object Name and ID. Is there anyway to do this with MVC menu control?

Thanks,
Erandika.
Petur Subev
Telerik team
 answered on 07 Feb 2014
2 answers
365 views
I'd like to provide a dropdown list of names to be used as part of the path to store files using the upload widget. Specifically, I'm using usernames as the directory name to store files. I have already figured out how to achieve this when the user is the one uploading files, however when an administrator does it then I need for them to be able to select the directory to upload the files to.
Matthew R.
Top achievements
Rank 1
 answered on 05 Feb 2014
4 answers
2.4K+ views
Hi, I'm new to mvc and even newer to Telrik's mvc controls but I'm having a hard time doing something that seems like it should take a couple of seconds. I just want to specify an alternate row color in my grid but I'm not having any luck doing it. I took a look at this demo but honestly I'm nto seeing where the alternate row color or (preferably) the theme is getting set? http://demos.telerik.com/kendo-ui/web/grid/index.html

Here's my mindlessly simple grid, if anyone can suggest what I need to do or where I can find good examples for simple tasks like this it would be greatly appreciated. Trying to convince my boss that MVC is he way to go but so far I'm kind of dumbfounded as to how complicated the ui seems to have gotten. 

Thanks
Bill

<div id="movies">
    @(Html.Telerik().Grid(Model)
        .Name("Grid")
        .Columns(columns =>
        {
            columns.Bound(model => model.Title).Width(500);
            columns.Bound(model => model.Price).Width(200);
        })
            .HtmlAttributes(new { style = "height: 380px;" })
            .Scrollable()
            .Groupable()
            .Sortable()
            .Scrollable ()
             
             
    )
</div>
 
<style scoped>
    #movies {
        width: 692px;
        height: 413px;
        margin: 30px auto;
        padding: 51px 4px 0 4px;
    }
    </style>

wdudek
Top achievements
Rank 1
 answered on 04 Feb 2014
1 answer
141 views
Hello i Am Mohit..

i am new to telerik controls, am using it into my application.
My issue is i have editor and above that one dropdown list and one button besides that, Now in jquery on the button click i want to put data into editor which is selected in drop down. For that i use simply i used:

$("#pass").click(function (event) {

 editor.value('dropdown selected Value');
}

its working fine in firefox and google chrome browsers, but not working in Internet Explorer it shows "Object Doesn't Support this Property or Method."

Can anyone please help me into this??
Dimo
Telerik team
 answered on 04 Feb 2014
1 answer
318 views
Hi,

How I can insert a blank row in a DropDownList

controller :

ViewBag.NoSource = new SelectList(db.Sources, "NoSource", "CodeSource");


View :

@(Html.Kendo().DropDownList()
    .Name("NoRisque") // Name of the widget should be the same as the name of the property
    .DataValueField("Value") // The value of the dropdown is taken from the EmployeeID property
    .DataTextField("Text") // The text of the items is taken from the EmployeeName property                                                       
    .BindTo((SelectList)ViewBag.NoSource) // A list of all employees which is populated in the controller                                                 
)

Dimo
Telerik team
 answered on 04 Feb 2014
1 answer
535 views
Kendo UI v 2013.3.1316
jQuery v1.9.1
All supported browsers of stated Kendo version

I'm looking for assistance (code snippet) to allow for full screen edit mode for the Kendo UI Editor similar to the Telerik ASP.Net AJAX Editor (http://demos.telerik.com/aspnet-ajax/editor/examples/overview/defaultcs.aspx). Unfortunately this feature has already been turned down as a new feature (http://feedback.kendoui.com/forums/127393-kendo-ui-feedback/suggestions/2923765-editor) so I'm hoping someone else has already tackled this and has a solution.

Thanks,

Eric
Dimo
Telerik team
 answered on 04 Feb 2014
1 answer
164 views
How can we use a RADTextBox in an MVC 5 Razor page?
We wish to make use of this for taking advantage of 'Password Strength' option.
We are new to Telerik, so we are not sure how to use it correctly.
We don't see any reference to a text box in Telerik.Web.MVC.UI and entirely not sure how to get to RADInput via Telerik.Web.UI in the .cshtml.
Vasil
Telerik team
 answered on 04 Feb 2014
6 answers
453 views
Hi there
I want to create a nice admin panel to creating my new post from on with these item :
1-post title
2-post body
3-post date&time
4-post comment
and some more
now does telerik have any component to help me to creating this admin panel ?
Best Regards
Raha
Dimo
Telerik team
 answered on 04 Feb 2014
3 answers
467 views
I was trying to use the LoadContentFrom() of Kendo Window like this:

Html.Kendo().Window()
	   .Name("time-hierarchy-edit-window")
	   .Title("Add or Edit Leafs")
	   .LoadContentFrom("/Hierarchies/EditTimeHierarchyNodes?hierarchyID=" + Request.QueryString["hierarchyID"])
	   .Draggable()
		.Width(500)
		.Render();

And I have the action method in controller:

public ActionResult EditTimeHierarchyNodes(Guid hierarchyID)
		{
			EditTimeHierarchyNodesViewModel model = new EditTimeHierarchyNodesViewModel() {
				Hierarchy = m_timeHierarchyRepository.GetTimeHierarchy(hierarchyID),
				LeafNodeGroups = m_timeNodeRepository.GetLeafNodeGroups(hierarchyID),
			};
 
			return View();
		}
However, when the ajax request came back, it gave me 500 error "This request has been blocked because sensitive information could be disclosed to third party web sites when this is used in a GET request. To allow GET requests, set JsonRequestBehavior to AllowGet." The issue is that the View() does not have any overload that allows me to specify the AllowGet option. Can any one shine some light on this? Thanks.

mark
Top achievements
Rank 1
 answered on 04 Feb 2014
2 answers
88 views
I would like to do something similar to the Batch editing example found here: http://demos.telerik.com/kendo-ui/web/grid/editing.html

However, several pieces of the configuration cause my page to never finish loading.  Accessing the page will cause the loading icon to appear in the tab of my web browser, but the page never finishes.  The Index method of my page is hit, and returns the View, but the Read AJAX method is never called, and the display never updates.

Adding the following things to the configuration causes this issue for me:
in .Columns:
    columns.Command(command => command.Destroy()).Width(110);
.ToolBar(toolbar => {
            toolbar.Create();
            toolbar.Save();
        })
.Editable or
.Editable(editable => editable.Mode(GridEditMode.InCell))

For example, this produces a read-only grid:
@(Html.Kendo().Grid<AccountManagement.Business.ViewModels.Areas.DM.RehireDocumentSettingViewModel>()
                    .Name("DocumentSettings")
                    .Columns(columns => {
                            columns.Bound(ds => ds.FormID);
                            columns.Bound(ds => ds.DocumentDateTypeName);
                            columns.Bound(ds => ds.RemoveIfOlderThanDays);
                        }
                    )
                    .Navigatable()
                    .Sortable()
                    .Scrollable()
                    .DataSource(dataSource => dataSource
                        .Ajax()
                        .Batch(true)
                        .ServerOperation(false)
                        .Events(events => events.Error("error_handler"))
                        .Model(model => model.Id(ds => ds.FormID))
                        .Create("RehireDocumentSetting_Editing_Create", "RehireSetup")
                        .Read("RehireDocumentSetting_Editing_Read", "RehireSetup")
                        .Update("RehireDocumentSetting_Editing_Update", "RehireSetup")
                        .Destroy("RehireDocumentSetting_Editing_Destroy", "RehireSetup")
                    )
                )

And this produces the issue:
@(Html.Kendo().Grid<AccountManagement.Business.ViewModels.Areas.DM.RehireDocumentSettingViewModel>()
                    .Name("DocumentSettings")
                    .Columns(columns => {
                            columns.Bound(ds => ds.FormID);
                            columns.Bound(ds => ds.DocumentDateTypeName);
                            columns.Bound(ds => ds.RemoveIfOlderThanDays);
                        }
                    )
                    .Navigatable()
                    .Sortable()
                    .Scrollable()
                    .Editable()
                    .DataSource(dataSource => dataSource
                        .Ajax()
                        .Batch(true)
                        .ServerOperation(false)
                        .Events(events => events.Error("error_handler"))
                        .Model(model => model.Id(ds => ds.FormID))
                        .Create("RehireDocumentSetting_Editing_Create", "RehireSetup")
                        .Read("RehireDocumentSetting_Editing_Read", "RehireSetup")
                        .Update("RehireDocumentSetting_Editing_Update", "RehireSetup")
                        .Destroy("RehireDocumentSetting_Editing_Destroy", "RehireSetup")
                    )
                )

I don't get any error messages in Visual Studio or the browser, or any indication of what is going on.

Any help would be appreciated.
Brian
Top achievements
Rank 1
 answered on 03 Feb 2014
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
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?