Telerik Forums
UI for ASP.NET MVC Forum
4 answers
217 views
Hi!

I have been trying to drag and drop a grid row onto a treeview item. It works reasonably well, but I dont see how I can get the ID of the grid row the drag originates from. Hopefully you can! Attached is an example triggering an alert box where I want to get the ID.

Thanks in advance!
/Victor
Victor
Top achievements
Rank 1
 answered on 13 Jul 2012
0 answers
285 views
I want to enable the ViewDetails command button only if Type is 1 else disable upon grid load, here is the code that displays the data on the grid, but how to Enable/Disable it?

@( Html.Kendo().Grid<KendoUIMVC.Models.SIListing>()
            .Name("Grid")
            .Columns(columns =>
            {
                columns.Bound(p => p.Number).Width(75);
                columns.Bound(p => p.Type).Width(50);
                columns.Command(command => command.Custom("Accept").Click("AcceptDetails")).Width(60);
                columns.Command(command => command.Custom("View").Click("ViewDetails")).Width(60);
            })
            .Pageable()
            .Sortable()
            .Scrollable()
            .Filterable()
            .Groupable()
            .DataSource(dataSource => dataSource
            .Ajax()
                .Read(read => read.Action("getListing", "Listing"))
            )     
)

<script type="text/javascript">
    function ViewDetails(e) {

    }

    function AcceptDetails(e) {
    }

</script>


^^ can some one help?
Venky
Top achievements
Rank 1
 asked on 13 Jul 2012
1 answer
395 views
I am having problems implementing the site map binding. I have scoured your example and don't understand how yours is working and mine isn't. Here is the code:
@(Html.Kendo().Menu()
        .Name( "KendoMenu" )
        .BindTo( "WebSiteMap"))

And in my Home Controller index method:
if( !SiteMapManager.SiteMaps.ContainsKey( "WebSiteMap" ) )
{
    SiteMapManager.SiteMaps.Register<XmlSiteMap>( "WebSiteMap", sitemap => sitemap.LoadFrom( "~/Web.sitemap" ) );
}

However I still get this error:

"You must have a SiteMap defined with key "WebSiteMap" in ViewData dictionary." I'm pretty sure that is what my code is doing so I don't understand why I would be getting this error.

Any thoughts?

Thanks!


Joe
Top achievements
Rank 1
 answered on 12 Jul 2012
6 answers
207 views
I can't really find any examples where you guys use a datetime column in your grids.  What i have is a grid that just has the following column binding:

columns.Bound(o => o.FormattedDateCreated).Width(110);
if i use server binding, a sample result i get from the above is:
7/3/2012 5:48:01 PM
if i use ajax binding instead, the same value in the will read the following instead:
Tue Jul 03 2012 17:48:01 GMT-0700 (Pacific Daylight Time)
How do i format the data in the bound column?  I want to use Ajax binding, but i want the value to display like the server binding above.  I tried using the 'format' parameter for that bound column (and setting it to "d"), but that just make the display value for all rows in that column "d". 
Phil
Top achievements
Rank 1
 answered on 12 Jul 2012
2 answers
189 views
I need grid filter controls which look like the Telerik WPF or Silverlight filters (see attached image).  The ASP.NET AJAX suite has FilterTemplates.  The Telerik .NET MVC controls do not, and I can't find anything like it in the KendoUI.  Is there a way to get custom filters like the one in the image?  I specifically need this when the filter icon is clicked, not somewhere else on the page.
J Schep
Top achievements
Rank 1
 answered on 12 Jul 2012
1 answer
173 views
Hi all,
I'm trying to bind a LINQ query that has a Distinct() in it and bind it to a Grid (this is the Telerik grid still, haven't converted to Kendo yet). I've tried adding AsQueryable() to it also, but still getting a "Specified method is not supported exception."

My query looks like this:

var rewardTypes = (from type in _rewardTypeRepository.GetAll()
                               from vo in type.ValidOutlets
                               join ot in _outletRepository.GetAll()
                                   on vo.Outlet.Id equals ot.Id
                               where userOutletIds.Contains(ot.Id)
                               select vo.RewardType).Distinct().AsQueryable();

Any ideas or guidance on this would be greatly appreciated.

Thank you,
Matt
Petur Subev
Telerik team
 answered on 12 Jul 2012
0 answers
138 views
I don't know how to resolve my problem.  I am trying to bind in server and ajax as well.  but until this moment it wont show up the value.... i just followed what is says in the documentation...but everything is not working!
Joel
Top achievements
Rank 1
 asked on 12 Jul 2012
0 answers
157 views
How to achieve the alert or messagebox  function of.
I Don't   find the alert UI at kendo UI.
Do use the window to achieve 
Zhou
Top achievements
Rank 1
 asked on 11 Jul 2012
2 answers
304 views
Hi,


I am using the Beta version 2012.2.621.

It happens that the model option is not set when i am using nested objects ( My model contains nested objects).
If I use the Model helper method, it doesn't work because it creates  something like 
model:{fields:{Parent.Children:{type:"number"}...

and this is not a valid javascript syntax.

Do I have to flatten my datasource or is there a workaround ?

Thanks.

Yann 
Yann
Top achievements
Rank 1
 answered on 11 Jul 2012
0 answers
166 views
Hi all,

I may be a beginner for ASP.NET MVC developer, but I created the new MVC4 RC project, and it allow to develop the mobile application with jQuery mobile layout as default. Are there any ASP.NET MVC examples for Kendo UI Mobile? For MVC examples, I see only Kendo UI web and dataviz on Q2 Beta demo. 

Are there any ways or examples to develop ASP.NET MVC mobile application using Kendo UI Mobile? Moreover, if there are the way to develop ASP.NET MVC mobile application, how to build the MVC project for the mobile device?

Thank you :))
Kirati
Top achievements
Rank 1
 asked on 10 Jul 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?