Telerik Forums
UI for ASP.NET MVC Forum
3 answers
107 views
I want the user to be able to make a selection in my grid and then when they close the grid I want the selection passed back to a text box on my page.  My grid is actually in a window.  So the user clicks a button, it opens my grid and shows a table.  I have all of this code working, but now I need to have the selected item passed back to the text box.  I have tried this function on the close event of the window.
function onClose() {
    var selected = $.map(this.select(), function(item) {
        return $(item).text();
    });
    $("#safekeep").text = selected.toString;
}

Any suggestions? Or is there a tutorial somewhere for this?

 

 

 

Daniel
Telerik team
 answered on 04 Feb 2013
1 answer
109 views
It is possible to hit the Add New button 3 times to get the blank lines and then let the user enter all the values?  Currently you have to hit add new, then add one, hit add new again then add one..

Thanks
Chris
Petur Subev
Telerik team
 answered on 01 Feb 2013
2 answers
440 views
Hello,

Is possible show a data base image (for example product photo) to a grid's popup template 
I try Try this in my editor template view, but id is always 0:
<img src='@Url.Action( "ShowFoto", "Pacientes", new {id = Model.Id} )' />
The controller action is:

public ActionResult ShowFoto(int id)
{
    var imageData = _db.Pacientes.Find(id).Foto;
 
    if (imageData != null)
    {
        return File(imageData, "image/jpg");
    }
    return null;
}
Another question is how to add a new image from the template popup window?

Thanks!
LUIS
Top achievements
Rank 1
 answered on 01 Feb 2013
1 answer
124 views
http://demos.kendoui.com/web/grid/filter-menu-customization.html

In your grid demo for filter menu customisation you define grid columns as follows:

@(Html.Kendo().Grid<Kendo.Mvc.Examples.Models.EmployeeViewModel>()    
    .Name("Grid")
    .Columns(columns => {
        columns.Template(@<text>@item.FirstName  @item.LastName</text>)
                .ClientTemplate("#=FirstName# #=LastName#")
                .Title("Name");
        columns.Bound(e => e.City)
                .Filterable(filterable => filterable.UI("cityFilter"))
                .Width(200);

However, the Filterable method on a column only accepts a bool as an input value.
The code in this demo is not possible.
Myles
Top achievements
Rank 1
 answered on 01 Feb 2013
1 answer
105 views
if I type 7809876543
Is possible to format to (780)-987-6543 for display?
Dimiter Madjarov
Telerik team
 answered on 01 Feb 2013
2 answers
147 views
Hi,
I have this code:
public ActionResult Index(MovieViewModel model, GridCommand command)
{
...
}
But command is empty after for example sorting or changing page in the grid.

In old Telerik Mvc grid there was an attribute to set on the ActionResult. Do I need something similar here?

/Mattias
Mattias
Top achievements
Rank 1
 answered on 01 Feb 2013
1 answer
69 views
Hi,
I'm using this code:
.EnableCustomBinding(true)
.PrefixUrlParameters(false)

and when I hover over the UpdatedDate column I'm getting the correct url: pageSize=10&sort=UpdatedDate-asc
but after I clicked it the url in address bar is: undefinedsort=UpdatedDate-asc&undefinedpage=1&undefinedpageSize=10&undefinedgroup=&undefinedfilter=

Have I missed something?
I have also set a name for the grid: .Name("MyGrid") and that part is removed when using PrefixUrlParameters(false).

Regards,
Mattias
Daniel
Telerik team
 answered on 01 Feb 2013
4 answers
935 views
HI all,

I'm a bit new to Kendo, so forgive me if this is an easy question;

I have a grid of orders. The last column of the grid needs to be a link/button/whatever that launches a bit of JavaScript that does some AJAX stuff. Pretty simple. I found that documentation on the columns.Template method and I _think_ that's what I want. The problem is that I have only found examples where one field from the model is being used in the method call and I need three;
columns.Template(p =>
{@<a href="#"
onclick="GetListOfVendorsByCountyAndProductType('@p.County', '@p.ProductTypeId.ToString()', '@p.OrderId');">Select Vendor</a>;       
                                          });
 I tried the snippet above but I got an error on the page that said "CS0201: Only assignment, call, increment, decrement, await and new object expressions can be used as a statement"

Any advice? Please remember I'm VERY new to the Kendo stuff.

Thanks,
James
Rich Coleman
Top achievements
Rank 1
 answered on 01 Feb 2013
1 answer
75 views
I updated to kendo 19.x today and got a load of errors, I did a rollback and all ok.
Is kendo supposed to work with 19.x, if not will there be an update soon?
Thanks
Atanas Korchev
Telerik team
 answered on 31 Jan 2013
2 answers
115 views
Hi,
It would be great if you could build in so some common properties are possible to enable by parameter true/false.
You have this functionality on some properties already.
It would be useful for example Create, Edit, Destroy like:
.ToolBar(commands => commands.Create(false))
It is then possible to grab this from the model like:
.ToolBar(commands => commands.Create(Model.EnableCreate))

Regards,
Mattias
Mattias
Top achievements
Rank 1
 answered on 31 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
Dialog
MultiColumnComboBox
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
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?