telerik-mvc

filtering telerik mvc grid by Html.Telerik().DropDownList

扶醉桌前 提交于 2019-12-24 19:23:33
问题 Hi I would like to ask how can i filter the current contents of the Telerik mvc grid by the selected value in Html.Telerik().DropDownList? I think there's some js scripts needed which I'm figuring out. Thanks in advance. -Lawrence 回答1: In your dropdownlist's onchange event: .ClientEvents(events => events .OnChange( @<text> function(e) { $('NameOfGrid').data('tGrid').rebind(); } </text>)) and in your grid's ondatabinding event: .ClientEvents(e => e .OnDataBinding( @<text> function(a) { a.data

Telerik ASP.NET Ajax RadGrid in MVC and ViewState?

丶灬走出姿态 提交于 2019-12-24 12:43:33
问题 That's right, an ASP.NET Ajax control in MVC. I know I know, there are Telerik MVC controls but the Telerik MVC grid doesn't have everything I need so I'm dead set on using the ASP.NET Ajax control. Anyways, I have the RadGrid up and running great. The problem occurs when I enable all the bells and whistles such as paging, sorting, filtering etc. It looks like it puts the group by/filter/sort data in an eventargument post variable: __EVENTARGUMENT FireCommand:2$RadGrid1$ctl00;GroupByColumn

datetimePicker Column in $(“#grid”).kendoGrid

主宰稳场 提交于 2019-12-24 10:42:36
问题 I have this column in kendo grid { field: "Fecha", title: "Fecha Aviso", width: 100, attributes: { style: "text-align:center;" }, template: "#= Fecha != null ? kendo.toString(Fecha, 'd/MM/yyyy') : '' #" } And this is the model field fields: { Fecha: { type: "date", format: "{0:dd/MM/yyyy}" }, ... Now the batchEdit shows only the datePicker. How can I input dateTimePicker? 回答1: Here is a dojo that shows it working for you: custom datetime picker in batch editing all I have done is define the

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

GPL 2.0 Free Telerik Extensions for ASP.NET MVC [closed]

北城以北 提交于 2019-12-21 17:09:15
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . Is my ASP.NET MVC project automatically GPL 2.0 licensed by including these libraries? I always find this confusing with the GPL. 回答1: Yes, it is. You'll be statically referencing their code. That clearly falls under the "requires a GPL-compatible license" areas. You can, of course, buy a commercial license or

Floating horizontal scroll bar for html table

时间秒杀一切 提交于 2019-12-20 02:22:25
问题 I have an html table that is very tall. The web page has to be scrolled vertically to reach the scroll bar at the bottom of the table. It would be nice if I could float the horizontal scroll bar for the table at the bottom of the browser window while the user is scrolling the page and the table is visible. Can such a thing be done? Here is a jsFiddle example of the situation: http://jsfiddle.net/RurTZ/1/ 回答1: The Grid suggestion by @KDavid is good, but if you're looking for something a bit

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

How can I set and get the value of a dropdownlist in a grid in Kendo UI MVC?

别等时光非礼了梦想. 提交于 2019-12-18 02:46:48
问题 I'm working with KendoUI MVC in MVC3. I managed to get a dropdown in a grid column. But I have no clue on how to set the selected value, and when I save it doesn't save my selected value. The grid @using Perseus.Areas.Communication.Models @using Perseus.Common.BusinessEntities; <div class="gridWrapper"> @(Html.Kendo().Grid<CommunicationModel>() .Name("grid") .Columns(colums => { colums.Bound(o => o.communication_type_id) .EditorTemplateName("_communicationDropDown") .ClientTemplate("#:

JSON2 Error / Conflict with another script

大城市里の小女人 提交于 2019-12-13 20:18:20
问题 I am using the JSON2 library in order to use JSON.stringify to send some JSON data to my MVC controller. When I include another script in my view (Telerik MVC) I start to get script conflicts when using IE7. When I click the refresh button in the grid, I get the following error: Line: 191 Error: Object doesn't support this property or method String.prototype.toJSON = Number.prototype.toJSON = Boolean.prototype.toJSON = function (key) { return this.valueOf(); }; The error occurs on the

Checkbox is always coming as unchecked

泄露秘密 提交于 2019-12-13 07:06:58
问题 I have following Kendo Grid ans associated jQuery. On a button click, I need to know whether checkbox is checked. But at present it is showing 'false' always. How can we correct it? @Scripts.Render("~/bundles/jquery") <script type="text/javascript"> $(document).ready(function () { $('#btnMove').click(function () { var sourcegrid = $('#GridParent').data('kendoGrid'); //SOURCE GRID var destinationgrid = $('#ChildGrid').data('kendoGrid'); // DESTINATION GRID alert('Button Clicked'); var grid = $