telerik-grid

Telerik MVC custom AJAX editor template

故事扮演 提交于 2019-12-01 20:45:50
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 view model object has a list of Children objects and I want to use my grid to populate this list. The view

Telerik MVC Grid ClientTemplate checkbox not displayed initially

↘锁芯ラ 提交于 2019-12-01 20:15:07
问题 I have a very similar problem to the post located here: Telerik grid with checkbox - Checkbox not showing up when the grid initially paints Basically, I have a telerik MVC3 razor grid with a ClientTemplate column that consists of a checkbox. When the page loads initially, the checkbox is not there - instead it is what I want the value of the checkbox to be. However, when ajax is fired (such as grouping columns together), the checkbox shows with no problem. I don't really understand the

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

一笑奈何 提交于 2019-12-01 01:01:29
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 located here . I think the part that is hanging me up is in a help view that the demo uses. In the demo,

Kendogrid destroy() and recreate the table on a new datasource, why do the old table columns still exist?

霸气de小男生 提交于 2019-11-30 04:56:56
When invoking destroy() in KendoUI Grid and then recreate the table on a new DataSource : why do the old table columns still exist? The only element here that stays the say is the element. How do I tell the grid to read the new datasource columns (it reads everything else correct). (if I make 2 different elements, they both populate properly but I rather just keep 1 element and replace the elements table by destroy and reinit) Most probably this is because you are not clearing the content inside the Grid container. e.g. $('#gridName').data().kendoGrid.destroy(); $('#gridName').empty(); or

Handle multiple delete events from grid with single events handlers asp.net

a 夏天 提交于 2019-11-29 17:08:09
I have two grid which contains delete button and I am using RadAjaxManager which will fire ajax request from client side to server side OnajaxRequest which contain event handlers and that event handler will call my delete event like below: <telerik:RadAjaxManager ID="RadAjaxManager2" runat="server" meta:resourcekey="RadAjaxManager1Resource1" OnAjaxRequest="RadAjaxManager2_AjaxRequest"> <AjaxSettings> <telerik:AjaxSetting AjaxControlID="RadAjaxManager2"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="Grid1" /> <telerik:AjaxUpdatedControl ControlID="Grid2" /> </UpdatedControls> <

How to insert drop down list box in a Telerik grid

别等时光非礼了梦想. 提交于 2019-11-29 08:53:48
I have a Telerik Grid, with two columns I need to keep second column as drop-down list box with in the grid, I am using ASP.NET MVC control Can any body tell me how to do this? Atanas Korchev You can set the template of the column to embed arbitrary HTML. If using Ajax binding - try the client template. The following online examples will be helpful: Server templates Client templates Kohen Holms I need to do that for my project. Here is how I did it: columns.Bound(o => o.Role).ClientTemplate( Html.Telerik().DropDownList() .Name("RoleList<#= UserID #>") .BindTo(new SelectList(UserController

Cannot identify selected page in telerik grid. I need selected page to be underlined. Help me in this

允我心安 提交于 2019-11-26 23:43:40
问题 For my telerik radgrid I am using numeric pages. I can see the page numbers. But I am not able to identify the selected page. All the page numbers remais alike after selecting the page. I need the selected page number to be underlined. Help me in this 回答1: There is a control called PagerTextFormat that allows you to display current page, total page number, total record number and etc. After adding your grid (radgrid), you can manually define a PagerStyle block in aspx side and put your code