telerik-mvc

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,

Returning JSON from a JsonResult method in MVC controller

可紊 提交于 2019-11-30 19:40:42
I am trying to populate a ComboBox (Telerik RAD COmboBox) in a test ASP.NET MVC3 app. I have defined the ComboBox on my ASPX page and in the controller I have defined the action call that returns a JsonResult. The problem I am having is that the Web Service I am using already returns the resultset as a JSON string. How can I pass the response from the Webservice directly. Here is the snippets of code: ASPX page: <% Html.Telerik().ComboBox() .Name("cbRefTables") .DataBinding(b => b .Ajax() .Select("GetCALMdata","Common") ) .Render(); %> Controller: called CommomController public JsonResult

Telerik MVC Grid making a Column Red Color based on Other Column Value

喜夏-厌秋 提交于 2019-11-30 17:33:49
问题 I have a Telerik MVC Grid in which say, there are like two fields CustomerID and OrdersQuantity (can go negative) MY grid looks like this CustomerID OrdersQuantity 1 10 2 3 <font color="red">4*</font> -10 <font color="red">5*</font> -20 7 10 I want to show customerid in Red color and add "*" SYMBOL if OrdersQuantity is < 0 so like in the above example, I want to show customerid 4* and 5* in Red 回答1: There are two ways to accomplish this, one for server binding and the other for ajax binding.

Returning JSON from a JsonResult method in MVC controller

旧街凉风 提交于 2019-11-30 03:23:22
问题 I am trying to populate a ComboBox (Telerik RAD COmboBox) in a test ASP.NET MVC3 app. I have defined the ComboBox on my ASPX page and in the controller I have defined the action call that returns a JsonResult. The problem I am having is that the Web Service I am using already returns the resultset as a JSON string. How can I pass the response from the Webservice directly. Here is the snippets of code: ASPX page: <% Html.Telerik().ComboBox() .Name("cbRefTables") .DataBinding(b => b .Ajax()

ToRowCountQuery seems to ignore groupings

↘锁芯ラ 提交于 2019-11-28 02:04:04
I'm trying to create a rowcount-query from a regular query, but the resulting SQL seems to lack the GROUP BY resulting in a wrong count. Does anyone know what I'm doing wrong. First the queries: var query = Session.QueryOver<InkoopFactuurListItem>() .Where(i => i.KlantId == Klant.Id) .AndRestrictionOn(i => i.Status).IsIn(statussen) .SelectList(list => list .SelectGroup(h => h.Id).WithAlias(() => dto.Id) .SelectGroup(h => h.Banknummer).WithAlias(() => dto.Banknummer) .SelectGroup(h => h.CrediteurNaam).WithAlias(() => dto.CrediteurNaam) .SelectGroup(h => h.DienstType).WithAlias(() => dto

How to play the html5 video in IE8 Browsers

旧时模样 提交于 2019-11-27 06:46:01
I have develop a MVC3 Application in that i have use html5 video controls when i run the application it is playin Chrome but when i try to play in IE8 Browser it doesn't play the video just it show the white page only...How to play the video in all Browsers please help me.. Here is my code what i did in my page <video controls="controls" poster="http://sandbox.thewikies.com/vfe-generator/images/big-buck-bunny_poster.jpg" width="640" height="360"> <source src="../../Videos/Nenu Nuvvuantu - Orange - MyInfoland.mp4" type="video/mp4" /> <%-- <source src="http://clips.vorwaerts-gmbh.de/big_buck

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

ToRowCountQuery seems to ignore groupings

梦想与她 提交于 2019-11-26 23:37:27
问题 I'm trying to create a rowcount-query from a regular query, but the resulting SQL seems to lack the GROUP BY resulting in a wrong count. Does anyone know what I'm doing wrong. First the queries: var query = Session.QueryOver<InkoopFactuurListItem>() .Where(i => i.KlantId == Klant.Id) .AndRestrictionOn(i => i.Status).IsIn(statussen) .SelectList(list => list .SelectGroup(h => h.Id).WithAlias(() => dto.Id) .SelectGroup(h => h.Banknummer).WithAlias(() => dto.Banknummer) .SelectGroup(h => h