telerik-grid

Telerik grid custom column building/formatting

前提是你 提交于 2019-12-06 13:39:08
I have a telerik grid with a dynamic data source (the grid may use up to roughly 10 totally different models for its data), so I have to build the columns dynamically as well (obviously). One of the columns in the grid (with certain models) is a double representing a time span in milliseconds. What I want to do is format this double to look like a timespan .The telerik code looks like this: <% Html.Telerik() .Grid(Model.DynamicGridDataSource) .Name("statisticalGrid") .Columns(a => GridHelper.GenerateColumns(a, Model.SelectedReport)) .DataBinding(dataBinding => dataBinding.Ajax().Select("

The Kendo UI directives require jQuery to be available before AngularJS. Please include jquery before angular in the document

痞子三分冷 提交于 2019-12-05 16:27:56
I have a Mvc with angular application. There are two layout files : Loginlayout: - Default layout MasterLayout: When click the Movie button , call the Movie Controller and Movie action. public ActionResult Movie() { return View(); } Its using mainlayout file: In Mainlayout file i have mentioned <script src=" https://cdnjs.cloudflare.com/ajax/libs/jquery/1.9.1/jquery.js"></script> @Scripts.Render("~/bundles/bootstrap") <script src="https://code.angularjs.org/1.3.8/angular.js"></script> <script src="//kendo.cdn.telerik.com/2016.2.714/js/kendo.all.min.js"></script> <script src="https://code

How to get a Telerik Grid filtered based on previous page selection

穿精又带淫゛_ 提交于 2019-12-05 08:08:15
问题 What I'm trying to do:- Index page would have a dropdown of say categories, select 1 then submit, redirected to telerik grid page with all records kept from a big table of selected category. so for example pet store, dropdown for which type of pets the store has then on next page a grid is populated with all pets of that type which the store has available today. already got the date filter sorted since that's applied to the databind. database is connection via an edmx, it has 2 table with no

How to delegate telerik grid view common methods to be call from parent page from every child page?

风格不统一 提交于 2019-12-04 23:56:46
I am using Telerik Gridview for displaying list of records and i have more than 10 pages on which i am using this gridview with this following common events code copy pasted(with some minor changes) on all this pages: protected void Page_Load(object sender, EventArgs e) { DisplayRecords() } public void DisplayRecords() { //Grid view names are different on different pages. GridView1.DataSource=Fetching records from database. GridView1.DataBind(); } protected void GridView1_SortCommand(object sender, GridSortCommandEventArgs e) { DisplayRecords() } protected void GridView1_PageIndexChanged

RadGrid apply filter in codebehind

假如想象 提交于 2019-12-04 06:39:45
I'm trying to set a value in a filter for RadGrid on a dropdown select. GridColumn column = RadGrid1.MasterTableView.GetColumnSafe("versionId"); column.CurrentFilterFunction = GridKnownFunction.EqualTo; column.CurrentFilterValue = VersionsCB.SelectedValue; RadGrid1.Rebind(); This does fill the version in the versionId filter box, and sets it to "EqualTo", but the grid is not filtered. What am I missing? EDIT: the aspx: <telerik:RadGrid ID="RadGrid1" runat="server" AllowFilteringByColumn="True" AllowPaging="True" AllowSorting="True" AutoGenerateDeleteColumn="True" AutoGenerateEditColumn="True"

How to bind images in Telerik Grid for ASP.NET MVC

◇◆丶佛笑我妖孽 提交于 2019-12-02 19:24:23
问题 Please let me know how to bind a image static image with all rows in Telerik Grid for ASP.NET MVC. <%= Html.Telerik().Grid(Model.SearchResponse) .Name("SearchGrid") .Columns(columns => { //Here i need to bind a static image column// columns.Bound(grid => grid.Name); columns.Bound(grid => grid.CaseNumber); }) .Pageable(true) %> 回答1: This is possible by adding another templated column to your collection: Using ASPX columns.Template(c => { %><img alt="Static Image Alt Text" src="<%= Url.Content(

Why kendo Ui -grid date is not sorting properly?

▼魔方 西西 提交于 2019-12-02 16:53:36
问题 value is ReinsDepositAmount ** output ** i have recently stucked with one of the application date sorting in kendo ui grid. In kendo grid , the column name is define like this Incoming value to ReinsDepositDate - Month,date,year format. 08-23-1991 Field name is ReinsDepositDate: { field: "ReinsDepositDate", type: "date", title: "Due Date",format: "{0:M/d/yyyy}", width: 100, filterable: { cell: { operator: "contains" } } }, When Sorting the date , its sorting based on first values 1/12/1994 23

How to bind images in Telerik Grid for ASP.NET MVC

谁说胖子不能爱 提交于 2019-12-02 12:13:01
Please let me know how to bind a image static image with all rows in Telerik Grid for ASP.NET MVC. <%= Html.Telerik().Grid(Model.SearchResponse) .Name("SearchGrid") .Columns(columns => { //Here i need to bind a static image column// columns.Bound(grid => grid.Name); columns.Bound(grid => grid.CaseNumber); }) .Pageable(true) %> This is possible by adding another templated column to your collection: Using ASPX columns.Template(c => { %><img alt="Static Image Alt Text" src="<%= Url.Content("~/myImage.jpg") %>" /><% }).Title("Static Image"); Using Razor columns.Template( @<text> <img alt="Static

how to use webmethod with telerik batch edit grid

我怕爱的太早我们不能终老 提交于 2019-12-02 09:04:00
Work on Asp.net vs2012 C# telerik:RadGrid batch edit,I put save button outside from the grid.Under the save button want to call webmethod to save all changes on my db. Sample will be preferable,how to use webmethod with batch edit grid. Use RadClientDataSource to bind to your service: http://demos.telerik.com/aspnet-ajax/grid/examples/data-binding/client-side/client-data-source-binding/defaultcs.aspx 来源: https://stackoverflow.com/questions/28870389/how-to-use-webmethod-with-telerik-batch-edit-grid

Telerik MVC custom AJAX editor template

ⅰ亾dé卋堺 提交于 2019-12-01 23:06:56
问题 I am using the MVC version of the Telerik controls with ASP.NET MVC and the razor view engine . I have an AJAX grid. When I click edit I want it to display the data in form style. But the issue is that I want to rearrange the in form controls they way that I want them to display. How would I do something like that? Currently the controls are all beneath each other. I want to create my own layout for editing. I have a whole lot of other controls on the view, one of them being this grid. My