Telerik Forums
UI for ASP.NET MVC Forum
1 answer
107 views
How do I add a button to a tooltip so that when it is clicked it passes the dataItem of that point to a function? I need this to work across multiple types of charts.
Hristo Germanov
Telerik team
 answered on 23 Jul 2013
1 answer
107 views
Hi,
 
im building a hierachy using grids for example: category -> products -> orders. i have in my category a list of products (public list<products> products {get; set;} and my products have a list of orders (public list<orders> orders { get; set; }).im using a hierachical grid structure with client templates defined for the parent grids.

Now, when i add a category i do not create a record in DB but create it only on the Client (through javascript/Jquery) and so with products and orders. (i have logic to uniquely identify elements(grids) in the hierachy that enables me to add children under parent nodes). I want to be able to save all changes at one shot when i click a button(Save).

* has someone tried something like this before with hierachical grid?
* Is there an another way to accomplish this?
* I tried to loop through the grid in javascript and take the data from child grids and assign it to the parent. i.e take orders and put it under products then take these products and put them under category. Once i call grid.saveChanges() (on the top most parent grid) and reach the controller the product list in category has fields that are null or if there are integer properties they are all reset to 0. Serialize? type mis match? what is causing this behavior? any examples?

basically, if i could build an association with parent and child grid without hitting the controller to fetch child information with the #=parentID# that would be great!

thanks!
Petur Subev
Telerik team
 answered on 23 Jul 2013
2 answers
411 views
I m trying to add resources from the server. Is this possible.
I tried passing a Ienumerable from the viewmodel to bindto, but got error above.
I tried using read on resouces , I do not get an error but colors not showing up
Any example on how to do this? I think I am lost here

What I have so far.
@code
    Dim s As Kendo.Mvc.UI.Scheduler(Of BO.Models.Bookings.BookingEvent) = Html.Kendo().Scheduler(Of BO.Models.Bookings.BookingEvent)() _
    .Name("scheduler") _
    .Date(Date.Today) _
    .StartTime(Date.Today.AddHours(7)) _
    .Height(600) _
    .Timezone("America/Phoenix").Resources(Function(resource) resource.Add(Function(m) m.TeamId) _
                                           .Title("Owner") _
                                           .DataTextField("Name") _
                                           .DataValueField("TeamId") _
                                            .DataColorField("Color") _
                                           .DataSource(Function(d) d.Read("resouces", "services", New With {.area = String.Empty}))) _
    .Views(Sub(views)
                   views.DayView()
                   views.WeekView(Function(weekView) weekView.Selected(True))
                   views.MonthView()
                   views.AgendaView()
           End Sub) _
    .DataSource(Function(d) d.Model(Sub(m)
                                            m.Id(Function(f) f.BookingId)
                                            m.Field(Function(f) f.TeamId).DefaultValue(1)
                                    End Sub) _
    .Read("read", "services") _
    .Create("Create", "Scheduler") _
    .Destroy("Destroy", "Scheduler") _
    .Update("Update", "Scheduler"))
 
    s.Render()
End Code
Alan Mosley
Top achievements
Rank 1
 answered on 23 Jul 2013
6 answers
127 views
Hello there,

At the moment, I'm trying to create a grid where user is able to choose a product category in a first step, and then choose a product which belongs to the selected product category. All the cascading stuff is working perfectly using ForeignKey and custom editor.

However, Foreignkey columns are binded to ID in model. So, when a selection is done, the displayed value is always the ID. I would like to display the value which match to the selected ID instead. I tried doing it through ClientTemplate, but it didn't work. I didn't find some custom property about it too.

If require, I can post some code & screenshots.

Thanks for answers :)
Claude
Top achievements
Rank 1
 answered on 22 Jul 2013
2 answers
508 views
I've read various threads about how to get an actionlink in a column in an AJAX grid and have successfully implemented that portion of it.  However, in the case of this link I need it to use HttpPost to the server.  The purpose of the link is to allow download of a document.  However, we don't want parameters visible in the querystring that identify the particular document as it is in the database.  So I have the Action which is called with the document id via POST retrieve the document, store it in session and return a GUID linked to that session variable along with the URL to the retrieval page.  I then submit a dynamically created form which goes to that retrieval page, passing it the GUID, and gets the document for download.

To that end I created a function to attach to a classed link and use JQuery to post it to the server.  It works perfectly for an ActionLink outside the AJAX bound grid but inside the grid it doesn't call that javascript function, instead it attempts to call the Action via Get which is disallowed so I get a 404 error.  Is there some other way to tell the ActionLink in the grid to use the javascript function? I would appreciate any help you could provide.

I've attached a text file with the javascript function and the ActionLink and Grid declarations.

Daniel
Telerik team
 answered on 19 Jul 2013
1 answer
228 views
Hello, 

I have Kendo MVC grid with In-line editing. When I click on save button is show following error message and unable to update record.

I'm using  "Kendo UI Complete v2013.1.514 (http://kendoui.com)" version.

-------------------------------------------------
kendo.web.min.js (line 9, col 1)

SyntaxError: missing ; before statement

d.0=value
-------------------------------------------------
 

Do anyone is having any solution regarding this.

Thanks,
-Nandu.
Dimiter Madjarov
Telerik team
 answered on 19 Jul 2013
7 answers
166 views
Hello!
I use Tabstrip(asp mvc)! I have two tabs;
Example:
I select second tab;
I have grid in first tab
And If I use this:
grid.showColumn() 
All good, but if I use grid.hideColumn
I see this:
screan_1.png
But I need:
screan2.png
Gusev
Top achievements
Rank 1
 answered on 19 Jul 2013
1 answer
124 views
Hi,

I have a grid configured on ASP MVC using Razor with a custom editor template, to show a textarea for editing a big text field.

The grid as per client requirements, needs to allow incell edit and keyboard navigation.

The problem I'm having is that having that configuration doesn't allow me to press Enter key for adding new lines on the textarea while editing, instead cause the cell get out of edit mode.

Couldn't find a way to suppress that behavior nor to change it.

Any ideas?
Vladimir Iliev
Telerik team
 answered on 19 Jul 2013
1 answer
66 views
Hi

I'm using the approach found here (Editing Custom Editor) to bind some of my fields during edit mode to dropdown menus.

Everything works great but I need to know if it is possible to filter dropdowns during edit mode based on a previous selected value, which also happens to be a dropdown.

To help explain myself better, here is how the structure work:

[dropdown 1]                                     [dropdown 2]                                                              [dropdown 3]
select * where parentId = null      select * where parentId = id of dropdown 1     select * where parentId = id of dropdown

As you can see above, I will need to find a way to query the server on each change of the dropdown item to filter out the data I need to bind for the next dropdown.

I will appreciate it if anybody can point me in the right direction or perhaps to some relevant samples.

Thanks
Vladimir Iliev
Telerik team
 answered on 19 Jul 2013
1 answer
83 views
I have complex objects that need to be rendered in each grid, is there any way to make them render as their DisplayTemplates rather than having to manually create a javascript templates for each row.

The whole selling point of Kendo MVC was that I wouldn't have to screw around with javascript, and true, I haven't been using much javascript (which I'm familiar with) except for the workarounds for Kendo!
Daniel
Telerik team
 answered on 19 Jul 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?