Telerik Forums
UI for ASP.NET MVC Forum
6 answers
325 views
By using a HierarchicalDataSource, the first time a node is expanded, the data is fetch from the data source.
The next time, the data is not retrieved from the data source.
How can one define, that on each expand, the data should be fetched from the data source?
Greg
Top achievements
Rank 1
 answered on 22 Aug 2012
1 answer
286 views
How can we make a cascading dropdownlist or combobox like the country and cities in kendo.
Thanks in Advance
Samuel
Top achievements
Rank 2
 answered on 22 Aug 2012
0 answers
519 views
I'm testing implemention of the Kendo MVC grid control using a server-side model.  My Kendo grid is bound to a model in the view and does not implement any Ajax within the control.  I think I have most of it working correctly now.  I did find that if I'm using .Sortable() on the grid control that it makes all column headers sortable regardless is there is a bound() definied for a column.  Some columns have more complex contents that require Templates.  Some columns I don't want to sort on, but without defining .Bound() I can't used .Sortable(false) on the specific column.

Without a bound defined when I click a column header it throws an unhandled exception for the value being 'undefined'.  I've set a bound on all columns now regardless if it is useful or not.  I also tried to use the .Sortable(false) and it doesn't work.  My column is still allowed to be sorted.  That is issue #1.  Issue #2 is I can't find out to get the header for a column to be completely blank.  If I define .Title(null) or .Title(string.Empty) or .Title("") all still result in a small 1 character underline in the header instead of being blank.  Below is a mock up of my code.  Can you let me know if I'm doing something wrong, if this is something I'll have to wait on for the next release or if there is a temporary workaround?

@(Html.Kendo().Grid(Model.innerModel)
        .Name("Grid")
        .Columns(columns =>
            {
                columns.Bound(p => p.Location).Title("Location");
                columns.Bound(p => p.Date).Title("Date").Format("{0:dd.MM.yyyy}");
                columns.Bound(p => p.Info).Template(@<text>@(Html.Raw(item.InfoHtml))</text>).Title("Complex Info");
                columns.Bound(p => p.moreInfo).Title("More Info");
                columns.Bound(p => p.evenMoreInfo).Title("Schedule");
                columns.Bound(p => p.DetailsId).Sortable(false).Template(@<text><a class='jb-row-detailBtn' href='/Info/Detail/@item.DetailsId.ToString()'>Details</a></text>).Title(string.Empty);
            })
       .Footer(true)
       .Pageable()
       .Sortable()
       .DataSource(dataSource => dataSource
           .Server()
           .PageSize(2)
           .Total(Model.innerModel.Count)
         )
  )
Adam Gilman
Top achievements
Rank 1
 asked on 21 Aug 2012
6 answers
610 views
Hello there,

I was wondering if there're any extra steps involved to get the validators to work on Kendo UI controls.  I have a Product model with UnitPrice and Quantity properties.  Both properties are decorated with the [Required] attribute.  In addition the Quantity property has [UIHint("Integer")].  Without the UIHint, Html.EditorFor(obj => obj.UnitPrice) will render out a regular textbox and the required-field validator will work just fine. However the NumericTextBox for the Quantity will not perform any required-field validation.  I also attached a sample project with the setup I described.  If anyone could take a quick look and let me know if I'm missing anything simple, I'd appreciate it.

Thank you,

Ben
PAUL
Top achievements
Rank 1
 answered on 21 Aug 2012
1 answer
229 views
I have a grid that needs to display a check box control in each row conditionally.  For example is the logged on user is the creator of that record, then show the check box, otherwise do not.  I am using Ajax data binding and cannot seem to find any examples of doing this. Are there examples of doing this out there?


Atanas Korchev
Telerik team
 answered on 21 Aug 2012
1 answer
280 views
The method GridRouteValues() is not not available in my controllers.
What have I missed?

RouteValueDictionary routeValues = this.GridRouteValues();
return RedirectToAction("Index", routeValues);

Daniel
Telerik team
 answered on 21 Aug 2012
0 answers
102 views
Hi all,
All elements of kendo ui are very fexible and usable. That is very important but elements as filters, page, and sorts in grids or width in splitter, can be saved state.
states can be saved for future elements entered by means of cookies?
and then set starting these elements obtained from the cookies saved?

The ui framework have any native method for this, or there is that develop any solutions...

best regards
bogamo
Top achievements
Rank 1
 asked on 21 Aug 2012
1 answer
11.3K+ views
I am taking an existing project and adding KendoUI in place of Grid's by another vendor.
The project uses IoC, UnitOfWork etc and so the MVC controllers do not directly use the Context and I cannot see the ToDataSourceResult method.
I have got it mostly working using .Server(), but now want to start using Ajax.


What does ToDataSourceResult do, and how can I replicate its functionality?
Daniel
Telerik team
 answered on 21 Aug 2012
1 answer
986 views
With the Telerik MVC grid it was simple to hide the footer with the .Footer(false) option. There doesn't seem to be a equivalent option for the Kendo grid, unless I missed it?

Anyone managed this?

Thanks!
Trent
Top achievements
Rank 1
 answered on 21 Aug 2012
0 answers
106 views
When any of the ${} below are null, or not provided, it wraps as if the <dd></dd> doesn't exist.  
How do I handle the if(${MiddleName}) !== NULL) then ${MiddleName} for example...

<div class="contact-research-view">         
<dl>             
<dt>Conact Id:</dt><dd>${ContactId}</dd>             
<dt>Honorific:</dt><dd>${Honorific}</dd>             
<dt>First Name:</dt><dd>${FirstName}</dd>             
<dt>Middle Name:</dt><dd>${MiddleName}</dd>             
<dt>Last Name:</dt><dd>${LastName}</dd>             
<dt>Suffix:</dt><dd>${Suffix}</dd>             
<dt>Primary Address Line 1:</dt><dd>${PrimaryAddressLine1}</dd>             
<dt>Primary Address Line 2:</dt><dd>${PrimaryAddressLine2}</dd>             
<dt>Primary Address City:</dt><dd>${PrimaryAddressCity}</dd>             
<dt>Primary Address StateOrProvince:</dt><dd>${PrimaryAddressStateOrProvince}</dd>             
<dt>Primary Address PostalCode:</dt><dd>${PrimaryAddressPostalCode}</dd>             
<hr/>             
<dt>Account Address Line 1:</dt><dd>${AccountAddressLine1}</dd>             
<dt>Account Address Line 2:</dt><dd>${AccountAddressLine2}</dd>             
<dt>Account Address City:</dt><dd>${AccountAddressCity}</dd>             
<dt>Account Address StateOrProvince:</dt><dd>${AccountAddressStateOrProvince}</dd>             
<dt>Account Address PostalCode:</dt><dd>${AccountAddressPostalCode}</dd>             
</dl>     
</div>
Michael
Top achievements
Rank 1
 asked on 20 Aug 2012
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
Dialog
MultiColumnComboBox
DropDownTree
Checkbox
Slider
Switch
Notification
Accessibility
ListView (Mobile)
Pager
Security
ColorPicker
DateRangePicker
Wizard
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
SmartPasteButton
PromptBox
SegmentedControl
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?