Telerik Forums
UI for ASP.NET MVC Forum
3 answers
279 views
I have a ListView with a PageSize of 1.as below:-

@(Html.Kendo().ListView<ResultViewModel>()
               .Name("detailListView")
               .TagName("div")
         .DataSource(dataSource =>
         {
             dataSource.Read(read => read.Action("GetDetails", "Result", new { id = ViewBag.TeamId }));
             dataSource.PageSize(1);
          })
            .ClientTemplateId("detail-template")
                .Pageable(pager => pager
                    .Numeric(true)
                    .PreviousNext(true)
                    .Info(true)
                )                
    )

How do I set the initial page number to a number other than 1? The datasource JS has a 'page' option but this wrapper doesn't seem to have one.
Neil
Top achievements
Rank 1
 answered on 17 Jan 2013
5 answers
346 views
Not matter what I try, I cannot get the template working when using ajax binding on a DropDownList() using Razor / MVC and EF.

The dropdownlist is getting the data properly from the json endpoint (returning a generic list of ef objects via json) but it's the drop down template that is not being generated properly.  I get "undefined" for data values in each item's option.

Have tried all kinds of things like:

.Template( " Employee Name : ${ data.empname }")

or

.Template( " Employee Name : ${ #=data.empname# }")

or

.Template( " Employee Name : #=data.empname# ")

and not matter what I try - i get

 "Employee Name:  undefined"

for each item.

Any help appreciated....
Rene
Top achievements
Rank 1
 answered on 17 Jan 2013
4 answers
381 views
Is there a way to make something editable only on create and not on edit in the editor?

To specify what I mean.

I would like different rules for editable depending on whether you have add new or edit old post. Some key fields cannot be edited once you done the initial create.
Nikhil
Top achievements
Rank 1
 answered on 17 Jan 2013
6 answers
982 views
Is it possible to specify page number somewhere in HTML helper so that grid's current page will be set to this specific page after loading? (I know it could be done by JavaScript without using HTML helpers, but it would be great to be able to do it in HTML helper)
Andrew
Top achievements
Rank 1
 answered on 17 Jan 2013
2 answers
146 views
Hello,

We are using Kendo grid to show records. We have a requirement of showing a textbox for a column when "Edit" button is clicked. This is working fine (in-built functionality provided by Kendo). However, when the "Create" button is clicked, the very same column needs to be replaced by an '<input type="file"....' so that the user is able to select a file from his machine. Any pointers on this will be really helpful.

Regards,
Nikhil
Nikhil
Top achievements
Rank 1
 answered on 17 Jan 2013
5 answers
333 views
Hi everyone,

I'm doing an ASP.NET MVC project with Kendo UI, and I've got a little problem.

I have a jquery script for re sizing my splitter.

window.onload = function () {
      $("#vertical").css("height", $(window).height());
};

But when I load my layout, I've got the good size, but not the good display. (1.png)

If I hide my bottom splitter , and then show it, it's the well display (2.png)

Thanks all for you answers :)
Dimo
Telerik team
 answered on 17 Jan 2013
1 answer
571 views
How do I change the text of the "Cancel changes" button on a toolbar of a grid?


Regards,
Jan Erik
Iliana Dyankova
Telerik team
 answered on 17 Jan 2013
4 answers
280 views
I am trying to conditionally format a column of booleans to display "Yes" if true and "No" if false.  I am following the example here, but it is not working.  Regardless of the values in my "IsEnabled" column, it displays the same thing for every column.  In the case below, it displays "Yes" for every row in the column even though "IsEnabled" is false. Please advise. Thanks.

columns.Bound(n => n.IsEnabled)
             .Width(100)
             .ClientTemplate(
                "# if (IsEnabled) { #" + "Yes" +
                "# } else { #" + "No" + "#}#");
Francois
Top achievements
Rank 1
 answered on 16 Jan 2013
1 answer
249 views
I want to implement master - details concept in asp.net mvc with kendoui.

Basically I have one mvc view to capture master record info. In the same view I want to add multiple detail records using kendo grid (like invoice).

I have successfully achieved the master entry part but details are not saved. I have checked the controller action method the child entities are not added in the master entity. It always shows as empty list.

I am using EF 5 and MVC 4 with Unit Of Work pattern. I am new to these technologies. I would appreciate if someone help to solve this problem.
Daniel
Telerik team
 answered on 16 Jan 2013
6 answers
242 views
Hello, 

We would like to use Aggregates with ListView. We have been able to get it working with Grid but not ListView.

<script type="text/x-kendo-tmpl" id="template">
    <div class="product">
        <img src="@Url.Content("/")${ImagePath}.jpg" alt="${Name} image" />
        <h3>${Name}</h3>
        <dl>
            <dt>Price:</dt>
            <dd>${kendo.toString(Price, "c")}</dd>
            <dt><input type="button" value="Remove"/></dt>
        </dl>
    </div>
    <div>
        <h3>Total price: ?????</h3>
    </div>
</script>
 
@(Html.Kendo().ListView<SixthCoffee.Web.ViewModels.CartItem>()
    .Name("CartList")
    .TagName("div")
    .ClientTemplateId("template")
    .DataSource(dataSource => {
        dataSource.Read(read => read.Action("AjaxCartGrid_Read", "MenuSurface"));
        dataSource.Aggregates(aggregates =>
            {
                aggregates.Add(s => s.TotalPrice).Sum();
            });
    })
             
)
Any help will be greatly appreciated.

Thanks,
Padmaja
Nikolay Rusev
Telerik team
 answered on 16 Jan 2013
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
Security
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
SegmentedControl
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?