telerik

Telerik MVC: Loading Grid with ajax request don't work

耗尽温柔 提交于 2019-12-09 13:58:20
问题 I have a Telerik MVC Tabstrip. I have used: .LoadContentFrom("Grid", "Orders"); "Grid" Action just returns view without model. Then the Ajax request should have been fired to get the data. It is loading the grid normally but it is not calling the Ajax request to fill the data. If I am calling the same action normally i.e. without ajax it displays grid and fires Ajax request to load the data. 回答1: Perhaps you've missed to register the required JavaScript files for the Grid. You can check the

How do I set Telerik RadGrid to Edit mode by default? (ASP.NET)

回眸只為那壹抹淺笑 提交于 2019-12-09 12:36:45
问题 I have a checkbox column in a RadGrid that I want the user to be able to check/uncheck it and set the attached property. When the grid renders however, the checkboxes are disabled, because the grid is not in "edit mode". All the examples I'm finding want me to go through a lengthy process of selecting the record, putting it into edit mode, changing the value, saving the value.... yada yada yada... I just want the whole grid to be in edit mode (or the column, or whatever works) from the get-go

Kendo Grid: Canceling edit deletes new row

狂风中的少年 提交于 2019-12-09 11:53:13
问题 Here is a demo to for the behavior I am experiencing. If you edit the existing row with id 1, change the text to something else and then press the cancel button, the row is reverted correctly to its previous state. In order to reproduce my problem you need to: Add a new row Press the update button to save it. Select the row again and press the update button. Press the cancel button The row disappears! Even though there are similar questions on this problem, I have yet to find a satisfactory

How do I convert a boolean from true/false to yes/no on a Telerik ASP .NET MVC Grid

若如初见. 提交于 2019-12-08 22:07:01
问题 I would like to be able to change the display value of a non-editable column on a non-editable Telerik AJAX grid in ASP.NET MVC. The column in question is a boolean value sot the display conversion would be Yes=true and No-False. 回答1: I did a little experimenting and found this works. Not sure if it will hold up on an editable column but in my case the column is not editable. <% Html.Telerik().Grid<SomeClass>() .Name("SomeGrid") .Columns(columns => { columns.Bound(o => o

Dynamic Telerik RadOutlookBar headers come out wrong with ItemTemplate

瘦欲@ 提交于 2019-12-08 19:49:50
I'm trying to use Telerik RadControls in a MVVM kind of way but having some strange problems. The Viewmodel behind the RadOutlookBar has a collection of ViewModels that each have a Title string property. I wanted to define it so way the they get Wrapped inside a RadOutlookBarItem and bind the header/title properties together. XAML: <telerik:RadOutlookBar x:Name="Items"> <telerik:RadOutlookBar.TitleTemplate> <DataTemplate> <ContentControl Content="{Binding Path=Title}" /> </DataTemplate> </telerik:RadOutlookBar.TitleTemplate> <telerik:RadOutlookBar.ItemTemplate> <DataTemplate> <telerik

How do you make a bar a different color in KendoUI bar chart?

回眸只為那壹抹淺笑 提交于 2019-12-08 15:26:14
问题 I'm am replacing my dot net charting with KendoUI. I'm showing a Score Distribution chart. I want all of the bars to be the same color except the bar with the median score and the Legend. How do I color a single bar a unique color? How would I color the Legend this new color? Below is my old dotnet charting bar chart and below that is the new KendoUI chart I'm trying to replace it with. I just need to get that coloring right and we'll be in business. Any help is appreciated. 回答1: Update: I'm

What is the correct way to put multiple controls inside update panel?

自闭症网瘾萝莉.ら 提交于 2019-12-08 14:52:27
问题 I have one registration form which contains 3 to 4 dropdown controls and 2 datepickers and now when dropdown controls value are selected(selectedindex change are fired) then i dont want my page to postback. I have use update panel to stop this behaviour of post like below: <asp:UpdatePanel ID="UpdatePanel1" runat="server"> <ContentTemplate> <%--Update Panel for date picker%> <asp:UpdatePanel ID="UpdatePanelDatepicker" runat="server"> <ContentTemplate> <telerik:RadDatePicker ID="rdpDate1"

how to set the content to radeditor using javascript

社会主义新天地 提交于 2019-12-08 12:04:33
问题 I am using Radeditor. i need to get the content from clip board and set to editor conten. i am get the content. but i set the content to editor page, it shows empty. i am using the following code. var content = window.clipboardData.getData("Text"); if (content != null) { editor.set_html = content; so i try to bind the content in server side. so i called the server side function using pagemethods.i set EnablePageMethods ="true" in script manager. but it shows page methods is undefined. my

Setting Telerik MVC grid column properties during an Edit

旧城冷巷雨未停 提交于 2019-12-08 10:20:00
问题 I have an MVC 3 Razor Telerik grid. I have an Edit comand on the row. When a user clicks on Edit (this places the grid in Edit mode with an Update and Cancel button), I want to set a property for two of the columns to readonly . When the user clicks on Cancel or Update, I want to set the columns back to full permission. I know there must be some properties in the controller I should be able to set when the Edit button is pressed for this, but have not seen any docs on how to accomplish this.

Select the theme from a telerik combobox MVC/ASP

試著忘記壹切 提交于 2019-12-08 06:56:21
问题 I want to implement a feature similar to the telerik theme feature available on their demo site. (I have a fully licenced copy of their controls), but I cant find any info on how to do this. I have an MVC application, and in the _Layout.cshtml (which has no controller that I know of (i hope I am wrong)) I am trying to add a combo box populated with a list of available styles like this: <section id="Login"> @if (Request.IsAuthenticated) { <section id="loginImage"> <img src="../../Content