Hey,
I have a grid with a datasource that needs to have all of its datasource modifications done server side because the results can be quite large and I want to use the filters provided. I see that the DataSourceRequest returns a list of filters, however these filters can come back in a number of different structures depending on the number of filters applied.
I was wondering if you had a solution for converting these into something that can be used to query oData or converted in to linq where clauses.
Hello,
I have loaded data in Horizontal grouping Scheduler but could not load into vertical grouping scheduler. Grouping are showing correctly but no data is coming into the cells.
Can you please give me the sample of "Vertical_Read" and "Vertical_Create" action methods?
Here is my scheduler vertical grouping's razor code:
@(Html.Kendo().Scheduler<TaskViewModel>()
.Name("schedulerVertical")
.Selectable(true)
.Date(new DateTime(2015, 5, 24))
.StartTime(new DateTime(2015, 5, 24, 7, 00, 00))
.Height(600)
.Views(views =>
{
views.DayView();
views.WeekView(weekView => weekView.Selected(true));
views.MonthView();
views.TimelineView();
})
.Timezone("Etc/UTC")
.Group(group => group.Resources("Skills", "Techs").Orientation(SchedulerGroupOrientation.Vertical))
.Resources(resource =>
{
resource.Add(m => m.SkillID)
.Title("Skills")
.Name("Skills")
.DataTextField("SkillName")
.DataValueField("SkillID")
.DataColorField("Color")
.DataSource(d => d.Read("Skills", "Scheduler"));
resource.Add(m => m.Techs)
.Title("Techs")
.Name("Techs")
.Multiple(true)
.DataTextField("TechName")
.DataValueField("TechID")
.DataSource(d => d.Read("Techs", "Scheduler"));
})
.DataSource(d => d
.Model(m =>
{
m.Id(f => f.MeetingID);
m.Field(f => f.Title).DefaultValue("No title");
m.RecurrenceId(f => f.RecurrenceID);
m.Field(f => f.Title).DefaultValue("No title");
})
.Read("Vertical_Read", "Scheduler")
.Create("Vertical_Create", "Scheduler")
.Destroy("Vertical_Delete", "Scheduler")
.Update("Vertical_Update", "Scheduler")
)
)
Can you please give me the sample of "Vertical_Read" and "Vertical_Create" action methods?
Hi
I just started the evaluation of the MVC wrappers for Kendo UI. While I am not a novice in development (including MVC) I am a bit confused how you handle things and how to achieve the basic functionality.
I need to be able to work with the grid control inside the panel that would be coming as a result of the higher level AJAX call. My current preference is the server binding - the binding that renders the grid HTML during the single round of rendering. However, our users should be able to sort by columns, filter rows - all standard functionality; and that functionality must not reload the entire browser window - only the grid.
So I created the test scenario - the Index action returns the view, which renders the basic skeleton HTML with the target DIV. After page loading I invoke AJAX call using jQuery to another action of my controller - simulating the real case scenario when views will be coming dynamically. That action returns the partial view that calls for a grid.
@model List<Telerik1.Models.Item>
@* Basic Kendo MVC Grid sortable by Age column *@
@(Html.Kendo().Grid(Model)
.Name("Grid")
.Columns(columns =>
{
columns.Bound(p => p.ID).Groupable(false).Sortable(false);
columns.Bound(p => p.Name).Groupable(false).Sortable(false);
columns.Bound(p => p.Age).Groupable(false).Sortable(true);
})
.Pageable()
.Sortable(sort => sort.SortMode(GridSortMode.SingleColumn).AllowUnsort(false))
.Scrollable()
.Filterable()
.DataSource(ds => ds
.Ajax()
.Sort(s =>
{
s.Add("Age").Ascending();
})
.Read(cfg => cfg.Action("Read", "Eval1"))
)
)
I tried several things.
My initial attempt was to use .Server() for the data source. When I clicked on the "Age" column for sorting, your component redirected the entire page to its Index view (attaching grid's routing values to that address). It took me awhile to recognize why I was always getting the initial grid.
After that I switched the binding to .Ajax(). With that I pointed the .Read action to an action that returns the data source as a JSON collection but also tried to point to the action that calls for the partial view with the grid. In either case, when I try to sort or filter the result of the AJAX call is an empty grid.
I am sure I am missing something basic- some setting that would direct your component to the "Grid" action which returns the partial view with the grid specification - but I cannot pinpoint it. And I really cannot find the documentation article nor forum or blog entry, which would clearly explain the binding mechanisms, options and their implications in crystallized way.
I am attaching my sample project in hope of you spotting that missing thing. There is Eval1 controller, which I am using for evaluation.
Please note that I have removed Scripts and Content folders from the attachment to reduce the size of the attachment.
Please also note that the project was created by creating an empty MVC application and running your "Convert to Telerik application" wizard.
Please help us how to create inline editing in Hierarchy grid. Please provide the sample for this grid.
Thanks
Senthilkumar N
I have a problem with the DDL not lining up with the other controls on the same html line. (see attached images)
Below is the entire page (in razor). I am using the default skin. If the user swaps to portrait mode, the DDL wraps the the next line, but displays covering the bottom half of the textbox. Any ideas why this does not look right in Android Chrome - but fine in IOS Safari?
TIA,
Jeff
@(Html.Kendo().MobileView()
.Title("Mobile Home Page")
.Name("Index")
.Content(@<text>
<div>
Address:
@Html.Kendo().TextBox().Name("tbAddress").HtmlAttributes(new { style = "width: 100px" })
@Html.Kendo().Button().Content("+").Name("btnExpSearch")
@Html.Kendo().Button().Content("SEARCH").Name("btnSearch")
@(Html.Kendo().DropDownList()
.Name("ddlTrades")
.DataTextField("Text")
.DataValueField("Value")
.BindTo(new List<SelectListItem>() {
new SelectListItem() {
Text = "Plumbing",
Value = "1"
},
new SelectListItem() {
Text = "Electric",
Value = "2"
},
new SelectListItem() {
Text = "HVAC",
Value = "3"
}
})
.Value("1")
)
</div>
<br />
@(Html.Kendo().Grid<HomeController.grid_results>()
.Name("grid")
.Columns(columns =>
{
columns.Bound(c => c.Address);
columns.Bound(c => c.Builder);
columns.Bound(c => c.Neighborhood);
columns.Bound(c => c.NextStage);
columns.Bound(c => c.NeedBy);
columns.Bound(c => c.Hold);
}).Pageable()
.DataSource(ds => ds.Ajax().Read(read => read.Action("Jobs_Read", "Home")))
)
</text>)
)
A web application in development will be hosted on a different IIS server to the IIS server hosting the OLAP msmdpump.dll web application.
I can get the pivotgrid working setting the OLAP web application to anonymous access, and giving the anonymous user access to the cube. However, this is not secure. Ideally we would like to be able to specify that the pviotgrid should access the web application using the application pool identity of the application (which is a domain account). Have you any ideas on how to do this?
As a last resort, how would the pivotgrid be configured when using basic authentication? How would the username and password be specified in the configuration?
Thanks
Hi
Is it possible to implement Remote DataBinding for a Grid, but with the difference that when the View is rendered the Data for the first Grid-Page is also already rendered (and not loaded afterwards async) ?
Many thanks
Giuseppe