telerik-grid

Telerik grid with checkbox - Checkbox not showing up when the grid initially paints

喜夏-厌秋 提交于 2019-12-24 07:07:58
问题 I have a telerik grid with a checkbox. I am using a client template. There is a .DataBinding Ajax call attached. When the grid initially comes up, instead of a checkbox, it has the id value as text. If I hit refresh, the ajax call gets executed and when it comes back the checkbox appears. Is there any way to force the ajax call to happen when the grid initially paints so that I have a checkbox and not text ... Code sample: <% Html.Telerik().Grid(Model.AdminSongQueue) .Name("Grid") .Columns

JavaScript code to refresh page and or telerik grid

妖精的绣舞 提交于 2019-12-24 04:40:52
问题 I need some kind of code which will refresh the page every 5min and if not the page then just the Telerik grid displayed on it since that's all that's rly needed. Only other thing would be if it was after 5min of no activity on the page if possible but it's not core feature. 回答1: One possibility is to use a meta refresh tag: <meta http-equiv="refresh" content="300" /> Another possibility is to use the window.setInterval method to send periodic AJAX requests to a controller action and update

Telerik MVC Extensions Grid - How to have the grid filter apply to initial LINQ query or get passed down to db?

筅森魡賤 提交于 2019-12-24 02:09:46
问题 Currently in my MVC grids I am using normal Server Bindings, and the filters then are appended to the URL as query strings. The problem with this method is that if I am querying a grid that by default has thousands of records, but I am only displaying the first 30 records on the first page (paging filter) of my grid. Same thing would apply to a string filter for last name. I filter my 2000 records for last name smith, get 100 records, only 30 displayed on first page. I will then actually

Telerik grid custom column building/formatting

旧街凉风 提交于 2019-12-22 12:26:44
问题 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

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

喜欢而已 提交于 2019-12-22 02:02:43
问题 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

RadGrid apply filter in codebehind

喜欢而已 提交于 2019-12-21 13:09:40
问题 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

how to use webmethod with telerik batch edit grid

白昼怎懂夜的黑 提交于 2019-12-20 07:31:28
问题 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. 回答1: 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

How to give a color to the Column Header in Telerik RadGrid

旧时模样 提交于 2019-12-20 03:07:14
问题 I have created a telerik RadGrid in asp .net. My requirement is to give my own color to Column header. How can we achieve this...? Below is the code structure I'm using. <Telerik:RadGrid ID="RadGrid2" runat="server"> <MasterTableView Width="100%" DataKeyNames="CustomerID" AllowMultiColumnSorting="True"> <DetailTables> <telerik:GridTableView DataKeyNames="OrderID" Name="Orders" Width="100%"> <DetailTables> <telerik:GridTableView DataKeyNames="OrderID" Name="OrderDetails" Width="100%"> <Columns

Add New Record button not working in kendo hierarchical grid

ε祈祈猫儿з 提交于 2019-12-19 09:08:23
问题 I'm trying to add new row to the detail grid of the kendo hierarchical grid, but the Add new record button not working. However if I omit the filter option in detail grid definition, then the button works, but with filtering off, I can't separate the child rows according to the master row. I'm adding an image to describe the problem. Here is my code for the hierarchical grid: var element = $("#grid").kendoGrid({ dataSource: { type: "JSON", transport: { read: { url: "/Home/Read", type: "GET" }

Telerik MVC Grid: How to use DropDownList in a column?

*爱你&永不变心* 提交于 2019-12-19 04:14:41
问题 I have a Telerik MVC grid, in an MVC 3 application with Razor, which is being Ajax-bound. I am now trying to add a drop list column to it, so that users can use it in edit mode, but can't figure out how. The grid displays a list of Products, and I want the drop list to contain a collection of ProductCategories, to which the Product can be associated. I've been at this for hours now and I'm out of ideas. I really hope someone here can help :) I have been referencing a Telerik demo, which is