Telerik Forums
UI for ASP.NET MVC Forum
2 answers
254 views
I tried to search but have been able to find a solution for this.  I am attempting to implement a grid with filter row that allows for filtering on a date range - having a From date entry box and a To date entry box both visible in the filter row.  I couldn't find a way to implement templates for the filters on filter rows or really either other way to accomplish this.  Any help or examples of someone doing something similar would be a huge help.  Thanks,
James
Top achievements
Rank 1
 answered on 19 Mar 2015
2 answers
301 views
Hi, i have a kendo grid with custom editor that show comboBox or dropDownList or datePicker.
It work correctly if i manually focus on column.

I need to show cell editor from code, so i call myGrid.editCell(myCol), but i noticed that this method work correcly only with columns without custom editor (it's show inputbox and focus on it).
With custom editor columns it's show the corresponding element (comboBox, dropDownList, datePicker ecc...) but if i click the widget not respond (es. not open comboBox or dropdownList or datePicker window).

my kendo ui version is v2014.2.1008

Any solution?
Thanks
Claudio
Top achievements
Rank 2
Bronze
Bronze
Iron
 answered on 19 Mar 2015
7 answers
119 views
I may be missing something obvious here, but how was the Unit Price NumericTextBox with a minimum of 1 accomplished on the demo at http://demos.telerik.com/aspnet-mvc/grid/editing-custom ?  I only see one mention of UnitPrice in the example code
columns.Bound(p => p.UnitPrice).Width(120);
but surely that's not all there was to it.  When I view the demo page's source I also see a kendo.data.DataSource being created with:
UnitPrice: { type: "number", validation: { required: true, min: 1} }
but it still seems like there would be something else going on in the @(Html.Kendo().Grid definition to make the editor use a NumericTextBox over just a plain textbox.

Is there anything else going on, and if so, where can I find the details?  I'm not seeing any more information in the local demo project either, but I might just be looking in the wrong place.  Or is there a better demo example I can look at that shows how to do just the NumericTextBox in a grid?
Kevin
Top achievements
Rank 1
 answered on 19 Mar 2015
1 answer
154 views
How can I set my treelist to expanded state by default ?
Alex Gyoshev
Telerik team
 answered on 19 Mar 2015
3 answers
282 views
Hi,

We need to set different colors for different events based upon a status value (Approve/Reject) dynamically.
We tried the sample on your site. 
.Resources(resource =>
{
resource.Add(m => m.OwnerID)
.Title("Owner")
.DataTextField("Text")
.DataValueField("Value")
.DataColorField("Color")
.BindTo(new[] {
new { Text = "Alex", Value = 1, Color = "#f8a398" } ,
new { Text = "Bob", Value = 2, Color = "#51a0ed" } ,
new { Text = "Charlie", Value = 3, Color = "#56ca85" }
});
})
But our requirement is to load datasource for resource dynamically with StatusId and StatusColor.

Thanks,
Jazeel
Vladimir Iliev
Telerik team
 answered on 19 Mar 2015
4 answers
718 views
Hi

I'm trying to reproduce the custom editing sample with dropdownlist inside the gridcell.
For some reason, the combo is not created...

I'm attaching the project to this message.

Do I miss any script for the project?

Thank you in advance,
Shabtai
Vladimir Iliev
Telerik team
 answered on 19 Mar 2015
3 answers
149 views
I am using AutoComplete where users can search for different type of data in one field like search in gmail or IMDB. In my case I would like to search for employees and departments. If the keyword matches both I have to display all the results. Below is the example format I want to display.

Emp Id   Name
123        test
124        test 1

Dept Id   Dept Name
123         Dept1
124         dept 2

how can I use two header templates?
Georgi Krustev
Telerik team
 answered on 18 Mar 2015
1 answer
83 views
Please help me to find checked items from hierarchy grid...i need few rows from parent tables as well as few from child tables..
Dimiter Madjarov
Telerik team
 answered on 18 Mar 2015
1 answer
217 views
I have an edit view which has a couple properties, plus an array of child objects.  The view uses a tabStrip for those child objects, one tab page per child.  Those child objects have a couple properties, and also an array of grandchild objects that are displayed in a grid.

I'm using a partial view to display the child object properties and the grandchildren grid.

The content of the tabStrip pages is defined by:

.Content(Html.PartialFor(model => model.Children[i], "_TheChildPartialView").ToHtmlString());

That provides the automatic prefixing of the child object's controls with "Children[(index)]", such as name="Children[0].SomeChildProperty", which is perfect.

But this causes a problem on the grid for the grandchildren.  When I click in a cell to edit it, the input that is created is given name="Children[0].SomeGrandchildProperty".  The input textbox is not given the value that was already in the cell, and when I leave the edit cell after changing the value the error is raised "Uncaught TypeError: Cannot read property '0' of undefined" which is shown to be coming from this code (looks like it is in C.extend.set of kendo.all.min.js):

(function(d
/**/) {
return d.Children[0].SomeGrandchildProperty
})

I'm naming the grid on the partial view with .Name("GrandchildrenForChild" + Model.Index), so that eliminates conflicts with the grid itself from having multiple grids on the page.  But I don't know how to do deal with the automatic prefix causing problems in the edit cells of the grid.  Anyone have ideas how to handle that?
Daniel
Telerik team
 answered on 18 Mar 2015
3 answers
344 views
Hello,

in our MVC 4 application we use a Kendo grid with the following configuration:

@(Html.Kendo().Grid(Model)
.Name("GridAddDrive")
.Columns(columns =>
{
columns.Bound(m => m.Type1Name);
})
.Navigatable()
.Selectable(selectable => selectable.Mode(GridSelectionMode.Single).Type(GridSelectionType.Row)).Events(events => events.Change("selectionChange"))
.Pageable()
.Scrollable()
.Sortable()
.DataSource(dataSource => dataSource
        .Ajax()
        .ServerOperation(false)
    )
)

When you now open the view which contains the grid and click a header of the column to sort it, you will be redirect to the link in the href of the column header.
The href in the header looks like this:

http://localhost:50107/ProjectDrives/AddDriveDialog?_=1369648574797&GridAddDrive-sort=Type1Name-asc

The question now:
Why the href of the column header contains this link? 
Other views which also contains a grid, the problem does not exist. In these views the href only contains a "#" and not a URL. A difference between the views is that these with the "#" in the href uses ajax to load data.

When searching for a solution we have found this article http://www.kendoui.com/forums/ui/grid/grid-sorting-problem.aspx, but the proposed solution seems to make no sense, because we have included all the files and in addition to that the functionality is given on other views.

Do you have another idea for a solution or suggestion to suppress the content of the href?

Kind Regards,
Peter Kaiser
Vladimir Iliev
Telerik team
 answered on 18 Mar 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
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
DateTimePicker
TimePicker
StockChart
RadialGauge
ContextMenu
ArcGauge
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?