Telerik Forums
UI for ASP.NET MVC Forum
13 answers
1.9K+ views
Hello,

Is there any way to bind my grid with all my data at the server side and manipulate it at the client side without making any posts(paging, sorting, etc)?

Thanks in advance,
Dzmitry
Rosen
Telerik team
 answered on 15 Jan 2015
1 answer
583 views
We already implemented partial solution for scheduling events with resource view using jQuery full calendar control(screen shot of the application attached). but since we start to use Kendo UI controls in our project(we have commercial license for Telerik products), we are planning to develop kendo schedular with resource view according to our requirements(features are exactly same in the image attached). i already started to develop the application using kendo controls(screen shot of the application attached) unfortunately i'm struggling to modify functionalities given by telerik under these circumstances:

1. Kendo UI Schedular having resource view with Kendo schedular as a grouping feature...it seems like a tree structure...i need to modify resources as a grid structure as mentioned earlier in the screen shot...
2. I don't want time slots,days enough for our requirements
3. i have too many resources and many events as well, i want to paginate both resources and events

Please give me solution for above mentioned issues and open a way to continue this module using kendo ui controls...
Thank you in advance
Vladimir Iliev
Telerik team
 answered on 15 Jan 2015
1 answer
106 views
I know this is really odd, but I'd like to please a big customer without a lot of custom code.  We are using UI for ASP.NET MVC 2014.3.1119 in an MVC project.  One of the views displays a horizontal bar chart.  We have just added export to PDF on all to all views (not Telerik, but another commercial product).  The trouble comes when sending this view to PDF - when there are many bars, the chart is split across multiple pages.  Due to some formatting, optional text and such on the view, etc. sometimes it paginates neatly between bars but most often it splits a bar across two pages.

Obviously, this issue exists whether I print from the browser, or use any capture tool (local or server PDF).

I'm just wondering if anyone has encountered this and done some clever math with the gaps and spaces based on actual plot size (not sure how to get that) versus the page size (less margins). 

If I have to write code for this math, can I rely on getting the same figures from the Telerik objects for all browsers or are there going to be differences I would have to account for?

Best,
Scott
T. Tsonev
Telerik team
 answered on 15 Jan 2015
1 answer
138 views
I am trying to set the time of a date picker to 1 hour later but keep getting an error, (only when adding hour)
Date.prototype.addHours = function (h) {
    this.setTime(this.getTime() + (h * 60 * 60 * 1000));
    return this;
}   
 
var d = new Date(e.event.start)
            d.addHours(1)
            $("#endx").kendoDateTimePicker({
                value: d
            });

I keep getting an error here in kendo.all.js line 1477
if (value && value.indexOf("/D") === 0) {
Where value is a number, and does not support indexOf

Thanks
Alan Mosley
Top achievements
Rank 1
 answered on 14 Jan 2015
10 answers
167 views
When one uses columnmenu to hide some columns and then changes the order of columns above mentioned get messed up (reordering of data occurs independently from headers).

I have recreated this unwanted behavior with your demos @http://demos.telerik.com/aspnet-mvc/grid/frozen-columns.

Rosen
Telerik team
 answered on 14 Jan 2015
1 answer
183 views
Hi all,
I have a grid with a couple of columns with a ClientGroupHeaderTemplate set.
If the columns are visible, then ExportToExcel command works properly, but when I try to hide these columns ( .Hidden(true) ), exporting resets the header defined by me and shows the default one (Column name: value) in the exported file.
How can I show the ClientGroupHeaderTemplate if I want these columns hidden?
Atanas Korchev
Telerik team
 answered on 14 Jan 2015
1 answer
275 views
Hi 

I am using Telerik(Product Version 2012.3.1018.340) MVC grid for my project. When I am setting initial Sort configuration with multiple columns, It have an issue with individual column sorting. The individual column sorting is not at all working in my grid

It is working fine if I didn't set initial sort order (ie, if i give just ".sortable()"). But i want to set initial sort order also individual column sort order functionality

I tried with operation mode is client. Then for one time the sorting is happening only for anyone column which we clicked first. Next time when we try to click on any other column to sort it won't work. 

I used the following code in my project, please help me to tackle this issue

view
------

Html.Telerik().Grid<MyApplication.MainApplication.Models.ApplicationModel.ApplicationViewModel>().Name("Grid1")
            .Columns(col =>
            {
                col.Bound(c => c.UserID).ClientTemplate(
                    "<a href='" + Url.Content("~/Index/Details/") + "<#= UserID #>' title='Details' class='lnkDetails'><#= Number #></a>"
                    ).Title("Number").Filterable(false);
                col.Bound(c => c.FirtName).Filterable(false);
                col.Bound(c => c.LastName).Filterable(false);
                col.Bound(c => c.RID).Hidden();
                col.Bound(c => c.Active).Filterable(false).ClientTemplate(
                    "<input type='checkbox'" + "<#= Active?\"checked\":\"\" #>" + " OnClick='return false' />"
                    ).Width(115);
                col.Bound(c => c.StartDate).Filterable(false).Format("{0:d}").Width(115);
                col.Bound(c => c.CloseDate).Filterable(false).Format("{0:d}").Width(112);
                if (currentUser.AdminRole && (currentUser.DataRole || currentUser.StaffRole))
                {
                    col.Bound(c => c.ID).ClientTemplate(
                            "<a href='" + Url.Content("~/Controller/Create/") + "<#= UserID #>' title='New Contact' class='edit'>New Contact</a>"
                            + "<a href='" + Url.Content("~/Controller/Details/") + "<#= UserID #>' title='Details' class='details action-margin'>Edit</a>"
                            + "<a href='" + Url.Content("~/Controller/Delete/") + "<#= UserID #>' title='Delete' class='delete action-margin'>Delete</a>"
                        ).Title("Action").Filterable(false).Sortable(false).Width(90);
                }
                else if(currentUser.AdminRole)
                {
                    col.Bound(c => c.UserID).ClientTemplate(
                            "<a href='" + Url.Content("~/Controller/Details/") + "<#= UserID #>' title='Details' class='details'>Edit</a>"
                            + "<a href='" + Url.Content("~/Controller/Delete/") + "<#= UserID #>' title='Delete' class='delete action-margin'>Delete</a>"
                        ).Title("Action").Filterable(false).Sortable(false).Width(90);
                }              
                else
                {
                    col.Bound(c => c.UserID).ClientTemplate(
                            "<a href='" + Url.Content("~/Controller/Details/") + "<#= UserID #>' title='Details' class='details action-margin'>Edit</a>"
                        ).Title("Action").Filterable(false).Sortable(false).Width(75);
                }
            })
 
                 .DataBinding(dataBinding => dataBinding.Ajax().Select("_Index", "Controller"))                
                 .Pageable(p => p.PageSize(30))                              
                 .Filterable(f => f.Filters(filters =>
                 {
                     filters.Add(c => c.Number).StartsWith((string)ViewData["Number"]);
                     filters.Add(c => c.FirstName).StartsWith((string)ViewData["FirstName"]);
                     filters.Add(c => c.LastName).StartsWith((string)ViewData["LastName"]);
                 }))
                 .Sortable(sorting => sorting
                        .Enabled(false)
                        .SortMode(GrUserIDSortMode.MultipleColumn)
                        .OrderBy(sortOrder =>
                        {
                            sortOrder.Add(o => o.Number);
                            sortOrder.Add(o => o.FirstName);
                            sortOrder.Add(o => o.LastName);                           
                            sortOrder.Add(o => o.Active);
                            sortOrder.Add(o => o.StartDate).Descending();
                            sortOrder.Add(o => o.CloseDate).Descending();
                            sortOrder.Add(o => o.UserID);
                        }))
                .Render();

controller
----------

[GridAction]
public ActionResult _Index()
{
    return View(new GridModel<UserViewModel>
    {
        Data = GetCases().ToList()
    });
}
Rosen
Telerik team
 answered on 14 Jan 2015
3 answers
172 views
Hi,

I want to maintain the state of the tabstrip in database before logout. So that on successful login thereafter the same tabs are getting displayed. Basically i need to maintain the tabs opened in a window. Those tabs might be dynamically added during that particular session. Can someone help me with this.

T. Tsonev
Telerik team
 answered on 14 Jan 2015
1 answer
141 views
Hi,

We have a requirement of implementing charts, so that series points can be adjusted by dragging them.
Here is an example of desired chart behavior: http://jsfiddle.net/highcharts/ZQQpS/2/embedded/result/

I explored Telerik's KendoUI and its MVC wrapper charts but it looks like this feature is not available. Is it? Any help?

Thanks
Iliana Dyankova
Telerik team
 answered on 14 Jan 2015
1 answer
159 views
Hello admin.  I have a problem. When i used the Kendo upload control and i want to get full path of the image in client side then how can i get path of image in kendo upload. I know its security issue but i want to get full path of image. so please suggest me how to do that?
thanks
Dimo
Telerik team
 answered on 14 Jan 2015
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?